Initial Commit
This commit is contained in:
10
dependencies/stripe/stripe-php/lib/Exception/OAuth/ExceptionInterface.php
vendored
Normal file
10
dependencies/stripe/stripe-php/lib/Exception/OAuth/ExceptionInterface.php
vendored
Normal file
@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
namespace WP_Ultimo\Dependencies\Stripe\Exception\OAuth;
|
||||
|
||||
/**
|
||||
* The base interface for all Stripe OAuth exceptions.
|
||||
*/
|
||||
interface ExceptionInterface extends \WP_Ultimo\Dependencies\Stripe\Exception\ExceptionInterface
|
||||
{
|
||||
}
|
12
dependencies/stripe/stripe-php/lib/Exception/OAuth/InvalidClientException.php
vendored
Normal file
12
dependencies/stripe/stripe-php/lib/Exception/OAuth/InvalidClientException.php
vendored
Normal file
@ -0,0 +1,12 @@
|
||||
<?php
|
||||
|
||||
namespace WP_Ultimo\Dependencies\Stripe\Exception\OAuth;
|
||||
|
||||
/**
|
||||
* InvalidClientException is thrown when the client_id does not belong to you,
|
||||
* the stripe_user_id does not exist or is not connected to your application,
|
||||
* or the API key mode (live or test mode) does not match the client_id mode.
|
||||
*/
|
||||
class InvalidClientException extends OAuthErrorException
|
||||
{
|
||||
}
|
13
dependencies/stripe/stripe-php/lib/Exception/OAuth/InvalidGrantException.php
vendored
Normal file
13
dependencies/stripe/stripe-php/lib/Exception/OAuth/InvalidGrantException.php
vendored
Normal file
@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
namespace WP_Ultimo\Dependencies\Stripe\Exception\OAuth;
|
||||
|
||||
/**
|
||||
* InvalidGrantException is thrown 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 InvalidGrantException extends OAuthErrorException
|
||||
{
|
||||
}
|
11
dependencies/stripe/stripe-php/lib/Exception/OAuth/InvalidRequestException.php
vendored
Normal file
11
dependencies/stripe/stripe-php/lib/Exception/OAuth/InvalidRequestException.php
vendored
Normal file
@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
namespace WP_Ultimo\Dependencies\Stripe\Exception\OAuth;
|
||||
|
||||
/**
|
||||
* InvalidRequestException is thrown when a code, refresh token, or grant
|
||||
* type parameter is not provided, but was required.
|
||||
*/
|
||||
class InvalidRequestException extends OAuthErrorException
|
||||
{
|
||||
}
|
10
dependencies/stripe/stripe-php/lib/Exception/OAuth/InvalidScopeException.php
vendored
Normal file
10
dependencies/stripe/stripe-php/lib/Exception/OAuth/InvalidScopeException.php
vendored
Normal file
@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
namespace WP_Ultimo\Dependencies\Stripe\Exception\OAuth;
|
||||
|
||||
/**
|
||||
* InvalidScopeException is thrown when an invalid scope parameter is provided.
|
||||
*/
|
||||
class InvalidScopeException extends OAuthErrorException
|
||||
{
|
||||
}
|
18
dependencies/stripe/stripe-php/lib/Exception/OAuth/OAuthErrorException.php
vendored
Normal file
18
dependencies/stripe/stripe-php/lib/Exception/OAuth/OAuthErrorException.php
vendored
Normal file
@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
namespace WP_Ultimo\Dependencies\Stripe\Exception\OAuth;
|
||||
|
||||
/**
|
||||
* Implements properties and methods common to all (non-SPL) Stripe OAuth
|
||||
* exceptions.
|
||||
*/
|
||||
abstract class OAuthErrorException extends \WP_Ultimo\Dependencies\Stripe\Exception\ApiErrorException
|
||||
{
|
||||
protected function constructErrorObject()
|
||||
{
|
||||
if (null === $this->jsonBody) {
|
||||
return null;
|
||||
}
|
||||
return \WP_Ultimo\Dependencies\Stripe\OAuthErrorObject::constructFrom($this->jsonBody);
|
||||
}
|
||||
}
|
12
dependencies/stripe/stripe-php/lib/Exception/OAuth/UnknownOAuthErrorException.php
vendored
Normal file
12
dependencies/stripe/stripe-php/lib/Exception/OAuth/UnknownOAuthErrorException.php
vendored
Normal file
@ -0,0 +1,12 @@
|
||||
<?php
|
||||
|
||||
namespace WP_Ultimo\Dependencies\Stripe\Exception\OAuth;
|
||||
|
||||
/**
|
||||
* UnknownApiErrorException is thrown when the client library receives an
|
||||
* error from the OAuth API it doesn't know about. Receiving this error usually
|
||||
* means that your client library is outdated and should be upgraded.
|
||||
*/
|
||||
class UnknownOAuthErrorException extends OAuthErrorException
|
||||
{
|
||||
}
|
11
dependencies/stripe/stripe-php/lib/Exception/OAuth/UnsupportedGrantTypeException.php
vendored
Normal file
11
dependencies/stripe/stripe-php/lib/Exception/OAuth/UnsupportedGrantTypeException.php
vendored
Normal file
@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
namespace WP_Ultimo\Dependencies\Stripe\Exception\OAuth;
|
||||
|
||||
/**
|
||||
* UnsupportedGrantTypeException is thrown when an unuspported grant type
|
||||
* parameter is specified.
|
||||
*/
|
||||
class UnsupportedGrantTypeException extends OAuthErrorException
|
||||
{
|
||||
}
|
11
dependencies/stripe/stripe-php/lib/Exception/OAuth/UnsupportedResponseTypeException.php
vendored
Normal file
11
dependencies/stripe/stripe-php/lib/Exception/OAuth/UnsupportedResponseTypeException.php
vendored
Normal file
@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
namespace WP_Ultimo\Dependencies\Stripe\Exception\OAuth;
|
||||
|
||||
/**
|
||||
* UnsupportedResponseTypeException is thrown when an unsupported response type
|
||||
* parameter is specified.
|
||||
*/
|
||||
class UnsupportedResponseTypeException extends OAuthErrorException
|
||||
{
|
||||
}
|
Reference in New Issue
Block a user