diff options
Diffstat (limited to 'vendor/stripe/stripe-php/lib/Exception')
23 files changed, 658 insertions, 658 deletions
diff --git a/vendor/stripe/stripe-php/lib/Exception/ApiConnectionException.php b/vendor/stripe/stripe-php/lib/Exception/ApiConnectionException.php index 33f2ede..1abc974 100644 --- a/vendor/stripe/stripe-php/lib/Exception/ApiConnectionException.php +++ b/vendor/stripe/stripe-php/lib/Exception/ApiConnectionException.php @@ -1,12 +1,12 @@ -<?php - -namespace Stripe\Exception; - -/** - * ApiConnection is thrown in the event that the SDK can't connect to Stripe's - * servers. That can be for a variety of different reasons from a downed - * network to a bad TLS certificate. - */ -class ApiConnectionException extends ApiErrorException -{ -} +<?php
+
+namespace Stripe\Exception;
+
+/**
+ * ApiConnection is thrown in the event that the SDK can't connect to Stripe's
+ * servers. That can be for a variety of different reasons from a downed
+ * network to a bad TLS certificate.
+ */
+class ApiConnectionException extends ApiErrorException
+{
+}
diff --git a/vendor/stripe/stripe-php/lib/Exception/ApiErrorException.php b/vendor/stripe/stripe-php/lib/Exception/ApiErrorException.php index 995a42e..2d96e6b 100644 --- a/vendor/stripe/stripe-php/lib/Exception/ApiErrorException.php +++ b/vendor/stripe/stripe-php/lib/Exception/ApiErrorException.php @@ -1,219 +1,219 @@ -<?php - -namespace Stripe\Exception; - -/** - * Implements properties and methods common to all (non-SPL) Stripe exceptions. - */ -abstract class ApiErrorException extends \Exception implements ExceptionInterface -{ - protected $error; - protected $httpBody; - protected $httpHeaders; - protected $httpStatus; - protected $jsonBody; - protected $requestId; - protected $stripeCode; - - /** - * Creates a new API error exception. - * - * @param string $message the exception message - * @param null|int $httpStatus the HTTP status code - * @param null|string $httpBody the HTTP body as a string - * @param null|array $jsonBody the JSON deserialized body - * @param null|array|\Stripe\Util\CaseInsensitiveArray $httpHeaders the HTTP headers array - * @param null|string $stripeCode the Stripe error code - * - * @return static - */ - public static function factory( - $message, - $httpStatus = null, - $httpBody = null, - $jsonBody = null, - $httpHeaders = null, - $stripeCode = null - ) { - $instance = new static($message); - $instance->setHttpStatus($httpStatus); - $instance->setHttpBody($httpBody); - $instance->setJsonBody($jsonBody); - $instance->setHttpHeaders($httpHeaders); - $instance->setStripeCode($stripeCode); - - $instance->setRequestId(null); - if ($httpHeaders && isset($httpHeaders['Request-Id'])) { - $instance->setRequestId($httpHeaders['Request-Id']); - } - - $instance->setError($instance->constructErrorObject()); - - return $instance; - } - - /** - * Gets the Stripe error object. - * - * @return null|\Stripe\ErrorObject - */ - public function getError() - { - return $this->error; - } - - /** - * Sets the Stripe error object. - * - * @param null|\Stripe\ErrorObject $error - */ - public function setError($error) - { - $this->error = $error; - } - - /** - * Gets the HTTP body as a string. - * - * @return null|string - */ - public function getHttpBody() - { - return $this->httpBody; - } - - /** - * Sets the HTTP body as a string. - * - * @param null|string $httpBody - */ - public function setHttpBody($httpBody) - { - $this->httpBody = $httpBody; - } - - /** - * Gets the HTTP headers array. - * - * @return null|array|\Stripe\Util\CaseInsensitiveArray - */ - public function getHttpHeaders() - { - return $this->httpHeaders; - } - - /** - * Sets the HTTP headers array. - * - * @param null|array|\Stripe\Util\CaseInsensitiveArray $httpHeaders - */ - public function setHttpHeaders($httpHeaders) - { - $this->httpHeaders = $httpHeaders; - } - - /** - * Gets the HTTP status code. - * - * @return null|int - */ - public function getHttpStatus() - { - return $this->httpStatus; - } - - /** - * Sets the HTTP status code. - * - * @param null|int $httpStatus - */ - public function setHttpStatus($httpStatus) - { - $this->httpStatus = $httpStatus; - } - - /** - * Gets the JSON deserialized body. - * - * @return null|array<string, mixed> - */ - public function getJsonBody() - { - return $this->jsonBody; - } - - /** - * Sets the JSON deserialized body. - * - * @param null|array<string, mixed> $jsonBody - */ - public function setJsonBody($jsonBody) - { - $this->jsonBody = $jsonBody; - } - - /** - * Gets the Stripe request ID. - * - * @return null|string - */ - public function getRequestId() - { - return $this->requestId; - } - - /** - * Sets the Stripe request ID. - * - * @param null|string $requestId - */ - public function setRequestId($requestId) - { - $this->requestId = $requestId; - } - - /** - * Gets the Stripe error code. - * - * Cf. the `CODE_*` constants on {@see \Stripe\ErrorObject} for possible - * values. - * - * @return null|string - */ - public function getStripeCode() - { - return $this->stripeCode; - } - - /** - * Sets the Stripe error code. - * - * @param null|string $stripeCode - */ - public function setStripeCode($stripeCode) - { - $this->stripeCode = $stripeCode; - } - - /** - * Returns the string representation of the exception. - * - * @return string - */ - public function __toString() - { - $statusStr = (null === $this->getHttpStatus()) ? '' : "(Status {$this->getHttpStatus()}) "; - $idStr = (null === $this->getRequestId()) ? '' : "(Request {$this->getRequestId()}) "; - - return "{$statusStr}{$idStr}{$this->getMessage()}"; - } - - protected function constructErrorObject() - { - if (null === $this->jsonBody || !\array_key_exists('error', $this->jsonBody)) { - return null; - } - - return \Stripe\ErrorObject::constructFrom($this->jsonBody['error']); - } -} +<?php
+
+namespace Stripe\Exception;
+
+/**
+ * Implements properties and methods common to all (non-SPL) Stripe exceptions.
+ */
+abstract class ApiErrorException extends \Exception implements ExceptionInterface
+{
+ protected $error;
+ protected $httpBody;
+ protected $httpHeaders;
+ protected $httpStatus;
+ protected $jsonBody;
+ protected $requestId;
+ protected $stripeCode;
+
+ /**
+ * Creates a new API error exception.
+ *
+ * @param string $message the exception message
+ * @param null|int $httpStatus the HTTP status code
+ * @param null|string $httpBody the HTTP body as a string
+ * @param null|array $jsonBody the JSON deserialized body
+ * @param null|array|\Stripe\Util\CaseInsensitiveArray $httpHeaders the HTTP headers array
+ * @param null|string $stripeCode the Stripe error code
+ *
+ * @return static
+ */
+ public static function factory(
+ $message,
+ $httpStatus = null,
+ $httpBody = null,
+ $jsonBody = null,
+ $httpHeaders = null,
+ $stripeCode = null
+ ) {
+ $instance = new static($message);
+ $instance->setHttpStatus($httpStatus);
+ $instance->setHttpBody($httpBody);
+ $instance->setJsonBody($jsonBody);
+ $instance->setHttpHeaders($httpHeaders);
+ $instance->setStripeCode($stripeCode);
+
+ $instance->setRequestId(null);
+ if ($httpHeaders && isset($httpHeaders['Request-Id'])) {
+ $instance->setRequestId($httpHeaders['Request-Id']);
+ }
+
+ $instance->setError($instance->constructErrorObject());
+
+ return $instance;
+ }
+
+ /**
+ * Gets the Stripe error object.
+ *
+ * @return null|\Stripe\ErrorObject
+ */
+ public function getError()
+ {
+ return $this->error;
+ }
+
+ /**
+ * Sets the Stripe error object.
+ *
+ * @param null|\Stripe\ErrorObject $error
+ */
+ public function setError($error)
+ {
+ $this->error = $error;
+ }
+
+ /**
+ * Gets the HTTP body as a string.
+ *
+ * @return null|string
+ */
+ public function getHttpBody()
+ {
+ return $this->httpBody;
+ }
+
+ /**
+ * Sets the HTTP body as a string.
+ *
+ * @param null|string $httpBody
+ */
+ public function setHttpBody($httpBody)
+ {
+ $this->httpBody = $httpBody;
+ }
+
+ /**
+ * Gets the HTTP headers array.
+ *
+ * @return null|array|\Stripe\Util\CaseInsensitiveArray
+ */
+ public function getHttpHeaders()
+ {
+ return $this->httpHeaders;
+ }
+
+ /**
+ * Sets the HTTP headers array.
+ *
+ * @param null|array|\Stripe\Util\CaseInsensitiveArray $httpHeaders
+ */
+ public function setHttpHeaders($httpHeaders)
+ {
+ $this->httpHeaders = $httpHeaders;
+ }
+
+ /**
+ * Gets the HTTP status code.
+ *
+ * @return null|int
+ */
+ public function getHttpStatus()
+ {
+ return $this->httpStatus;
+ }
+
+ /**
+ * Sets the HTTP status code.
+ *
+ * @param null|int $httpStatus
+ */
+ public function setHttpStatus($httpStatus)
+ {
+ $this->httpStatus = $httpStatus;
+ }
+
+ /**
+ * Gets the JSON deserialized body.
+ *
+ * @return null|array<string, mixed>
+ */
+ public function getJsonBody()
+ {
+ return $this->jsonBody;
+ }
+
+ /**
+ * Sets the JSON deserialized body.
+ *
+ * @param null|array<string, mixed> $jsonBody
+ */
+ public function setJsonBody($jsonBody)
+ {
+ $this->jsonBody = $jsonBody;
+ }
+
+ /**
+ * Gets the Stripe request ID.
+ *
+ * @return null|string
+ */
+ public function getRequestId()
+ {
+ return $this->requestId;
+ }
+
+ /**
+ * Sets the Stripe request ID.
+ *
+ * @param null|string $requestId
+ */
+ public function setRequestId($requestId)
+ {
+ $this->requestId = $requestId;
+ }
+
+ /**
+ * Gets the Stripe error code.
+ *
+ * Cf. the `CODE_*` constants on {@see \Stripe\ErrorObject} for possible
+ * values.
+ *
+ * @return null|string
+ */
+ public function getStripeCode()
+ {
+ return $this->stripeCode;
+ }
+
+ /**
+ * Sets the Stripe error code.
+ *
+ * @param null|string $stripeCode
+ */
+ public function setStripeCode($stripeCode)
+ {
+ $this->stripeCode = $stripeCode;
+ }
+
+ /**
+ * Returns the string representation of the exception.
+ *
+ * @return string
+ */
+ public function __toString()
+ {
+ $statusStr = (null === $this->getHttpStatus()) ? '' : "(Status {$this->getHttpStatus()}) ";
+ $idStr = (null === $this->getRequestId()) ? '' : "(Request {$this->getRequestId()}) ";
+
+ return "{$statusStr}{$idStr}{$this->getMessage()}";
+ }
+
+ protected function constructErrorObject()
+ {
+ if (null === $this->jsonBody || !\array_key_exists('error', $this->jsonBody)) {
+ return null;
+ }
+
+ return \Stripe\ErrorObject::constructFrom($this->jsonBody['error']);
+ }
+}
diff --git a/vendor/stripe/stripe-php/lib/Exception/AuthenticationException.php b/vendor/stripe/stripe-php/lib/Exception/AuthenticationException.php index 9e5c718..bd9356b 100644 --- a/vendor/stripe/stripe-php/lib/Exception/AuthenticationException.php +++ b/vendor/stripe/stripe-php/lib/Exception/AuthenticationException.php @@ -1,11 +1,11 @@ -<?php - -namespace Stripe\Exception; - -/** - * AuthenticationException is thrown when invalid credentials are used to - * connect to Stripe's servers. - */ -class AuthenticationException extends ApiErrorException -{ -} +<?php
+
+namespace Stripe\Exception;
+
+/**
+ * AuthenticationException is thrown when invalid credentials are used to
+ * connect to Stripe's servers.
+ */
+class AuthenticationException extends ApiErrorException
+{
+}
diff --git a/vendor/stripe/stripe-php/lib/Exception/BadMethodCallException.php b/vendor/stripe/stripe-php/lib/Exception/BadMethodCallException.php index 96bdf66..c1b084a 100644 --- a/vendor/stripe/stripe-php/lib/Exception/BadMethodCallException.php +++ b/vendor/stripe/stripe-php/lib/Exception/BadMethodCallException.php @@ -1,7 +1,7 @@ -<?php - -namespace Stripe\Exception; - -class BadMethodCallException extends \BadMethodCallException implements ExceptionInterface -{ -} +<?php
+
+namespace Stripe\Exception;
+
+class BadMethodCallException extends \BadMethodCallException implements ExceptionInterface
+{
+}
diff --git a/vendor/stripe/stripe-php/lib/Exception/CardException.php b/vendor/stripe/stripe-php/lib/Exception/CardException.php index 43df9c7..a459092 100644 --- a/vendor/stripe/stripe-php/lib/Exception/CardException.php +++ b/vendor/stripe/stripe-php/lib/Exception/CardException.php @@ -1,84 +1,84 @@ -<?php - -namespace Stripe\Exception; - -/** - * CardException is thrown when a user enters a card that can't be charged for - * some reason. - */ -class CardException extends ApiErrorException -{ - protected $declineCode; - protected $stripeParam; - - /** - * Creates a new CardException exception. - * - * @param string $message the exception message - * @param null|int $httpStatus the HTTP status code - * @param null|string $httpBody the HTTP body as a string - * @param null|array $jsonBody the JSON deserialized body - * @param null|array|\Stripe\Util\CaseInsensitiveArray $httpHeaders the HTTP headers array - * @param null|string $stripeCode the Stripe error code - * @param null|string $declineCode the decline code - * @param null|string $stripeParam the parameter related to the error - * - * @return CardException - */ - public static function factory( - $message, - $httpStatus = null, - $httpBody = null, - $jsonBody = null, - $httpHeaders = null, - $stripeCode = null, - $declineCode = null, - $stripeParam = null - ) { - $instance = parent::factory($message, $httpStatus, $httpBody, $jsonBody, $httpHeaders, $stripeCode); - $instance->setDeclineCode($declineCode); - $instance->setStripeParam($stripeParam); - - return $instance; - } - - /** - * Gets the decline code. - * - * @return null|string - */ - public function getDeclineCode() - { - return $this->declineCode; - } - - /** - * Sets the decline code. - * - * @param null|string $declineCode - */ - public function setDeclineCode($declineCode) - { - $this->declineCode = $declineCode; - } - - /** - * Gets the parameter related to the error. - * - * @return null|string - */ - public function getStripeParam() - { - return $this->stripeParam; - } - - /** - * Sets the parameter related to the error. - * - * @param null|string $stripeParam - */ - public function setStripeParam($stripeParam) - { - $this->stripeParam = $stripeParam; - } -} +<?php
+
+namespace Stripe\Exception;
+
+/**
+ * CardException is thrown when a user enters a card that can't be charged for
+ * some reason.
+ */
+class CardException extends ApiErrorException
+{
+ protected $declineCode;
+ protected $stripeParam;
+
+ /**
+ * Creates a new CardException exception.
+ *
+ * @param string $message the exception message
+ * @param null|int $httpStatus the HTTP status code
+ * @param null|string $httpBody the HTTP body as a string
+ * @param null|array $jsonBody the JSON deserialized body
+ * @param null|array|\Stripe\Util\CaseInsensitiveArray $httpHeaders the HTTP headers array
+ * @param null|string $stripeCode the Stripe error code
+ * @param null|string $declineCode the decline code
+ * @param null|string $stripeParam the parameter related to the error
+ *
+ * @return CardException
+ */
+ public static function factory(
+ $message,
+ $httpStatus = null,
+ $httpBody = null,
+ $jsonBody = null,
+ $httpHeaders = null,
+ $stripeCode = null,
+ $declineCode = null,
+ $stripeParam = null
+ ) {
+ $instance = parent::factory($message, $httpStatus, $httpBody, $jsonBody, $httpHeaders, $stripeCode);
+ $instance->setDeclineCode($declineCode);
+ $instance->setStripeParam($stripeParam);
+
+ return $instance;
+ }
+
+ /**
+ * Gets the decline code.
+ *
+ * @return null|string
+ */
+ public function getDeclineCode()
+ {
+ return $this->declineCode;
+ }
+
+ /**
+ * Sets the decline code.
+ *
+ * @param null|string $declineCode
+ */
+ public function setDeclineCode($declineCode)
+ {
+ $this->declineCode = $declineCode;
+ }
+
+ /**
+ * Gets the parameter related to the error.
+ *
+ * @return null|string
+ */
+ public function getStripeParam()
+ {
+ return $this->stripeParam;
+ }
+
+ /**
+ * Sets the parameter related to the error.
+ *
+ * @param null|string $stripeParam
+ */
+ public function setStripeParam($stripeParam)
+ {
+ $this->stripeParam = $stripeParam;
+ }
+}
diff --git a/vendor/stripe/stripe-php/lib/Exception/ExceptionInterface.php b/vendor/stripe/stripe-php/lib/Exception/ExceptionInterface.php index c84f37d..a0ccea9 100644 --- a/vendor/stripe/stripe-php/lib/Exception/ExceptionInterface.php +++ b/vendor/stripe/stripe-php/lib/Exception/ExceptionInterface.php @@ -1,22 +1,22 @@ -<?php - -namespace Stripe\Exception; - -// TODO: remove this check once we drop support for PHP 5 -if (\interface_exists(\Throwable::class, false)) { - /** - * The base interface for all Stripe exceptions. - */ - interface ExceptionInterface extends \Throwable - { - } -} else { - /** - * The base interface for all Stripe exceptions. - */ - // phpcs:disable PSR1.Classes.ClassDeclaration.MultipleClasses - interface ExceptionInterface - { - } - // phpcs:enable -} +<?php
+
+namespace Stripe\Exception;
+
+// TODO: remove this check once we drop support for PHP 5
+if (\interface_exists(\Throwable::class, false)) {
+ /**
+ * The base interface for all Stripe exceptions.
+ */
+ interface ExceptionInterface extends \Throwable
+ {
+ }
+} else {
+ /**
+ * The base interface for all Stripe exceptions.
+ */
+ // phpcs:disable PSR1.Classes.ClassDeclaration.MultipleClasses
+ interface ExceptionInterface
+ {
+ }
+ // phpcs:enable
+}
diff --git a/vendor/stripe/stripe-php/lib/Exception/IdempotencyException.php b/vendor/stripe/stripe-php/lib/Exception/IdempotencyException.php index 09dbf07..613366d 100644 --- a/vendor/stripe/stripe-php/lib/Exception/IdempotencyException.php +++ b/vendor/stripe/stripe-php/lib/Exception/IdempotencyException.php @@ -1,11 +1,11 @@ -<?php - -namespace Stripe\Exception; - -/** - * IdempotencyException is thrown in cases where an idempotency key was used - * improperly. - */ -class IdempotencyException extends ApiErrorException -{ -} +<?php
+
+namespace Stripe\Exception;
+
+/**
+ * IdempotencyException is thrown in cases where an idempotency key was used
+ * improperly.
+ */
+class IdempotencyException extends ApiErrorException
+{
+}
diff --git a/vendor/stripe/stripe-php/lib/Exception/InvalidArgumentException.php b/vendor/stripe/stripe-php/lib/Exception/InvalidArgumentException.php index 7aa3ca3..410bfad 100644 --- a/vendor/stripe/stripe-php/lib/Exception/InvalidArgumentException.php +++ b/vendor/stripe/stripe-php/lib/Exception/InvalidArgumentException.php @@ -1,7 +1,7 @@ -<?php - -namespace Stripe\Exception; - -class InvalidArgumentException extends \InvalidArgumentException implements ExceptionInterface -{ -} +<?php
+
+namespace Stripe\Exception;
+
+class InvalidArgumentException extends \InvalidArgumentException implements ExceptionInterface
+{
+}
diff --git a/vendor/stripe/stripe-php/lib/Exception/InvalidRequestException.php b/vendor/stripe/stripe-php/lib/Exception/InvalidRequestException.php index ed4f8d0..46a52fc 100644 --- a/vendor/stripe/stripe-php/lib/Exception/InvalidRequestException.php +++ b/vendor/stripe/stripe-php/lib/Exception/InvalidRequestException.php @@ -1,60 +1,60 @@ -<?php - -namespace Stripe\Exception; - -/** - * InvalidRequestException is thrown when a request is initiated with invalid - * parameters. - */ -class InvalidRequestException extends ApiErrorException -{ - protected $stripeParam; - - /** - * Creates a new InvalidRequestException exception. - * - * @param string $message the exception message - * @param null|int $httpStatus the HTTP status code - * @param null|string $httpBody the HTTP body as a string - * @param null|array $jsonBody the JSON deserialized body - * @param null|array|\Stripe\Util\CaseInsensitiveArray $httpHeaders the HTTP headers array - * @param null|string $stripeCode the Stripe error code - * @param null|string $stripeParam the parameter related to the error - * - * @return InvalidRequestException - */ - public static function factory( - $message, - $httpStatus = null, - $httpBody = null, - $jsonBody = null, - $httpHeaders = null, - $stripeCode = null, - $stripeParam = null - ) { - $instance = parent::factory($message, $httpStatus, $httpBody, $jsonBody, $httpHeaders, $stripeCode); - $instance->setStripeParam($stripeParam); - - return $instance; - } - - /** - * Gets the parameter related to the error. - * - * @return null|string - */ - public function getStripeParam() - { - return $this->stripeParam; - } - - /** - * Sets the parameter related to the error. - * - * @param null|string $stripeParam - */ - public function setStripeParam($stripeParam) - { - $this->stripeParam = $stripeParam; - } -} +<?php
+
+namespace Stripe\Exception;
+
+/**
+ * InvalidRequestException is thrown when a request is initiated with invalid
+ * parameters.
+ */
+class InvalidRequestException extends ApiErrorException
+{
+ protected $stripeParam;
+
+ /**
+ * Creates a new InvalidRequestException exception.
+ *
+ * @param string $message the exception message
+ * @param null|int $httpStatus the HTTP status code
+ * @param null|string $httpBody the HTTP body as a string
+ * @param null|array $jsonBody the JSON deserialized body
+ * @param null|array|\Stripe\Util\CaseInsensitiveArray $httpHeaders the HTTP headers array
+ * @param null|string $stripeCode the Stripe error code
+ * @param null|string $stripeParam the parameter related to the error
+ *
+ * @return InvalidRequestException
+ */
+ public static function factory(
+ $message,
+ $httpStatus = null,
+ $httpBody = null,
+ $jsonBody = null,
+ $httpHeaders = null,
+ $stripeCode = null,
+ $stripeParam = null
+ ) {
+ $instance = parent::factory($message, $httpStatus, $httpBody, $jsonBody, $httpHeaders, $stripeCode);
+ $instance->setStripeParam($stripeParam);
+
+ return $instance;
+ }
+
+ /**
+ * Gets the parameter related to the error.
+ *
+ * @return null|string
+ */
+ public function getStripeParam()
+ {
+ return $this->stripeParam;
+ }
+
+ /**
+ * Sets the parameter related to the error.
+ *
+ * @param null|string $stripeParam
+ */
+ public function setStripeParam($stripeParam)
+ {
+ $this->stripeParam = $stripeParam;
+ }
+}
diff --git a/vendor/stripe/stripe-php/lib/Exception/OAuth/ExceptionInterface.php b/vendor/stripe/stripe-php/lib/Exception/OAuth/ExceptionInterface.php index dd42662..bc1986f 100644 --- a/vendor/stripe/stripe-php/lib/Exception/OAuth/ExceptionInterface.php +++ b/vendor/stripe/stripe-php/lib/Exception/OAuth/ExceptionInterface.php @@ -1,10 +1,10 @@ -<?php - -namespace Stripe\Exception\OAuth; - -/** - * The base interface for all Stripe OAuth exceptions. - */ -interface ExceptionInterface extends \Stripe\Exception\ExceptionInterface -{ -} +<?php
+
+namespace Stripe\Exception\OAuth;
+
+/**
+ * The base interface for all Stripe OAuth exceptions.
+ */
+interface ExceptionInterface extends \Stripe\Exception\ExceptionInterface
+{
+}
diff --git a/vendor/stripe/stripe-php/lib/Exception/OAuth/InvalidClientException.php b/vendor/stripe/stripe-php/lib/Exception/OAuth/InvalidClientException.php index 1393451..ffb8550 100644 --- a/vendor/stripe/stripe-php/lib/Exception/OAuth/InvalidClientException.php +++ b/vendor/stripe/stripe-php/lib/Exception/OAuth/InvalidClientException.php @@ -1,12 +1,12 @@ -<?php - -namespace 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 -{ -} +<?php
+
+namespace 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
+{
+}
diff --git a/vendor/stripe/stripe-php/lib/Exception/OAuth/InvalidGrantException.php b/vendor/stripe/stripe-php/lib/Exception/OAuth/InvalidGrantException.php index 898b3a7..daf51eb 100644 --- a/vendor/stripe/stripe-php/lib/Exception/OAuth/InvalidGrantException.php +++ b/vendor/stripe/stripe-php/lib/Exception/OAuth/InvalidGrantException.php @@ -1,13 +1,13 @@ -<?php - -namespace 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 -{ -} +<?php
+
+namespace 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
+{
+}
diff --git a/vendor/stripe/stripe-php/lib/Exception/OAuth/InvalidRequestException.php b/vendor/stripe/stripe-php/lib/Exception/OAuth/InvalidRequestException.php index 59dac7c..0c6845f 100644 --- a/vendor/stripe/stripe-php/lib/Exception/OAuth/InvalidRequestException.php +++ b/vendor/stripe/stripe-php/lib/Exception/OAuth/InvalidRequestException.php @@ -1,11 +1,11 @@ -<?php - -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 -{ -} +<?php
+
+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
+{
+}
diff --git a/vendor/stripe/stripe-php/lib/Exception/OAuth/InvalidScopeException.php b/vendor/stripe/stripe-php/lib/Exception/OAuth/InvalidScopeException.php index 091729d..18c36c5 100644 --- a/vendor/stripe/stripe-php/lib/Exception/OAuth/InvalidScopeException.php +++ b/vendor/stripe/stripe-php/lib/Exception/OAuth/InvalidScopeException.php @@ -1,10 +1,10 @@ -<?php - -namespace Stripe\Exception\OAuth; - -/** - * InvalidScopeException is thrown when an invalid scope parameter is provided. - */ -class InvalidScopeException extends OAuthErrorException -{ -} +<?php
+
+namespace Stripe\Exception\OAuth;
+
+/**
+ * InvalidScopeException is thrown when an invalid scope parameter is provided.
+ */
+class InvalidScopeException extends OAuthErrorException
+{
+}
diff --git a/vendor/stripe/stripe-php/lib/Exception/OAuth/OAuthErrorException.php b/vendor/stripe/stripe-php/lib/Exception/OAuth/OAuthErrorException.php index bded3c8..15d2b9c 100644 --- a/vendor/stripe/stripe-php/lib/Exception/OAuth/OAuthErrorException.php +++ b/vendor/stripe/stripe-php/lib/Exception/OAuth/OAuthErrorException.php @@ -1,19 +1,19 @@ -<?php - -namespace Stripe\Exception\OAuth; - -/** - * Implements properties and methods common to all (non-SPL) Stripe OAuth - * exceptions. - */ -abstract class OAuthErrorException extends \Stripe\Exception\ApiErrorException -{ - protected function constructErrorObject() - { - if (null === $this->jsonBody) { - return null; - } - - return \Stripe\OAuthErrorObject::constructFrom($this->jsonBody); - } -} +<?php
+
+namespace Stripe\Exception\OAuth;
+
+/**
+ * Implements properties and methods common to all (non-SPL) Stripe OAuth
+ * exceptions.
+ */
+abstract class OAuthErrorException extends \Stripe\Exception\ApiErrorException
+{
+ protected function constructErrorObject()
+ {
+ if (null === $this->jsonBody) {
+ return null;
+ }
+
+ return \Stripe\OAuthErrorObject::constructFrom($this->jsonBody);
+ }
+}
diff --git a/vendor/stripe/stripe-php/lib/Exception/OAuth/UnknownOAuthErrorException.php b/vendor/stripe/stripe-php/lib/Exception/OAuth/UnknownOAuthErrorException.php index c8dba29..f1d6f94 100644 --- a/vendor/stripe/stripe-php/lib/Exception/OAuth/UnknownOAuthErrorException.php +++ b/vendor/stripe/stripe-php/lib/Exception/OAuth/UnknownOAuthErrorException.php @@ -1,12 +1,12 @@ -<?php - -namespace 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 -{ -} +<?php
+
+namespace 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
+{
+}
diff --git a/vendor/stripe/stripe-php/lib/Exception/OAuth/UnsupportedGrantTypeException.php b/vendor/stripe/stripe-php/lib/Exception/OAuth/UnsupportedGrantTypeException.php index 418635d..7a2971d 100644 --- a/vendor/stripe/stripe-php/lib/Exception/OAuth/UnsupportedGrantTypeException.php +++ b/vendor/stripe/stripe-php/lib/Exception/OAuth/UnsupportedGrantTypeException.php @@ -1,11 +1,11 @@ -<?php - -namespace Stripe\Exception\OAuth; - -/** - * UnsupportedGrantTypeException is thrown when an unuspported grant type - * parameter is specified. - */ -class UnsupportedGrantTypeException extends OAuthErrorException -{ -} +<?php
+
+namespace Stripe\Exception\OAuth;
+
+/**
+ * UnsupportedGrantTypeException is thrown when an unuspported grant type
+ * parameter is specified.
+ */
+class UnsupportedGrantTypeException extends OAuthErrorException
+{
+}
diff --git a/vendor/stripe/stripe-php/lib/Exception/OAuth/UnsupportedResponseTypeException.php b/vendor/stripe/stripe-php/lib/Exception/OAuth/UnsupportedResponseTypeException.php index 26742a8..58502d0 100644 --- a/vendor/stripe/stripe-php/lib/Exception/OAuth/UnsupportedResponseTypeException.php +++ b/vendor/stripe/stripe-php/lib/Exception/OAuth/UnsupportedResponseTypeException.php @@ -1,11 +1,11 @@ -<?php - -namespace Stripe\Exception\OAuth; - -/** - * UnsupportedResponseTypeException is thrown when an unsupported response type - * parameter is specified. - */ -class UnsupportedResponseTypeException extends OAuthErrorException -{ -} +<?php
+
+namespace Stripe\Exception\OAuth;
+
+/**
+ * UnsupportedResponseTypeException is thrown when an unsupported response type
+ * parameter is specified.
+ */
+class UnsupportedResponseTypeException extends OAuthErrorException
+{
+}
diff --git a/vendor/stripe/stripe-php/lib/Exception/PermissionException.php b/vendor/stripe/stripe-php/lib/Exception/PermissionException.php index 5cf5154..a4832d5 100644 --- a/vendor/stripe/stripe-php/lib/Exception/PermissionException.php +++ b/vendor/stripe/stripe-php/lib/Exception/PermissionException.php @@ -1,11 +1,11 @@ -<?php - -namespace Stripe\Exception; - -/** - * PermissionException is thrown in cases where access was attempted on a - * resource that wasn't allowed. - */ -class PermissionException extends ApiErrorException -{ -} +<?php
+
+namespace Stripe\Exception;
+
+/**
+ * PermissionException is thrown in cases where access was attempted on a
+ * resource that wasn't allowed.
+ */
+class PermissionException extends ApiErrorException
+{
+}
diff --git a/vendor/stripe/stripe-php/lib/Exception/RateLimitException.php b/vendor/stripe/stripe-php/lib/Exception/RateLimitException.php index f28f450..cd5c769 100644 --- a/vendor/stripe/stripe-php/lib/Exception/RateLimitException.php +++ b/vendor/stripe/stripe-php/lib/Exception/RateLimitException.php @@ -1,12 +1,12 @@ -<?php - -namespace Stripe\Exception; - -/** - * RateLimitException is thrown in cases where an account is putting too much - * load on Stripe's API servers (usually by performing too many requests). - * Please back off on request rate. - */ -class RateLimitException extends InvalidRequestException -{ -} +<?php
+
+namespace Stripe\Exception;
+
+/**
+ * RateLimitException is thrown in cases where an account is putting too much
+ * load on Stripe's API servers (usually by performing too many requests).
+ * Please back off on request rate.
+ */
+class RateLimitException extends InvalidRequestException
+{
+}
diff --git a/vendor/stripe/stripe-php/lib/Exception/SignatureVerificationException.php b/vendor/stripe/stripe-php/lib/Exception/SignatureVerificationException.php index b08534a..9d2e92c 100644 --- a/vendor/stripe/stripe-php/lib/Exception/SignatureVerificationException.php +++ b/vendor/stripe/stripe-php/lib/Exception/SignatureVerificationException.php @@ -1,74 +1,74 @@ -<?php - -namespace Stripe\Exception; - -/** - * SignatureVerificationException is thrown when the signature verification for - * a webhook fails. - */ -class SignatureVerificationException extends \Exception implements ExceptionInterface -{ - protected $httpBody; - protected $sigHeader; - - /** - * Creates a new SignatureVerificationException exception. - * - * @param string $message the exception message - * @param null|string $httpBody the HTTP body as a string - * @param null|string $sigHeader the `Stripe-Signature` HTTP header - * - * @return SignatureVerificationException - */ - public static function factory( - $message, - $httpBody = null, - $sigHeader = null - ) { - $instance = new static($message); - $instance->setHttpBody($httpBody); - $instance->setSigHeader($sigHeader); - - return $instance; - } - - /** - * Gets the HTTP body as a string. - * - * @return null|string - */ - public function getHttpBody() - { - return $this->httpBody; - } - - /** - * Sets the HTTP body as a string. - * - * @param null|string $httpBody - */ - public function setHttpBody($httpBody) - { - $this->httpBody = $httpBody; - } - - /** - * Gets the `Stripe-Signature` HTTP header. - * - * @return null|string - */ - public function getSigHeader() - { - return $this->sigHeader; - } - - /** - * Sets the `Stripe-Signature` HTTP header. - * - * @param null|string $sigHeader - */ - public function setSigHeader($sigHeader) - { - $this->sigHeader = $sigHeader; - } -} +<?php
+
+namespace Stripe\Exception;
+
+/**
+ * SignatureVerificationException is thrown when the signature verification for
+ * a webhook fails.
+ */
+class SignatureVerificationException extends \Exception implements ExceptionInterface
+{
+ protected $httpBody;
+ protected $sigHeader;
+
+ /**
+ * Creates a new SignatureVerificationException exception.
+ *
+ * @param string $message the exception message
+ * @param null|string $httpBody the HTTP body as a string
+ * @param null|string $sigHeader the `Stripe-Signature` HTTP header
+ *
+ * @return SignatureVerificationException
+ */
+ public static function factory(
+ $message,
+ $httpBody = null,
+ $sigHeader = null
+ ) {
+ $instance = new static($message);
+ $instance->setHttpBody($httpBody);
+ $instance->setSigHeader($sigHeader);
+
+ return $instance;
+ }
+
+ /**
+ * Gets the HTTP body as a string.
+ *
+ * @return null|string
+ */
+ public function getHttpBody()
+ {
+ return $this->httpBody;
+ }
+
+ /**
+ * Sets the HTTP body as a string.
+ *
+ * @param null|string $httpBody
+ */
+ public function setHttpBody($httpBody)
+ {
+ $this->httpBody = $httpBody;
+ }
+
+ /**
+ * Gets the `Stripe-Signature` HTTP header.
+ *
+ * @return null|string
+ */
+ public function getSigHeader()
+ {
+ return $this->sigHeader;
+ }
+
+ /**
+ * Sets the `Stripe-Signature` HTTP header.
+ *
+ * @param null|string $sigHeader
+ */
+ public function setSigHeader($sigHeader)
+ {
+ $this->sigHeader = $sigHeader;
+ }
+}
diff --git a/vendor/stripe/stripe-php/lib/Exception/UnexpectedValueException.php b/vendor/stripe/stripe-php/lib/Exception/UnexpectedValueException.php index 0a629ed..5270eeb 100644 --- a/vendor/stripe/stripe-php/lib/Exception/UnexpectedValueException.php +++ b/vendor/stripe/stripe-php/lib/Exception/UnexpectedValueException.php @@ -1,7 +1,7 @@ -<?php - -namespace Stripe\Exception; - -class UnexpectedValueException extends \UnexpectedValueException implements ExceptionInterface -{ -} +<?php
+
+namespace Stripe\Exception;
+
+class UnexpectedValueException extends \UnexpectedValueException implements ExceptionInterface
+{
+}
diff --git a/vendor/stripe/stripe-php/lib/Exception/UnknownApiErrorException.php b/vendor/stripe/stripe-php/lib/Exception/UnknownApiErrorException.php index 7873bf8..2617979 100644 --- a/vendor/stripe/stripe-php/lib/Exception/UnknownApiErrorException.php +++ b/vendor/stripe/stripe-php/lib/Exception/UnknownApiErrorException.php @@ -1,12 +1,12 @@ -<?php - -namespace Stripe\Exception; - -/** - * UnknownApiErrorException is thrown when the client library receives an - * 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 -{ -} +<?php
+
+namespace Stripe\Exception;
+
+/**
+ * UnknownApiErrorException is thrown when the client library receives an
+ * 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
+{
+}
|