Bump stripe-php from 16.4.0 to 17.2.1

This commit is contained in:
johnnyq
2025-05-22 12:37:35 -04:00
parent 5361391b3b
commit 6a368840fa
332 changed files with 4978 additions and 4624 deletions

View File

@@ -7,6 +7,4 @@ namespace Stripe\Exception;
* servers. That can be for a variety of different reasons from a downed
* network to a bad TLS certificate.
*/
class ApiConnectionException extends ApiErrorException
{
}
class ApiConnectionException extends ApiErrorException {}

View File

@@ -6,6 +6,4 @@ namespace Stripe\Exception;
* AuthenticationException is thrown when invalid credentials are used to
* connect to Stripe's servers.
*/
class AuthenticationException extends ApiErrorException
{
}
class AuthenticationException extends ApiErrorException {}

View File

@@ -2,6 +2,4 @@
namespace Stripe\Exception;
class BadMethodCallException extends \BadMethodCallException implements ExceptionInterface
{
}
class BadMethodCallException extends \BadMethodCallException implements ExceptionInterface {}

View File

@@ -7,16 +7,12 @@ if (\interface_exists(\Throwable::class, false)) {
/**
* The base interface for all Stripe exceptions.
*/
interface ExceptionInterface extends \Throwable
{
}
interface ExceptionInterface extends \Throwable {}
} else {
/**
* The base interface for all Stripe exceptions.
*/
// phpcs:disable PSR1.Classes.ClassDeclaration.MultipleClasses
interface ExceptionInterface
{
}
interface ExceptionInterface {}
// phpcs:enable
}

View File

@@ -6,6 +6,4 @@ namespace Stripe\Exception;
* IdempotencyException is thrown in cases where an idempotency key was used
* improperly.
*/
class IdempotencyException extends ApiErrorException
{
}
class IdempotencyException extends ApiErrorException {}

View File

@@ -2,6 +2,4 @@
namespace Stripe\Exception;
class InvalidArgumentException extends \InvalidArgumentException implements ExceptionInterface
{
}
class InvalidArgumentException extends \InvalidArgumentException implements ExceptionInterface {}

View File

@@ -5,6 +5,4 @@ namespace Stripe\Exception\OAuth;
/**
* The base interface for all Stripe OAuth exceptions.
*/
interface ExceptionInterface extends \Stripe\Exception\ExceptionInterface
{
}
interface ExceptionInterface extends \Stripe\Exception\ExceptionInterface {}

View File

@@ -7,6 +7,4 @@ namespace Stripe\Exception\OAuth;
* 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
{
}
class InvalidClientException extends OAuthErrorException {}

View File

@@ -8,6 +8,4 @@ namespace Stripe\Exception\OAuth;
* 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
{
}
class InvalidGrantException extends OAuthErrorException {}

View File

@@ -6,6 +6,4 @@ namespace 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
{
}
class InvalidRequestException extends OAuthErrorException {}

View File

@@ -5,6 +5,4 @@ namespace Stripe\Exception\OAuth;
/**
* InvalidScopeException is thrown when an invalid scope parameter is provided.
*/
class InvalidScopeException extends OAuthErrorException
{
}
class InvalidScopeException extends OAuthErrorException {}

View File

@@ -7,6 +7,4 @@ namespace Stripe\Exception\OAuth;
* 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
{
}
class UnknownOAuthErrorException extends OAuthErrorException {}

View File

@@ -6,6 +6,4 @@ namespace Stripe\Exception\OAuth;
* UnsupportedGrantTypeException is thrown when an unuspported grant type
* parameter is specified.
*/
class UnsupportedGrantTypeException extends OAuthErrorException
{
}
class UnsupportedGrantTypeException extends OAuthErrorException {}

View File

@@ -6,6 +6,4 @@ namespace Stripe\Exception\OAuth;
* UnsupportedResponseTypeException is thrown when an unsupported response type
* parameter is specified.
*/
class UnsupportedResponseTypeException extends OAuthErrorException
{
}
class UnsupportedResponseTypeException extends OAuthErrorException {}

View File

@@ -6,6 +6,4 @@ namespace Stripe\Exception;
* PermissionException is thrown in cases where access was attempted on a
* resource that wasn't allowed.
*/
class PermissionException extends ApiErrorException
{
}
class PermissionException extends ApiErrorException {}

View File

@@ -7,6 +7,4 @@ namespace Stripe\Exception;
* load on Stripe's API servers (usually by performing too many requests).
* Please back off on request rate.
*/
class RateLimitException extends InvalidRequestException
{
}
class RateLimitException extends InvalidRequestException {}

View File

@@ -4,6 +4,4 @@
namespace Stripe\Exception;
class TemporarySessionExpiredException extends ApiErrorException
{
}
class TemporarySessionExpiredException extends ApiErrorException {}

View File

@@ -2,6 +2,4 @@
namespace Stripe\Exception;
class UnexpectedValueException extends \UnexpectedValueException implements ExceptionInterface
{
}
class UnexpectedValueException extends \UnexpectedValueException implements ExceptionInterface {}

View File

@@ -7,6 +7,4 @@ namespace Stripe\Exception;
* error from the API it doesn't know about. Receiving this error usually
* means that your client library is outdated and should be upgraded.
*/
class UnknownApiErrorException extends ApiErrorException
{
}
class UnknownApiErrorException extends ApiErrorException {}