forked from Wavyzz/dolibarr
NEW Upgrade of Stripe lib to 6.4.1
This commit is contained in:
10
htdocs/includes/stripe/lib/Error/OAuth/InvalidClient.php
Normal file
10
htdocs/includes/stripe/lib/Error/OAuth/InvalidClient.php
Normal file
@@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
namespace Stripe\Error\OAuth;
|
||||
|
||||
/**
|
||||
* InvalidClient is raised when authentication fails.
|
||||
*/
|
||||
class InvalidClient extends OAuthBase
|
||||
{
|
||||
}
|
||||
13
htdocs/includes/stripe/lib/Error/OAuth/InvalidGrant.php
Normal file
13
htdocs/includes/stripe/lib/Error/OAuth/InvalidGrant.php
Normal file
@@ -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
|
||||
{
|
||||
}
|
||||
11
htdocs/includes/stripe/lib/Error/OAuth/InvalidRequest.php
Normal file
11
htdocs/includes/stripe/lib/Error/OAuth/InvalidRequest.php
Normal file
@@ -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
|
||||
{
|
||||
}
|
||||
10
htdocs/includes/stripe/lib/Error/OAuth/InvalidScope.php
Normal file
10
htdocs/includes/stripe/lib/Error/OAuth/InvalidScope.php
Normal file
@@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
namespace Stripe\Error\OAuth;
|
||||
|
||||
/**
|
||||
* InvalidScope is raised when an invalid scope parameter is provided.
|
||||
*/
|
||||
class InvalidScope extends OAuthBase
|
||||
{
|
||||
}
|
||||
23
htdocs/includes/stripe/lib/Error/OAuth/OAuthBase.php
Normal file
23
htdocs/includes/stripe/lib/Error/OAuth/OAuthBase.php
Normal file
@@ -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->code = $code;
|
||||
}
|
||||
|
||||
public function getErrorCode()
|
||||
{
|
||||
return $this->code;
|
||||
}
|
||||
}
|
||||
@@ -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