forked from Wavyzz/dolibarr
NEW Upgrade Stripe library to 6.43.1
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
namespace Stripe\Error\OAuth;
|
||||
|
||||
/**
|
||||
* InvalidClient is raised when authentication fails.
|
||||
*/
|
||||
class InvalidClient extends OAuthBase
|
||||
{
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
namespace Stripe\Error\OAuth;
|
||||
|
||||
/**
|
||||
* InvalidGrant is raised when a specified code doesn't exist, is
|
||||
* expired, has been used, or doesn't belong to you; a refresh token doesn't
|
||||
* exist, or doesn't belong to you; or if an API key's mode (live or test)
|
||||
* doesn't match the mode of a code or refresh token.
|
||||
*/
|
||||
class InvalidGrant extends OAuthBase
|
||||
{
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
namespace Stripe\Error\OAuth;
|
||||
|
||||
/**
|
||||
* InvalidRequest is raised when a code, refresh token, or grant type
|
||||
* parameter is not provided, but was required.
|
||||
*/
|
||||
class InvalidRequest extends OAuthBase
|
||||
{
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
namespace Stripe\Error\OAuth;
|
||||
|
||||
/**
|
||||
* InvalidScope is raised when an invalid scope parameter is provided.
|
||||
*/
|
||||
class InvalidScope extends OAuthBase
|
||||
{
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
namespace Stripe\Error\OAuth;
|
||||
|
||||
class OAuthBase extends \Stripe\Error\Base
|
||||
{
|
||||
public function __construct(
|
||||
$code,
|
||||
$description,
|
||||
$httpStatus = null,
|
||||
$httpBody = null,
|
||||
$jsonBody = null,
|
||||
$httpHeaders = null
|
||||
) {
|
||||
parent::__construct($description, $httpStatus, $httpBody, $jsonBody, $httpHeaders);
|
||||
$this->errorCode = $code;
|
||||
}
|
||||
|
||||
public function getErrorCode()
|
||||
{
|
||||
return $this->errorCode;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
namespace Stripe\Error\OAuth;
|
||||
|
||||
/**
|
||||
* UnsupportedGrantType is raised when an unuspported grant type
|
||||
* parameter is specified.
|
||||
*/
|
||||
class UnsupportedGrantType extends OAuthBase
|
||||
{
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
namespace Stripe\Error\OAuth;
|
||||
|
||||
/**
|
||||
* UnsupportedResponseType is raised when an unsupported response type
|
||||
* parameter is specified.
|
||||
*/
|
||||
class UnsupportedResponseType extends OAuthBase
|
||||
{
|
||||
}
|
||||
Reference in New Issue
Block a user