summaryrefslogtreecommitdiffstats
path: root/vendor/stripe/stripe-php/lib/Service
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/stripe/stripe-php/lib/Service')
-rw-r--r--vendor/stripe/stripe-php/lib/Service/AbstractService.php184
-rw-r--r--vendor/stripe/stripe-php/lib/Service/AbstractServiceFactory.php118
-rw-r--r--vendor/stripe/stripe-php/lib/Service/AccountLinkService.php50
-rw-r--r--vendor/stripe/stripe-php/lib/Service/AccountService.php763
-rw-r--r--vendor/stripe/stripe-php/lib/Service/ApplePayDomainService.php140
-rw-r--r--vendor/stripe/stripe-php/lib/Service/ApplicationFeeService.php250
-rw-r--r--vendor/stripe/stripe-php/lib/Service/BalanceService.php52
-rw-r--r--vendor/stripe/stripe-php/lib/Service/BalanceTransactionService.php94
-rw-r--r--vendor/stripe/stripe-php/lib/Service/BillingPortal/BillingPortalServiceFactory.php54
-rw-r--r--vendor/stripe/stripe-php/lib/Service/BillingPortal/ConfigurationService.php146
-rw-r--r--vendor/stripe/stripe-php/lib/Service/BillingPortal/SessionService.php46
-rw-r--r--vendor/stripe/stripe-php/lib/Service/ChargeService.php223
-rw-r--r--vendor/stripe/stripe-php/lib/Service/Checkout/CheckoutServiceFactory.php50
-rw-r--r--vendor/stripe/stripe-php/lib/Service/Checkout/SessionService.php165
-rw-r--r--vendor/stripe/stripe-php/lib/Service/CoreServiceFactory.php268
-rw-r--r--vendor/stripe/stripe-php/lib/Service/CountrySpecService.php78
-rw-r--r--vendor/stripe/stripe-php/lib/Service/CouponService.php208
-rw-r--r--vendor/stripe/stripe-php/lib/Service/CreditNoteService.php312
-rw-r--r--vendor/stripe/stripe-php/lib/Service/CustomerService.php793
-rw-r--r--vendor/stripe/stripe-php/lib/Service/DisputeService.php166
-rw-r--r--vendor/stripe/stripe-php/lib/Service/EphemeralKeyService.php86
-rw-r--r--vendor/stripe/stripe-php/lib/Service/EventService.php88
-rw-r--r--vendor/stripe/stripe-php/lib/Service/ExchangeRateService.php82
-rw-r--r--vendor/stripe/stripe-php/lib/Service/FileLinkService.php140
-rw-r--r--vendor/stripe/stripe-php/lib/Service/FileService.php132
-rw-r--r--vendor/stripe/stripe-php/lib/Service/FinancialConnections/AccountService.php58
-rw-r--r--vendor/stripe/stripe-php/lib/Service/FinancialConnections/FinancialConnectionsServiceFactory.php27
-rw-r--r--vendor/stripe/stripe-php/lib/Service/FinancialConnections/SessionService.php41
-rw-r--r--vendor/stripe/stripe-php/lib/Service/Identity/IdentityServiceFactory.php54
-rw-r--r--vendor/stripe/stripe-php/lib/Service/Identity/VerificationReportService.php78
-rw-r--r--vendor/stripe/stripe-php/lib/Service/Identity/VerificationSessionService.php292
-rw-r--r--vendor/stripe/stripe-php/lib/Service/InvoiceItemService.php186
-rw-r--r--vendor/stripe/stripe-php/lib/Service/InvoiceService.php564
-rw-r--r--vendor/stripe/stripe-php/lib/Service/Issuing/AuthorizationService.php194
-rw-r--r--vendor/stripe/stripe-php/lib/Service/Issuing/CardService.php146
-rw-r--r--vendor/stripe/stripe-php/lib/Service/Issuing/CardholderService.php148
-rw-r--r--vendor/stripe/stripe-php/lib/Service/Issuing/DisputeService.php198
-rw-r--r--vendor/stripe/stripe-php/lib/Service/Issuing/IssuingServiceFactory.php66
-rw-r--r--vendor/stripe/stripe-php/lib/Service/Issuing/TransactionService.php118
-rw-r--r--vendor/stripe/stripe-php/lib/Service/MandateService.php48
-rw-r--r--vendor/stripe/stripe-php/lib/Service/OAuthService.php300
-rw-r--r--vendor/stripe/stripe-php/lib/Service/OrderReturnService.php84
-rw-r--r--vendor/stripe/stripe-php/lib/Service/OrderService.php218
-rw-r--r--vendor/stripe/stripe-php/lib/Service/PaymentIntentService.php464
-rw-r--r--vendor/stripe/stripe-php/lib/Service/PaymentLinkService.php89
-rw-r--r--vendor/stripe/stripe-php/lib/Service/PaymentMethodService.php251
-rw-r--r--vendor/stripe/stripe-php/lib/Service/PayoutService.php254
-rw-r--r--vendor/stripe/stripe-php/lib/Service/PlanService.php182
-rw-r--r--vendor/stripe/stripe-php/lib/Service/PriceService.php164
-rw-r--r--vendor/stripe/stripe-php/lib/Service/ProductService.php204
-rw-r--r--vendor/stripe/stripe-php/lib/Service/PromotionCodeService.php147
-rw-r--r--vendor/stripe/stripe-php/lib/Service/QuoteService.php177
-rw-r--r--vendor/stripe/stripe-php/lib/Service/Radar/EarlyFraudWarningService.php86
-rw-r--r--vendor/stripe/stripe-php/lib/Service/Radar/RadarServiceFactory.php58
-rw-r--r--vendor/stripe/stripe-php/lib/Service/Radar/ValueListItemService.php148
-rw-r--r--vendor/stripe/stripe-php/lib/Service/Radar/ValueListService.php186
-rw-r--r--vendor/stripe/stripe-php/lib/Service/RefundService.php171
-rw-r--r--vendor/stripe/stripe-php/lib/Service/Reporting/ReportRunService.php110
-rw-r--r--vendor/stripe/stripe-php/lib/Service/Reporting/ReportTypeService.php80
-rw-r--r--vendor/stripe/stripe-php/lib/Service/Reporting/ReportingServiceFactory.php54
-rw-r--r--vendor/stripe/stripe-php/lib/Service/ReviewService.php116
-rw-r--r--vendor/stripe/stripe-php/lib/Service/SetupAttemptService.php46
-rw-r--r--vendor/stripe/stripe-php/lib/Service/SetupIntentService.php270
-rw-r--r--vendor/stripe/stripe-php/lib/Service/ShippingRateService.php70
-rw-r--r--vendor/stripe/stripe-php/lib/Service/Sigma/ScheduledQueryRunService.php78
-rw-r--r--vendor/stripe/stripe-php/lib/Service/Sigma/SigmaServiceFactory.php50
-rw-r--r--vendor/stripe/stripe-php/lib/Service/SkuService.php190
-rw-r--r--vendor/stripe/stripe-php/lib/Service/SourceService.php220
-rw-r--r--vendor/stripe/stripe-php/lib/Service/SubscriptionItemService.php302
-rw-r--r--vendor/stripe/stripe-php/lib/Service/SubscriptionScheduleService.php226
-rw-r--r--vendor/stripe/stripe-php/lib/Service/SubscriptionService.php279
-rw-r--r--vendor/stripe/stripe-php/lib/Service/TaxCodeService.php82
-rw-r--r--vendor/stripe/stripe-php/lib/Service/TaxRateService.php142
-rw-r--r--vendor/stripe/stripe-php/lib/Service/Terminal/ConfigurationService.php86
-rw-r--r--vendor/stripe/stripe-php/lib/Service/Terminal/ConnectionTokenService.php50
-rw-r--r--vendor/stripe/stripe-php/lib/Service/Terminal/LocationService.php176
-rw-r--r--vendor/stripe/stripe-php/lib/Service/Terminal/ReaderService.php238
-rw-r--r--vendor/stripe/stripe-php/lib/Service/Terminal/TerminalServiceFactory.php60
-rw-r--r--vendor/stripe/stripe-php/lib/Service/TestHelpers/RefundService.php24
-rw-r--r--vendor/stripe/stripe-php/lib/Service/TestHelpers/Terminal/ReaderService.php25
-rw-r--r--vendor/stripe/stripe-php/lib/Service/TestHelpers/Terminal/TerminalServiceFactory.php25
-rw-r--r--vendor/stripe/stripe-php/lib/Service/TestHelpers/TestClockService.php87
-rw-r--r--vendor/stripe/stripe-php/lib/Service/TestHelpers/TestHelpersServiceFactory.php29
-rw-r--r--vendor/stripe/stripe-php/lib/Service/TokenService.php84
-rw-r--r--vendor/stripe/stripe-php/lib/Service/TopupService.php178
-rw-r--r--vendor/stripe/stripe-php/lib/Service/TransferService.php350
-rw-r--r--vendor/stripe/stripe-php/lib/Service/WebhookEndpointService.php194
87 files changed, 7610 insertions, 6400 deletions
diff --git a/vendor/stripe/stripe-php/lib/Service/AbstractService.php b/vendor/stripe/stripe-php/lib/Service/AbstractService.php
index ed092c8..79cd9d9 100644
--- a/vendor/stripe/stripe-php/lib/Service/AbstractService.php
+++ b/vendor/stripe/stripe-php/lib/Service/AbstractService.php
@@ -1,79 +1,105 @@
-<?php
-
-namespace Stripe\Service;
-
-/**
- * Abstract base class for all services.
- */
-abstract class AbstractService
-{
- /**
- * @var \Stripe\StripeClientInterface
- */
- protected $client;
-
- /**
- * Initializes a new instance of the {@link AbstractService} class.
- *
- * @param \Stripe\StripeClientInterface $client
- */
- public function __construct($client)
- {
- $this->client = $client;
- }
-
- /**
- * Gets the client used by this service to send requests.
- *
- * @return \Stripe\StripeClientInterface
- */
- public function getClient()
- {
- return $this->client;
- }
-
- /**
- * Translate null values to empty strings. For service methods,
- * we interpret null as a request to unset the field, which
- * corresponds to sending an empty string for the field to the
- * API.
- *
- * @param null|array $params
- */
- private static function formatParams($params)
- {
- if (null === $params) {
- return null;
- }
- \array_walk_recursive($params, function (&$value, $key) {
- if (null === $value) {
- $value = '';
- }
- });
-
- return $params;
- }
-
- protected function request($method, $path, $params, $opts)
- {
- return $this->getClient()->request($method, $path, static::formatParams($params), $opts);
- }
-
- protected function requestCollection($method, $path, $params, $opts)
- {
- return $this->getClient()->requestCollection($method, $path, static::formatParams($params), $opts);
- }
-
- protected function buildPath($basePath, ...$ids)
- {
- foreach ($ids as $id) {
- if (null === $id || '' === \trim($id)) {
- $msg = 'The resource ID cannot be null or whitespace.';
-
- throw new \Stripe\Exception\InvalidArgumentException($msg);
- }
- }
-
- return \sprintf($basePath, ...\array_map('\urlencode', $ids));
- }
-}
+<?php
+
+namespace Stripe\Service;
+
+/**
+ * Abstract base class for all services.
+ */
+abstract class AbstractService
+{
+ /**
+ * @var \Stripe\StripeClientInterface
+ */
+ protected $client;
+
+ /**
+ * @var \Stripe\StripeStreamingClientInterface
+ */
+ protected $streamingClient;
+
+ /**
+ * Initializes a new instance of the {@link AbstractService} class.
+ *
+ * @param \Stripe\StripeClientInterface $client
+ */
+ public function __construct($client)
+ {
+ $this->client = $client;
+ $this->streamingClient = $client;
+ }
+
+ /**
+ * Gets the client used by this service to send requests.
+ *
+ * @return \Stripe\StripeClientInterface
+ */
+ public function getClient()
+ {
+ return $this->client;
+ }
+
+ /**
+ * Gets the client used by this service to send requests.
+ *
+ * @return \Stripe\StripeStreamingClientInterface
+ */
+ public function getStreamingClient()
+ {
+ return $this->streamingClient;
+ }
+
+ /**
+ * Translate null values to empty strings. For service methods,
+ * we interpret null as a request to unset the field, which
+ * corresponds to sending an empty string for the field to the
+ * API.
+ *
+ * @param null|array $params
+ */
+ private static function formatParams($params)
+ {
+ if (null === $params) {
+ return null;
+ }
+ \array_walk_recursive($params, function (&$value, $key) {
+ if (null === $value) {
+ $value = '';
+ }
+ });
+
+ return $params;
+ }
+
+ protected function request($method, $path, $params, $opts)
+ {
+ return $this->getClient()->request($method, $path, static::formatParams($params), $opts);
+ }
+
+ protected function requestStream($method, $path, $readBodyChunkCallable, $params, $opts)
+ {
+ return $this->getStreamingClient()->requestStream($method, $path, $readBodyChunkCallable, static::formatParams($params), $opts);
+ }
+
+ protected function requestCollection($method, $path, $params, $opts)
+ {
+ return $this->getClient()->requestCollection($method, $path, static::formatParams($params), $opts);
+ }
+
+ protected function requestSearchResult($method, $path, $params, $opts)
+ {
+ return $this->getClient()->requestSearchResult($method, $path, static::formatParams($params), $opts);
+ }
+
+ protected function buildPath($basePath, ...$ids)
+ {
+ foreach ($ids as $id) {
+ if (null === $id || '' === \trim($id)) {
+ $msg = 'The resource ID cannot be null or whitespace.';
+
+ throw new \Stripe\Exception\InvalidArgumentException($msg);
+ }
+ }
+
+ return \sprintf($basePath, ...\array_map('\urlencode', $ids));
+ }
+}
diff --git a/vendor/stripe/stripe-php/lib/Service/AbstractServiceFactory.php b/vendor/stripe/stripe-php/lib/Service/AbstractServiceFactory.php
index 4aca686..f11f5f3 100644
--- a/vendor/stripe/stripe-php/lib/Service/AbstractServiceFactory.php
+++ b/vendor/stripe/stripe-php/lib/Service/AbstractServiceFactory.php
@@ -1,59 +1,59 @@
-<?php
-
-namespace Stripe\Service;
-
-/**
- * Abstract base class for all service factories used to expose service
- * instances through {@link \Stripe\StripeClient}.
- *
- * Service factories serve two purposes:
- *
- * 1. Expose properties for all services through the `__get()` magic method.
- * 2. Lazily initialize each service instance the first time the property for
- * a given service is used.
- */
-abstract class AbstractServiceFactory
-{
- /** @var \Stripe\StripeClientInterface */
- private $client;
-
- /** @var array<string, AbstractService|AbstractServiceFactory> */
- private $services;
-
- /**
- * @param \Stripe\StripeClientInterface $client
- */
- public function __construct($client)
- {
- $this->client = $client;
- $this->services = [];
- }
-
- /**
- * @param string $name
- *
- * @return null|string
- */
- abstract protected function getServiceClass($name);
-
- /**
- * @param string $name
- *
- * @return null|AbstractService|AbstractServiceFactory
- */
- public function __get($name)
- {
- $serviceClass = $this->getServiceClass($name);
- if (null !== $serviceClass) {
- if (!\array_key_exists($name, $this->services)) {
- $this->services[$name] = new $serviceClass($this->client);
- }
-
- return $this->services[$name];
- }
-
- \trigger_error('Undefined property: ' . static::class . '::$' . $name);
-
- return null;
- }
-}
+<?php
+
+namespace Stripe\Service;
+
+/**
+ * Abstract base class for all service factories used to expose service
+ * instances through {@link \Stripe\StripeClient}.
+ *
+ * Service factories serve two purposes:
+ *
+ * 1. Expose properties for all services through the `__get()` magic method.
+ * 2. Lazily initialize each service instance the first time the property for
+ * a given service is used.
+ */
+abstract class AbstractServiceFactory
+{
+ /** @var \Stripe\StripeClientInterface */
+ private $client;
+
+ /** @var array<string, AbstractService|AbstractServiceFactory> */
+ private $services;
+
+ /**
+ * @param \Stripe\StripeClientInterface $client
+ */
+ public function __construct($client)
+ {
+ $this->client = $client;
+ $this->services = [];
+ }
+
+ /**
+ * @param string $name
+ *
+ * @return null|string
+ */
+ abstract protected function getServiceClass($name);
+
+ /**
+ * @param string $name
+ *
+ * @return null|AbstractService|AbstractServiceFactory
+ */
+ public function __get($name)
+ {
+ $serviceClass = $this->getServiceClass($name);
+ if (null !== $serviceClass) {
+ if (!\array_key_exists($name, $this->services)) {
+ $this->services[$name] = new $serviceClass($this->client);
+ }
+
+ return $this->services[$name];
+ }
+
+ \trigger_error('Undefined property: ' . static::class . '::$' . $name);
+
+ return null;
+ }
+}
diff --git a/vendor/stripe/stripe-php/lib/Service/AccountLinkService.php b/vendor/stripe/stripe-php/lib/Service/AccountLinkService.php
index 2e90492..46894b9 100644
--- a/vendor/stripe/stripe-php/lib/Service/AccountLinkService.php
+++ b/vendor/stripe/stripe-php/lib/Service/AccountLinkService.php
@@ -1,25 +1,25 @@
-<?php
-
-// File generated from our OpenAPI spec
-
-namespace Stripe\Service;
-
-class AccountLinkService extends \Stripe\Service\AbstractService
-{
- /**
- * Creates an AccountLink object that includes a single-use Stripe URL that the
- * platform can redirect their user to in order to take them through the Connect
- * Onboarding flow.
- *
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\AccountLink
- */
- public function create($params = null, $opts = null)
- {
- return $this->request('post', '/v1/account_links', $params, $opts);
- }
-}
+<?php
+
+// File generated from our OpenAPI spec
+
+namespace Stripe\Service;
+
+class AccountLinkService extends \Stripe\Service\AbstractService
+{
+ /**
+ * Creates an AccountLink object that includes a single-use Stripe URL that the
+ * platform can redirect their user to in order to take them through the Connect
+ * Onboarding flow.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\AccountLink
+ */
+ public function create($params = null, $opts = null)
+ {
+ return $this->request('post', '/v1/account_links', $params, $opts);
+ }
+}
diff --git a/vendor/stripe/stripe-php/lib/Service/AccountService.php b/vendor/stripe/stripe-php/lib/Service/AccountService.php
index 50432a0..bc1f853 100644
--- a/vendor/stripe/stripe-php/lib/Service/AccountService.php
+++ b/vendor/stripe/stripe-php/lib/Service/AccountService.php
@@ -1,381 +1,382 @@
-<?php
-
-// File generated from our OpenAPI spec
-
-namespace Stripe\Service;
-
-class AccountService extends \Stripe\Service\AbstractService
-{
- /**
- * Returns a list of accounts connected to your platform via <a
- * href="/docs/connect">Connect</a>. If you’re not a platform, the list is empty.
- *
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Collection
- */
- public function all($params = null, $opts = null)
- {
- return $this->requestCollection('get', '/v1/accounts', $params, $opts);
- }
-
- /**
- * Returns a list of capabilities associated with the account. The capabilities are
- * returned sorted by creation date, with the most recent capability appearing
- * first.
- *
- * @param string $parentId
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Collection
- */
- public function allCapabilities($parentId, $params = null, $opts = null)
- {
- return $this->requestCollection('get', $this->buildPath('/v1/accounts/%s/capabilities', $parentId), $params, $opts);
- }
-
- /**
- * List external accounts for an account.
- *
- * @param string $parentId
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Collection
- */
- public function allExternalAccounts($parentId, $params = null, $opts = null)
- {
- return $this->requestCollection('get', $this->buildPath('/v1/accounts/%s/external_accounts', $parentId), $params, $opts);
- }
-
- /**
- * Returns a list of people associated with the account’s legal entity. The people
- * are returned sorted by creation date, with the most recent people appearing
- * first.
- *
- * @param string $parentId
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Collection
- */
- public function allPersons($parentId, $params = null, $opts = null)
- {
- return $this->requestCollection('get', $this->buildPath('/v1/accounts/%s/persons', $parentId), $params, $opts);
- }
-
- /**
- * With <a href="/docs/connect">Connect</a>, you can create Stripe accounts for
- * your users. To do this, you’ll first need to <a
- * href="https://dashboard.stripe.com/account/applications/settings">register your
- * platform</a>.
- *
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Account
- */
- public function create($params = null, $opts = null)
- {
- return $this->request('post', '/v1/accounts', $params, $opts);
- }
-
- /**
- * Create an external account for a given account.
- *
- * @param string $parentId
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\BankAccount|\Stripe\Card
- */
- public function createExternalAccount($parentId, $params = null, $opts = null)
- {
- return $this->request('post', $this->buildPath('/v1/accounts/%s/external_accounts', $parentId), $params, $opts);
- }
-
- /**
- * Creates a single-use login link for an Express account to access their Stripe
- * dashboard.
- *
- * <strong>You may only create login links for <a
- * href="/docs/connect/express-accounts">Express accounts</a> connected to your
- * platform</strong>.
- *
- * @param string $parentId
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\LoginLink
- */
- public function createLoginLink($parentId, $params = null, $opts = null)
- {
- return $this->request('post', $this->buildPath('/v1/accounts/%s/login_links', $parentId), $params, $opts);
- }
-
- /**
- * Creates a new person.
- *
- * @param string $parentId
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Person
- */
- public function createPerson($parentId, $params = null, $opts = null)
- {
- return $this->request('post', $this->buildPath('/v1/accounts/%s/persons', $parentId), $params, $opts);
- }
-
- /**
- * With <a href="/docs/connect">Connect</a>, you can delete accounts you manage.
- *
- * Accounts created using test-mode keys can be deleted at any time. Custom or
- * Express accounts created using live-mode keys can only be deleted once all
- * balances are zero.
- *
- * If you want to delete your own account, use the <a
- * href="https://dashboard.stripe.com/account">account information tab in your
- * account settings</a> instead.
- *
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Account
- */
- public function delete($id, $params = null, $opts = null)
- {
- return $this->request('delete', $this->buildPath('/v1/accounts/%s', $id), $params, $opts);
- }
-
- /**
- * Delete a specified external account for a given account.
- *
- * @param string $parentId
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\BankAccount|\Stripe\Card
- */
- public function deleteExternalAccount($parentId, $id, $params = null, $opts = null)
- {
- return $this->request('delete', $this->buildPath('/v1/accounts/%s/external_accounts/%s', $parentId, $id), $params, $opts);
- }
-
- /**
- * Deletes an existing person’s relationship to the account’s legal entity. Any
- * person with a relationship for an account can be deleted through the API, except
- * if the person is the <code>account_opener</code>. If your integration is using
- * the <code>executive</code> parameter, you cannot delete the only verified
- * <code>executive</code> on file.
- *
- * @param string $parentId
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Person
- */
- public function deletePerson($parentId, $id, $params = null, $opts = null)
- {
- return $this->request('delete', $this->buildPath('/v1/accounts/%s/persons/%s', $parentId, $id), $params, $opts);
- }
-
- /**
- * With <a href="/docs/connect">Connect</a>, you may flag accounts as suspicious.
- *
- * Test-mode Custom and Express accounts can be rejected at any time. Accounts
- * created using live-mode keys may only be rejected once all balances are zero.
- *
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Account
- */
- public function reject($id, $params = null, $opts = null)
- {
- return $this->request('post', $this->buildPath('/v1/accounts/%s/reject', $id), $params, $opts);
- }
-
- /**
- * Retrieves information about the specified Account Capability.
- *
- * @param string $parentId
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Capability
- */
- public function retrieveCapability($parentId, $id, $params = null, $opts = null)
- {
- return $this->request('get', $this->buildPath('/v1/accounts/%s/capabilities/%s', $parentId, $id), $params, $opts);
- }
-
- /**
- * Retrieve a specified external account for a given account.
- *
- * @param string $parentId
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\BankAccount|\Stripe\Card
- */
- public function retrieveExternalAccount($parentId, $id, $params = null, $opts = null)
- {
- return $this->request('get', $this->buildPath('/v1/accounts/%s/external_accounts/%s', $parentId, $id), $params, $opts);
- }
-
- /**
- * Retrieves an existing person.
- *
- * @param string $parentId
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Person
- */
- public function retrievePerson($parentId, $id, $params = null, $opts = null)
- {
- return $this->request('get', $this->buildPath('/v1/accounts/%s/persons/%s', $parentId, $id), $params, $opts);
- }
-
- /**
- * Updates a <a href="/docs/connect/accounts">connected account</a> by setting the
- * values of the parameters passed. Any parameters not provided are left unchanged.
- * Most parameters can be changed only for Custom accounts. (These are marked
- * <strong>Custom Only</strong> below.) Parameters marked <strong>Custom and
- * Express</strong> are not supported for Standard accounts.
- *
- * To update your own account, use the <a
- * href="https://dashboard.stripe.com/account">Dashboard</a>. Refer to our <a
- * href="/docs/connect/updating-accounts">Connect</a> documentation to learn more
- * about updating accounts.
- *
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Account
- */
- public function update($id, $params = null, $opts = null)
- {
- return $this->request('post', $this->buildPath('/v1/accounts/%s', $id), $params, $opts);
- }
-
- /**
- * Updates an existing Account Capability.
- *
- * @param string $parentId
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Capability
- */
- public function updateCapability($parentId, $id, $params = null, $opts = null)
- {
- return $this->request('post', $this->buildPath('/v1/accounts/%s/capabilities/%s', $parentId, $id), $params, $opts);
- }
-
- /**
- * Updates the metadata, account holder name, and account holder type of a bank
- * account belonging to a <a href="/docs/connect/custom-accounts">Custom
- * account</a>, and optionally sets it as the default for its currency. Other bank
- * account details are not editable by design.
- *
- * You can re-enable a disabled bank account by performing an update call without
- * providing any arguments or changes.
- *
- * @param string $parentId
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\BankAccount|\Stripe\Card
- */
- public function updateExternalAccount($parentId, $id, $params = null, $opts = null)
- {
- return $this->request('post', $this->buildPath('/v1/accounts/%s/external_accounts/%s', $parentId, $id), $params, $opts);
- }
-
- /**
- * Updates an existing person.
- *
- * @param string $parentId
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Person
- */
- public function updatePerson($parentId, $id, $params = null, $opts = null)
- {
- return $this->request('post', $this->buildPath('/v1/accounts/%s/persons/%s', $parentId, $id), $params, $opts);
- }
-
- /**
- * Retrieves the details of an account.
- *
- * @param null|string $id
- * @param null|array $params
- * @param null|array|StripeUtilRequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Account
- */
- public function retrieve($id = null, $params = null, $opts = null)
- {
- if (null === $id) {
- return $this->request('get', '/v1/account', $params, $opts);
- }
-
- return $this->request('get', $this->buildPath('/v1/accounts/%s', $id), $params, $opts);
- }
-}
+<?php
+
+// File generated from our OpenAPI spec
+
+namespace Stripe\Service;
+
+class AccountService extends \Stripe\Service\AbstractService
+{
+ /**
+ * Returns a list of accounts connected to your platform via <a
+ * href="/docs/connect">Connect</a>. If you’re not a platform, the list is empty.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\Account>
+ */
+ public function all($params = null, $opts = null)
+ {
+ return $this->requestCollection('get', '/v1/accounts', $params, $opts);
+ }
+
+ /**
+ * Returns a list of capabilities associated with the account. The capabilities are
+ * returned sorted by creation date, with the most recent capability appearing
+ * first.
+ *
+ * @param string $parentId
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\Capability>
+ */
+ public function allCapabilities($parentId, $params = null, $opts = null)
+ {
+ return $this->requestCollection('get', $this->buildPath('/v1/accounts/%s/capabilities', $parentId), $params, $opts);
+ }
+
+ /**
+ * List external accounts for an account.
+ *
+ * @param string $parentId
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\BankAccount|\Stripe\Card>
+ */
+ public function allExternalAccounts($parentId, $params = null, $opts = null)
+ {
+ return $this->requestCollection('get', $this->buildPath('/v1/accounts/%s/external_accounts', $parentId), $params, $opts);
+ }
+
+ /**
+ * Returns a list of people associated with the account’s legal entity. The people
+ * are returned sorted by creation date, with the most recent people appearing
+ * first.
+ *
+ * @param string $parentId
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\Person>
+ */
+ public function allPersons($parentId, $params = null, $opts = null)
+ {
+ return $this->requestCollection('get', $this->buildPath('/v1/accounts/%s/persons', $parentId), $params, $opts);
+ }
+
+ /**
+ * With <a href="/docs/connect">Connect</a>, you can create Stripe accounts for
+ * your users. To do this, you’ll first need to <a
+ * href="https://dashboard.stripe.com/account/applications/settings">register your
+ * platform</a>.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Account
+ */
+ public function create($params = null, $opts = null)
+ {
+ return $this->request('post', '/v1/accounts', $params, $opts);
+ }
+
+ /**
+ * Create an external account for a given account.
+ *
+ * @param string $parentId
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\BankAccount|\Stripe\Card
+ */
+ public function createExternalAccount($parentId, $params = null, $opts = null)
+ {
+ return $this->request('post', $this->buildPath('/v1/accounts/%s/external_accounts', $parentId), $params, $opts);
+ }
+
+ /**
+ * Creates a single-use login link for an Express account to access their Stripe
+ * dashboard.
+ *
+ * <strong>You may only create login links for <a
+ * href="/docs/connect/express-accounts">Express accounts</a> connected to your
+ * platform</strong>.
+ *
+ * @param string $parentId
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\LoginLink
+ */
+ public function createLoginLink($parentId, $params = null, $opts = null)
+ {
+ return $this->request('post', $this->buildPath('/v1/accounts/%s/login_links', $parentId), $params, $opts);
+ }
+
+ /**
+ * Creates a new person.
+ *
+ * @param string $parentId
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Person
+ */
+ public function createPerson($parentId, $params = null, $opts = null)
+ {
+ return $this->request('post', $this->buildPath('/v1/accounts/%s/persons', $parentId), $params, $opts);
+ }
+
+ /**
+ * With <a href="/docs/connect">Connect</a>, you can delete accounts you manage.
+ *
+ * Accounts created using test-mode keys can be deleted at any time. Standard
+ * accounts created using live-mode keys cannot be deleted. Custom or Express
+ * accounts created using live-mode keys can only be deleted once all balances are
+ * zero.
+ *
+ * If you want to delete your own account, use the <a
+ * href="https://dashboard.stripe.com/account">account information tab in your
+ * account settings</a> instead.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Account
+ */
+ public function delete($id, $params = null, $opts = null)
+ {
+ return $this->request('delete', $this->buildPath('/v1/accounts/%s', $id), $params, $opts);
+ }
+
+ /**
+ * Delete a specified external account for a given account.
+ *
+ * @param string $parentId
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\BankAccount|\Stripe\Card
+ */
+ public function deleteExternalAccount($parentId, $id, $params = null, $opts = null)
+ {
+ return $this->request('delete', $this->buildPath('/v1/accounts/%s/external_accounts/%s', $parentId, $id), $params, $opts);
+ }
+
+ /**
+ * Deletes an existing person’s relationship to the account’s legal entity. Any
+ * person with a relationship for an account can be deleted through the API, except
+ * if the person is the <code>account_opener</code>. If your integration is using
+ * the <code>executive</code> parameter, you cannot delete the only verified
+ * <code>executive</code> on file.
+ *
+ * @param string $parentId
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Person
+ */
+ public function deletePerson($parentId, $id, $params = null, $opts = null)
+ {
+ return $this->request('delete', $this->buildPath('/v1/accounts/%s/persons/%s', $parentId, $id), $params, $opts);
+ }
+
+ /**
+ * With <a href="/docs/connect">Connect</a>, you may flag accounts as suspicious.
+ *
+ * Test-mode Custom and Express accounts can be rejected at any time. Accounts
+ * created using live-mode keys may only be rejected once all balances are zero.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Account
+ */
+ public function reject($id, $params = null, $opts = null)
+ {
+ return $this->request('post', $this->buildPath('/v1/accounts/%s/reject', $id), $params, $opts);
+ }
+
+ /**
+ * Retrieves information about the specified Account Capability.
+ *
+ * @param string $parentId
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Capability
+ */
+ public function retrieveCapability($parentId, $id, $params = null, $opts = null)
+ {
+ return $this->request('get', $this->buildPath('/v1/accounts/%s/capabilities/%s', $parentId, $id), $params, $opts);
+ }
+
+ /**
+ * Retrieve a specified external account for a given account.
+ *
+ * @param string $parentId
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\BankAccount|\Stripe\Card
+ */
+ public function retrieveExternalAccount($parentId, $id, $params = null, $opts = null)
+ {
+ return $this->request('get', $this->buildPath('/v1/accounts/%s/external_accounts/%s', $parentId, $id), $params, $opts);
+ }
+
+ /**
+ * Retrieves an existing person.
+ *
+ * @param string $parentId
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Person
+ */
+ public function retrievePerson($parentId, $id, $params = null, $opts = null)
+ {
+ return $this->request('get', $this->buildPath('/v1/accounts/%s/persons/%s', $parentId, $id), $params, $opts);
+ }
+
+ /**
+ * Updates a <a href="/docs/connect/accounts">connected account</a> by setting the
+ * values of the parameters passed. Any parameters not provided are left unchanged.
+ * Most parameters can be changed only for Custom accounts. (These are marked
+ * <strong>Custom Only</strong> below.) Parameters marked <strong>Custom and
+ * Express</strong> are not supported for Standard accounts.
+ *
+ * To update your own account, use the <a
+ * href="https://dashboard.stripe.com/account">Dashboard</a>. Refer to our <a
+ * href="/docs/connect/updating-accounts">Connect</a> documentation to learn more
+ * about updating accounts.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Account
+ */
+ public function update($id, $params = null, $opts = null)
+ {
+ return $this->request('post', $this->buildPath('/v1/accounts/%s', $id), $params, $opts);
+ }
+
+ /**
+ * Updates an existing Account Capability.
+ *
+ * @param string $parentId
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Capability
+ */
+ public function updateCapability($parentId, $id, $params = null, $opts = null)
+ {
+ return $this->request('post', $this->buildPath('/v1/accounts/%s/capabilities/%s', $parentId, $id), $params, $opts);
+ }
+
+ /**
+ * Updates the metadata, account holder name, account holder type of a bank account
+ * belonging to a <a href="/docs/connect/custom-accounts">Custom account</a>, and
+ * optionally sets it as the default for its currency. Other bank account details
+ * are not editable by design.
+ *
+ * You can re-enable a disabled bank account by performing an update call without
+ * providing any arguments or changes.
+ *
+ * @param string $parentId
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\BankAccount|\Stripe\Card
+ */
+ public function updateExternalAccount($parentId, $id, $params = null, $opts = null)
+ {
+ return $this->request('post', $this->buildPath('/v1/accounts/%s/external_accounts/%s', $parentId, $id), $params, $opts);
+ }
+
+ /**
+ * Updates an existing person.
+ *
+ * @param string $parentId
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Person
+ */
+ public function updatePerson($parentId, $id, $params = null, $opts = null)
+ {
+ return $this->request('post', $this->buildPath('/v1/accounts/%s/persons/%s', $parentId, $id), $params, $opts);
+ }
+
+ /**
+ * Retrieves the details of an account.
+ *
+ * @param null|string $id
+ * @param null|array $params
+ * @param null|array|StripeUtilRequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Account
+ */
+ public function retrieve($id = null, $params = null, $opts = null)
+ {
+ if (null === $id) {
+ return $this->request('get', '/v1/account', $params, $opts);
+ }
+
+ return $this->request('get', $this->buildPath('/v1/accounts/%s', $id), $params, $opts);
+ }
+}
diff --git a/vendor/stripe/stripe-php/lib/Service/ApplePayDomainService.php b/vendor/stripe/stripe-php/lib/Service/ApplePayDomainService.php
index 6577b6b..686d5f0 100644
--- a/vendor/stripe/stripe-php/lib/Service/ApplePayDomainService.php
+++ b/vendor/stripe/stripe-php/lib/Service/ApplePayDomainService.php
@@ -1,70 +1,70 @@
-<?php
-
-// File generated from our OpenAPI spec
-
-namespace Stripe\Service;
-
-class ApplePayDomainService extends \Stripe\Service\AbstractService
-{
- /**
- * List apple pay domains.
- *
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Collection
- */
- public function all($params = null, $opts = null)
- {
- return $this->requestCollection('get', '/v1/apple_pay/domains', $params, $opts);
- }
-
- /**
- * Create an apple pay domain.
- *
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\ApplePayDomain
- */
- public function create($params = null, $opts = null)
- {
- return $this->request('post', '/v1/apple_pay/domains', $params, $opts);
- }
-
- /**
- * Delete an apple pay domain.
- *
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\ApplePayDomain
- */
- public function delete($id, $params = null, $opts = null)
- {
- return $this->request('delete', $this->buildPath('/v1/apple_pay/domains/%s', $id), $params, $opts);
- }
-
- /**
- * Retrieve an apple pay domain.
- *
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\ApplePayDomain
- */
- public function retrieve($id, $params = null, $opts = null)
- {
- return $this->request('get', $this->buildPath('/v1/apple_pay/domains/%s', $id), $params, $opts);
- }
-}
+<?php
+
+// File generated from our OpenAPI spec
+
+namespace Stripe\Service;
+
+class ApplePayDomainService extends \Stripe\Service\AbstractService
+{
+ /**
+ * List apple pay domains.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\ApplePayDomain>
+ */
+ public function all($params = null, $opts = null)
+ {
+ return $this->requestCollection('get', '/v1/apple_pay/domains', $params, $opts);
+ }
+
+ /**
+ * Create an apple pay domain.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\ApplePayDomain
+ */
+ public function create($params = null, $opts = null)
+ {
+ return $this->request('post', '/v1/apple_pay/domains', $params, $opts);
+ }
+
+ /**
+ * Delete an apple pay domain.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\ApplePayDomain
+ */
+ public function delete($id, $params = null, $opts = null)
+ {
+ return $this->request('delete', $this->buildPath('/v1/apple_pay/domains/%s', $id), $params, $opts);
+ }
+
+ /**
+ * Retrieve an apple pay domain.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\ApplePayDomain
+ */
+ public function retrieve($id, $params = null, $opts = null)
+ {
+ return $this->request('get', $this->buildPath('/v1/apple_pay/domains/%s', $id), $params, $opts);
+ }
+}
diff --git a/vendor/stripe/stripe-php/lib/Service/ApplicationFeeService.php b/vendor/stripe/stripe-php/lib/Service/ApplicationFeeService.php
index c05c3cd..35f0b3e 100644
--- a/vendor/stripe/stripe-php/lib/Service/ApplicationFeeService.php
+++ b/vendor/stripe/stripe-php/lib/Service/ApplicationFeeService.php
@@ -1,125 +1,125 @@
-<?php
-
-// File generated from our OpenAPI spec
-
-namespace Stripe\Service;
-
-class ApplicationFeeService extends \Stripe\Service\AbstractService
-{
- /**
- * Returns a list of application fees you’ve previously collected. The application
- * fees are returned in sorted order, with the most recent fees appearing first.
- *
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Collection
- */
- public function all($params = null, $opts = null)
- {
- return $this->requestCollection('get', '/v1/application_fees', $params, $opts);
- }
-
- /**
- * You can see a list of the refunds belonging to a specific application fee. Note
- * that the 10 most recent refunds are always available by default on the
- * application fee object. If you need more than those 10, you can use this API
- * method and the <code>limit</code> and <code>starting_after</code> parameters to
- * page through additional refunds.
- *
- * @param string $parentId
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Collection
- */
- public function allRefunds($parentId, $params = null, $opts = null)
- {
- return $this->requestCollection('get', $this->buildPath('/v1/application_fees/%s/refunds', $parentId), $params, $opts);
- }
-
- /**
- * Refunds an application fee that has previously been collected but not yet
- * refunded. Funds will be refunded to the Stripe account from which the fee was
- * originally collected.
- *
- * You can optionally refund only part of an application fee. You can do so
- * multiple times, until the entire fee has been refunded.
- *
- * Once entirely refunded, an application fee can’t be refunded again. This method
- * will raise an error when called on an already-refunded application fee, or when
- * trying to refund more money than is left on an application fee.
- *
- * @param string $parentId
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\ApplicationFeeRefund
- */
- public function createRefund($parentId, $params = null, $opts = null)
- {
- return $this->request('post', $this->buildPath('/v1/application_fees/%s/refunds', $parentId), $params, $opts);
- }
-
- /**
- * Retrieves the details of an application fee that your account has collected. The
- * same information is returned when refunding the application fee.
- *
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\ApplicationFee
- */
- public function retrieve($id, $params = null, $opts = null)
- {
- return $this->request('get', $this->buildPath('/v1/application_fees/%s', $id), $params, $opts);
- }
-
- /**
- * By default, you can see the 10 most recent refunds stored directly on the
- * application fee object, but you can also retrieve details about a specific
- * refund stored on the application fee.
- *
- * @param string $parentId
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\ApplicationFeeRefund
- */
- public function retrieveRefund($parentId, $id, $params = null, $opts = null)
- {
- return $this->request('get', $this->buildPath('/v1/application_fees/%s/refunds/%s', $parentId, $id), $params, $opts);
- }
-
- /**
- * Updates the specified application fee refund by setting the values of the
- * parameters passed. Any parameters not provided will be left unchanged.
- *
- * This request only accepts metadata as an argument.
- *
- * @param string $parentId
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\ApplicationFeeRefund
- */
- public function updateRefund($parentId, $id, $params = null, $opts = null)
- {
- return $this->request('post', $this->buildPath('/v1/application_fees/%s/refunds/%s', $parentId, $id), $params, $opts);
- }
-}
+<?php
+
+// File generated from our OpenAPI spec
+
+namespace Stripe\Service;
+
+class ApplicationFeeService extends \Stripe\Service\AbstractService
+{
+ /**
+ * Returns a list of application fees you’ve previously collected. The application
+ * fees are returned in sorted order, with the most recent fees appearing first.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\ApplicationFee>
+ */
+ public function all($params = null, $opts = null)
+ {
+ return $this->requestCollection('get', '/v1/application_fees', $params, $opts);
+ }
+
+ /**
+ * You can see a list of the refunds belonging to a specific application fee. Note
+ * that the 10 most recent refunds are always available by default on the
+ * application fee object. If you need more than those 10, you can use this API
+ * method and the <code>limit</code> and <code>starting_after</code> parameters to
+ * page through additional refunds.
+ *
+ * @param string $parentId
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\ApplicationFeeRefund>
+ */
+ public function allRefunds($parentId, $params = null, $opts = null)
+ {
+ return $this->requestCollection('get', $this->buildPath('/v1/application_fees/%s/refunds', $parentId), $params, $opts);
+ }
+
+ /**
+ * Refunds an application fee that has previously been collected but not yet
+ * refunded. Funds will be refunded to the Stripe account from which the fee was
+ * originally collected.
+ *
+ * You can optionally refund only part of an application fee. You can do so
+ * multiple times, until the entire fee has been refunded.
+ *
+ * Once entirely refunded, an application fee can’t be refunded again. This method
+ * will raise an error when called on an already-refunded application fee, or when
+ * trying to refund more money than is left on an application fee.
+ *
+ * @param string $parentId
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\ApplicationFeeRefund
+ */
+ public function createRefund($parentId, $params = null, $opts = null)
+ {
+ return $this->request('post', $this->buildPath('/v1/application_fees/%s/refunds', $parentId), $params, $opts);
+ }
+
+ /**
+ * Retrieves the details of an application fee that your account has collected. The
+ * same information is returned when refunding the application fee.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\ApplicationFee
+ */
+ public function retrieve($id, $params = null, $opts = null)
+ {
+ return $this->request('get', $this->buildPath('/v1/application_fees/%s', $id), $params, $opts);
+ }
+
+ /**
+ * By default, you can see the 10 most recent refunds stored directly on the
+ * application fee object, but you can also retrieve details about a specific
+ * refund stored on the application fee.
+ *
+ * @param string $parentId
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\ApplicationFeeRefund
+ */
+ public function retrieveRefund($parentId, $id, $params = null, $opts = null)
+ {
+ return $this->request('get', $this->buildPath('/v1/application_fees/%s/refunds/%s', $parentId, $id), $params, $opts);
+ }
+
+ /**
+ * Updates the specified application fee refund by setting the values of the
+ * parameters passed. Any parameters not provided will be left unchanged.
+ *
+ * This request only accepts metadata as an argument.
+ *
+ * @param string $parentId
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\ApplicationFeeRefund
+ */
+ public function updateRefund($parentId, $id, $params = null, $opts = null)
+ {
+ return $this->request('post', $this->buildPath('/v1/application_fees/%s/refunds/%s', $parentId, $id), $params, $opts);
+ }
+}
diff --git a/vendor/stripe/stripe-php/lib/Service/BalanceService.php b/vendor/stripe/stripe-php/lib/Service/BalanceService.php
index 0f55385..b76c455 100644
--- a/vendor/stripe/stripe-php/lib/Service/BalanceService.php
+++ b/vendor/stripe/stripe-php/lib/Service/BalanceService.php
@@ -1,26 +1,26 @@
-<?php
-
-// File generated from our OpenAPI spec
-
-namespace Stripe\Service;
-
-class BalanceService extends \Stripe\Service\AbstractService
-{
- /**
- * Retrieves the current account balance, based on the authentication that was used
- * to make the request. For a sample request, see <a
- * href="/docs/connect/account-balances#accounting-for-negative-balances">Accounting
- * for negative balances</a>.
- *
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Balance
- */
- public function retrieve($params = null, $opts = null)
- {
- return $this->request('get', '/v1/balance', $params, $opts);
- }
-}
+<?php
+
+// File generated from our OpenAPI spec
+
+namespace Stripe\Service;
+
+class BalanceService extends \Stripe\Service\AbstractService
+{
+ /**
+ * Retrieves the current account balance, based on the authentication that was used
+ * to make the request. For a sample request, see <a
+ * href="/docs/connect/account-balances#accounting-for-negative-balances">Accounting
+ * for negative balances</a>.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Balance
+ */
+ public function retrieve($params = null, $opts = null)
+ {
+ return $this->request('get', '/v1/balance', $params, $opts);
+ }
+}
diff --git a/vendor/stripe/stripe-php/lib/Service/BalanceTransactionService.php b/vendor/stripe/stripe-php/lib/Service/BalanceTransactionService.php
index fb1da50..90fd9fa 100644
--- a/vendor/stripe/stripe-php/lib/Service/BalanceTransactionService.php
+++ b/vendor/stripe/stripe-php/lib/Service/BalanceTransactionService.php
@@ -1,47 +1,47 @@
-<?php
-
-// File generated from our OpenAPI spec
-
-namespace Stripe\Service;
-
-class BalanceTransactionService extends \Stripe\Service\AbstractService
-{
- /**
- * Returns a list of transactions that have contributed to the Stripe account
- * balance (e.g., charges, transfers, and so forth). The transactions are returned
- * in sorted order, with the most recent transactions appearing first.
- *
- * Note that this endpoint was previously called “Balance history” and used the
- * path <code>/v1/balance/history</code>.
- *
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Collection
- */
- public function all($params = null, $opts = null)
- {
- return $this->requestCollection('get', '/v1/balance_transactions', $params, $opts);
- }
-
- /**
- * Retrieves the balance transaction with the given ID.
- *
- * Note that this endpoint previously used the path
- * <code>/v1/balance/history/:id</code>.
- *
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\BalanceTransaction
- */
- public function retrieve($id, $params = null, $opts = null)
- {
- return $this->request('get', $this->buildPath('/v1/balance_transactions/%s', $id), $params, $opts);
- }
-}
+<?php
+
+// File generated from our OpenAPI spec
+
+namespace Stripe\Service;
+
+class BalanceTransactionService extends \Stripe\Service\AbstractService
+{
+ /**
+ * Returns a list of transactions that have contributed to the Stripe account
+ * balance (e.g., charges, transfers, and so forth). The transactions are returned
+ * in sorted order, with the most recent transactions appearing first.
+ *
+ * Note that this endpoint was previously called “Balance history” and used the
+ * path <code>/v1/balance/history</code>.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\BalanceTransaction>
+ */
+ public function all($params = null, $opts = null)
+ {
+ return $this->requestCollection('get', '/v1/balance_transactions', $params, $opts);
+ }
+
+ /**
+ * Retrieves the balance transaction with the given ID.
+ *
+ * Note that this endpoint previously used the path
+ * <code>/v1/balance/history/:id</code>.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\BalanceTransaction
+ */
+ public function retrieve($id, $params = null, $opts = null)
+ {
+ return $this->request('get', $this->buildPath('/v1/balance_transactions/%s', $id), $params, $opts);
+ }
+}
diff --git a/vendor/stripe/stripe-php/lib/Service/BillingPortal/BillingPortalServiceFactory.php b/vendor/stripe/stripe-php/lib/Service/BillingPortal/BillingPortalServiceFactory.php
index 23a4d30..9d1df0f 100644
--- a/vendor/stripe/stripe-php/lib/Service/BillingPortal/BillingPortalServiceFactory.php
+++ b/vendor/stripe/stripe-php/lib/Service/BillingPortal/BillingPortalServiceFactory.php
@@ -1,27 +1,27 @@
-<?php
-
-// File generated from our OpenAPI spec
-
-namespace Stripe\Service\BillingPortal;
-
-/**
- * Service factory class for API resources in the BillingPortal namespace.
- *
- * @property ConfigurationService $configurations
- * @property SessionService $sessions
- */
-class BillingPortalServiceFactory extends \Stripe\Service\AbstractServiceFactory
-{
- /**
- * @var array<string, string>
- */
- private static $classMap = [
- 'configurations' => ConfigurationService::class,
- 'sessions' => SessionService::class,
- ];
-
- protected function getServiceClass($name)
- {
- return \array_key_exists($name, self::$classMap) ? self::$classMap[$name] : null;
- }
-}
+<?php
+
+// File generated from our OpenAPI spec
+
+namespace Stripe\Service\BillingPortal;
+
+/**
+ * Service factory class for API resources in the BillingPortal namespace.
+ *
+ * @property ConfigurationService $configurations
+ * @property SessionService $sessions
+ */
+class BillingPortalServiceFactory extends \Stripe\Service\AbstractServiceFactory
+{
+ /**
+ * @var array<string, string>
+ */
+ private static $classMap = [
+ 'configurations' => ConfigurationService::class,
+ 'sessions' => SessionService::class,
+ ];
+
+ protected function getServiceClass($name)
+ {
+ return \array_key_exists($name, self::$classMap) ? self::$classMap[$name] : null;
+ }
+}
diff --git a/vendor/stripe/stripe-php/lib/Service/BillingPortal/ConfigurationService.php b/vendor/stripe/stripe-php/lib/Service/BillingPortal/ConfigurationService.php
index 5a0d70d..8357eed 100644
--- a/vendor/stripe/stripe-php/lib/Service/BillingPortal/ConfigurationService.php
+++ b/vendor/stripe/stripe-php/lib/Service/BillingPortal/ConfigurationService.php
@@ -1,73 +1,73 @@
-<?php
-
-// File generated from our OpenAPI spec
-
-namespace Stripe\Service\BillingPortal;
-
-class ConfigurationService extends \Stripe\Service\AbstractService
-{
- /**
- * Returns a list of configurations that describe the functionality of the customer
- * portal.
- *
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Collection
- */
- public function all($params = null, $opts = null)
- {
- return $this->requestCollection('get', '/v1/billing_portal/configurations', $params, $opts);
- }
-
- /**
- * Creates a configuration that describes the functionality and behavior of a
- * PortalSession.
- *
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\BillingPortal\Configuration
- */
- public function create($params = null, $opts = null)
- {
- return $this->request('post', '/v1/billing_portal/configurations', $params, $opts);
- }
-
- /**
- * Retrieves a configuration that describes the functionality of the customer
- * portal.
- *
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\BillingPortal\Configuration
- */
- public function retrieve($id, $params = null, $opts = null)
- {
- return $this->request('get', $this->buildPath('/v1/billing_portal/configurations/%s', $id), $params, $opts);
- }
-
- /**
- * Updates a configuration that describes the functionality of the customer portal.
- *
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\BillingPortal\Configuration
- */
- public function update($id, $params = null, $opts = null)
- {
- return $this->request('post', $this->buildPath('/v1/billing_portal/configurations/%s', $id), $params, $opts);
- }
-}
+<?php
+
+// File generated from our OpenAPI spec
+
+namespace Stripe\Service\BillingPortal;
+
+class ConfigurationService extends \Stripe\Service\AbstractService
+{
+ /**
+ * Returns a list of configurations that describe the functionality of the customer
+ * portal.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\BillingPortal\Configuration>
+ */
+ public function all($params = null, $opts = null)
+ {
+ return $this->requestCollection('get', '/v1/billing_portal/configurations', $params, $opts);
+ }
+
+ /**
+ * Creates a configuration that describes the functionality and behavior of a
+ * PortalSession.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\BillingPortal\Configuration
+ */
+ public function create($params = null, $opts = null)
+ {
+ return $this->request('post', '/v1/billing_portal/configurations', $params, $opts);
+ }
+
+ /**
+ * Retrieves a configuration that describes the functionality of the customer
+ * portal.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\BillingPortal\Configuration
+ */
+ public function retrieve($id, $params = null, $opts = null)
+ {
+ return $this->request('get', $this->buildPath('/v1/billing_portal/configurations/%s', $id), $params, $opts);
+ }
+
+ /**
+ * Updates a configuration that describes the functionality of the customer portal.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\BillingPortal\Configuration
+ */
+ public function update($id, $params = null, $opts = null)
+ {
+ return $this->request('post', $this->buildPath('/v1/billing_portal/configurations/%s', $id), $params, $opts);
+ }
+}
diff --git a/vendor/stripe/stripe-php/lib/Service/BillingPortal/SessionService.php b/vendor/stripe/stripe-php/lib/Service/BillingPortal/SessionService.php
index 6b3e602..e508c2a 100644
--- a/vendor/stripe/stripe-php/lib/Service/BillingPortal/SessionService.php
+++ b/vendor/stripe/stripe-php/lib/Service/BillingPortal/SessionService.php
@@ -1,23 +1,23 @@
-<?php
-
-// File generated from our OpenAPI spec
-
-namespace Stripe\Service\BillingPortal;
-
-class SessionService extends \Stripe\Service\AbstractService
-{
- /**
- * Creates a session of the customer portal.
- *
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\BillingPortal\Session
- */
- public function create($params = null, $opts = null)
- {
- return $this->request('post', '/v1/billing_portal/sessions', $params, $opts);
- }
-}
+<?php
+
+// File generated from our OpenAPI spec
+
+namespace Stripe\Service\BillingPortal;
+
+class SessionService extends \Stripe\Service\AbstractService
+{
+ /**
+ * Creates a session of the customer portal.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\BillingPortal\Session
+ */
+ public function create($params = null, $opts = null)
+ {
+ return $this->request('post', '/v1/billing_portal/sessions', $params, $opts);
+ }
+}
diff --git a/vendor/stripe/stripe-php/lib/Service/ChargeService.php b/vendor/stripe/stripe-php/lib/Service/ChargeService.php
index f5321b8..e24c0f5 100644
--- a/vendor/stripe/stripe-php/lib/Service/ChargeService.php
+++ b/vendor/stripe/stripe-php/lib/Service/ChargeService.php
@@ -1,101 +1,122 @@
-<?php
-
-// File generated from our OpenAPI spec
-
-namespace Stripe\Service;
-
-class ChargeService extends \Stripe\Service\AbstractService
-{
- /**
- * Returns a list of charges you’ve previously created. The charges are returned in
- * sorted order, with the most recent charges appearing first.
- *
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Collection
- */
- public function all($params = null, $opts = null)
- {
- return $this->requestCollection('get', '/v1/charges', $params, $opts);
- }
-
- /**
- * Capture the payment of an existing, uncaptured, charge. This is the second half
- * of the two-step payment flow, where first you <a href="#create_charge">created a
- * charge</a> with the capture option set to false.
- *
- * Uncaptured payments expire exactly seven days after they are created. If they
- * are not captured by that point in time, they will be marked as refunded and will
- * no longer be capturable.
- *
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Charge
- */
- public function capture($id, $params = null, $opts = null)
- {
- return $this->request('post', $this->buildPath('/v1/charges/%s/capture', $id), $params, $opts);
- }
-
- /**
- * To charge a credit card or other payment source, you create a
- * <code>Charge</code> object. If your API key is in test mode, the supplied
- * payment source (e.g., card) won’t actually be charged, although everything else
- * will occur as if in live mode. (Stripe assumes that the charge would have
- * completed successfully).
- *
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Charge
- */
- public function create($params = null, $opts = null)
- {
- return $this->request('post', '/v1/charges', $params, $opts);
- }
-
- /**
- * Retrieves the details of a charge that has previously been created. Supply the
- * unique charge ID that was returned from your previous request, and Stripe will
- * return the corresponding charge information. The same information is returned
- * when creating or refunding the charge.
- *
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Charge
- */
- public function retrieve($id, $params = null, $opts = null)
- {
- return $this->request('get', $this->buildPath('/v1/charges/%s', $id), $params, $opts);
- }
-
- /**
- * Updates the specified charge by setting the values of the parameters passed. Any
- * parameters not provided will be left unchanged.
- *
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Charge
- */
- public function update($id, $params = null, $opts = null)
- {
- return $this->request('post', $this->buildPath('/v1/charges/%s', $id), $params, $opts);
- }
-}
+<?php
+
+// File generated from our OpenAPI spec
+
+namespace Stripe\Service;
+
+class ChargeService extends \Stripe\Service\AbstractService
+{
+ /**
+ * Returns a list of charges you’ve previously created. The charges are returned in
+ * sorted order, with the most recent charges appearing first.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\Charge>
+ */
+ public function all($params = null, $opts = null)
+ {
+ return $this->requestCollection('get', '/v1/charges', $params, $opts);
+ }
+
+ /**
+ * Capture the payment of an existing, uncaptured, charge. This is the second half
+ * of the two-step payment flow, where first you <a href="#create_charge">created a
+ * charge</a> with the capture option set to false.
+ *
+ * Uncaptured payments expire a set number of days after they are created (<a
+ * href="/docs/charges/placing-a-hold">7 by default</a>). If they are not captured
+ * by that point in time, they will be marked as refunded and will no longer be
+ * capturable.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Charge
+ */
+ public function capture($id, $params = null, $opts = null)
+ {
+ return $this->request('post', $this->buildPath('/v1/charges/%s/capture', $id), $params, $opts);
+ }
+
+ /**
+ * To charge a credit card or other payment source, you create a
+ * <code>Charge</code> object. If your API key is in test mode, the supplied
+ * payment source (e.g., card) won’t actually be charged, although everything else
+ * will occur as if in live mode. (Stripe assumes that the charge would have
+ * completed successfully).
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Charge
+ */
+ public function create($params = null, $opts = null)
+ {
+ return $this->request('post', '/v1/charges', $params, $opts);
+ }
+
+ /**
+ * Retrieves the details of a charge that has previously been created. Supply the
+ * unique charge ID that was returned from your previous request, and Stripe will
+ * return the corresponding charge information. The same information is returned
+ * when creating or refunding the charge.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Charge
+ */
+ public function retrieve($id, $params = null, $opts = null)
+ {
+ return $this->request('get', $this->buildPath('/v1/charges/%s', $id), $params, $opts);
+ }
+
+ /**
+ * Search for charges you’ve previously created using Stripe’s <a
+ * href="/docs/search#search-query-language">Search Query Language</a>. Don’t use
+ * search in read-after-write flows where strict consistency is necessary. Under
+ * normal operating conditions, data is searchable in less than a minute.
+ * Occasionally, propagation of new or updated data can be up to an hour behind
+ * during outages. Search functionality is not available to merchants in India.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\SearchResult<\Stripe\Charge>
+ */
+ public function search($params = null, $opts = null)
+ {
+ return $this->requestSearchResult('get', '/v1/charges/search', $params, $opts);
+ }
+
+ /**
+ * Updates the specified charge by setting the values of the parameters passed. Any
+ * parameters not provided will be left unchanged.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Charge
+ */
+ public function update($id, $params = null, $opts = null)
+ {
+ return $this->request('post', $this->buildPath('/v1/charges/%s', $id), $params, $opts);
+ }
+}
diff --git a/vendor/stripe/stripe-php/lib/Service/Checkout/CheckoutServiceFactory.php b/vendor/stripe/stripe-php/lib/Service/Checkout/CheckoutServiceFactory.php
index bb26a83..26a5ee8 100644
--- a/vendor/stripe/stripe-php/lib/Service/Checkout/CheckoutServiceFactory.php
+++ b/vendor/stripe/stripe-php/lib/Service/Checkout/CheckoutServiceFactory.php
@@ -1,25 +1,25 @@
-<?php
-
-// File generated from our OpenAPI spec
-
-namespace Stripe\Service\Checkout;
-
-/**
- * Service factory class for API resources in the Checkout namespace.
- *
- * @property SessionService $sessions
- */
-class CheckoutServiceFactory extends \Stripe\Service\AbstractServiceFactory
-{
- /**
- * @var array<string, string>
- */
- private static $classMap = [
- 'sessions' => SessionService::class,
- ];
-
- protected function getServiceClass($name)
- {
- return \array_key_exists($name, self::$classMap) ? self::$classMap[$name] : null;
- }
-}
+<?php
+
+// File generated from our OpenAPI spec
+
+namespace Stripe\Service\Checkout;
+
+/**
+ * Service factory class for API resources in the Checkout namespace.
+ *
+ * @property SessionService $sessions
+ */
+class CheckoutServiceFactory extends \Stripe\Service\AbstractServiceFactory
+{
+ /**
+ * @var array<string, string>
+ */
+ private static $classMap = [
+ 'sessions' => SessionService::class,
+ ];
+
+ protected function getServiceClass($name)
+ {
+ return \array_key_exists($name, self::$classMap) ? self::$classMap[$name] : null;
+ }
+}
diff --git a/vendor/stripe/stripe-php/lib/Service/Checkout/SessionService.php b/vendor/stripe/stripe-php/lib/Service/Checkout/SessionService.php
index 9da3788..13c9fbf 100644
--- a/vendor/stripe/stripe-php/lib/Service/Checkout/SessionService.php
+++ b/vendor/stripe/stripe-php/lib/Service/Checkout/SessionService.php
@@ -1,73 +1,92 @@
-<?php
-
-// File generated from our OpenAPI spec
-
-namespace Stripe\Service\Checkout;
-
-class SessionService extends \Stripe\Service\AbstractService
-{
- /**
- * Returns a list of Checkout Sessions.
- *
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Collection
- */
- public function all($params = null, $opts = null)
- {
- return $this->requestCollection('get', '/v1/checkout/sessions', $params, $opts);
- }
-
- /**
- * When retrieving a Checkout Session, there is an includable
- * <strong>line_items</strong> property containing the first handful of those
- * items. There is also a URL where you can retrieve the full (paginated) list of
- * line items.
- *
- * @param string $parentId
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Collection
- */
- public function allLineItems($parentId, $params = null, $opts = null)
- {
- return $this->requestCollection('get', $this->buildPath('/v1/checkout/sessions/%s/line_items', $parentId), $params, $opts);
- }
-
- /**
- * Creates a Session object.
- *
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Checkout\Session
- */
- public function create($params = null, $opts = null)
- {
- return $this->request('post', '/v1/checkout/sessions', $params, $opts);
- }
-
- /**
- * Retrieves a Session object.
- *
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Checkout\Session
- */
- public function retrieve($id, $params = null, $opts = null)
- {
- return $this->request('get', $this->buildPath('/v1/checkout/sessions/%s', $id), $params, $opts);
- }
-}
+<?php
+
+// File generated from our OpenAPI spec
+
+namespace Stripe\Service\Checkout;
+
+class SessionService extends \Stripe\Service\AbstractService
+{
+ /**
+ * Returns a list of Checkout Sessions.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\Checkout\Session>
+ */
+ public function all($params = null, $opts = null)
+ {
+ return $this->requestCollection('get', '/v1/checkout/sessions', $params, $opts);
+ }
+
+ /**
+ * When retrieving a Checkout Session, there is an includable
+ * <strong>line_items</strong> property containing the first handful of those
+ * items. There is also a URL where you can retrieve the full (paginated) list of
+ * line items.
+ *
+ * @param string $parentId
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\LineItem>
+ */
+ public function allLineItems($parentId, $params = null, $opts = null)
+ {
+ return $this->requestCollection('get', $this->buildPath('/v1/checkout/sessions/%s/line_items', $parentId), $params, $opts);
+ }
+
+ /**
+ * Creates a Session object.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Checkout\Session
+ */
+ public function create($params = null, $opts = null)
+ {
+ return $this->request('post', '/v1/checkout/sessions', $params, $opts);
+ }
+
+ /**
+ * A Session can be expired when it is in one of these statuses: <code>open</code>.
+ *
+ * After it expires, a customer can’t complete a Session and customers loading the
+ * Session see a message saying the Session is expired.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Checkout\Session
+ */
+ public function expire($id, $params = null, $opts = null)
+ {
+ return $this->request('post', $this->buildPath('/v1/checkout/sessions/%s/expire', $id), $params, $opts);
+ }
+
+ /**
+ * Retrieves a Session object.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Checkout\Session
+ */
+ public function retrieve($id, $params = null, $opts = null)
+ {
+ return $this->request('get', $this->buildPath('/v1/checkout/sessions/%s', $id), $params, $opts);
+ }
+}
diff --git a/vendor/stripe/stripe-php/lib/Service/CoreServiceFactory.php b/vendor/stripe/stripe-php/lib/Service/CoreServiceFactory.php
index 41454bd..a78b989 100644
--- a/vendor/stripe/stripe-php/lib/Service/CoreServiceFactory.php
+++ b/vendor/stripe/stripe-php/lib/Service/CoreServiceFactory.php
@@ -1,129 +1,139 @@
-<?php
-
-// File generated from our OpenAPI spec
-
-namespace Stripe\Service;
-
-/**
- * Service factory class for API resources in the root namespace.
- *
- * @property AccountLinkService $accountLinks
- * @property AccountService $accounts
- * @property ApplePayDomainService $applePayDomains
- * @property ApplicationFeeService $applicationFees
- * @property BalanceService $balance
- * @property BalanceTransactionService $balanceTransactions
- * @property BillingPortal\BillingPortalServiceFactory $billingPortal
- * @property ChargeService $charges
- * @property Checkout\CheckoutServiceFactory $checkout
- * @property CountrySpecService $countrySpecs
- * @property CouponService $coupons
- * @property CreditNoteService $creditNotes
- * @property CustomerService $customers
- * @property DisputeService $disputes
- * @property EphemeralKeyService $ephemeralKeys
- * @property EventService $events
- * @property ExchangeRateService $exchangeRates
- * @property FileLinkService $fileLinks
- * @property FileService $files
- * @property Identity\IdentityServiceFactory $identity
- * @property InvoiceItemService $invoiceItems
- * @property InvoiceService $invoices
- * @property Issuing\IssuingServiceFactory $issuing
- * @property MandateService $mandates
- * @property OAuthService $oauth
- * @property OrderReturnService $orderReturns
- * @property OrderService $orders
- * @property PaymentIntentService $paymentIntents
- * @property PaymentMethodService $paymentMethods
- * @property PayoutService $payouts
- * @property PlanService $plans
- * @property PriceService $prices
- * @property ProductService $products
- * @property PromotionCodeService $promotionCodes
- * @property Radar\RadarServiceFactory $radar
- * @property RefundService $refunds
- * @property Reporting\ReportingServiceFactory $reporting
- * @property ReviewService $reviews
- * @property SetupAttemptService $setupAttempts
- * @property SetupIntentService $setupIntents
- * @property Sigma\SigmaServiceFactory $sigma
- * @property SkuService $skus
- * @property SourceService $sources
- * @property SubscriptionItemService $subscriptionItems
- * @property SubscriptionService $subscriptions
- * @property SubscriptionScheduleService $subscriptionSchedules
- * @property TaxCodeService $taxCodes
- * @property TaxRateService $taxRates
- * @property Terminal\TerminalServiceFactory $terminal
- * @property TokenService $tokens
- * @property TopupService $topups
- * @property TransferService $transfers
- * @property WebhookEndpointService $webhookEndpoints
- */
-class CoreServiceFactory extends \Stripe\Service\AbstractServiceFactory
-{
- /**
- * @var array<string, string>
- */
- private static $classMap = [
- 'accountLinks' => AccountLinkService::class,
- 'accounts' => AccountService::class,
- 'applePayDomains' => ApplePayDomainService::class,
- 'applicationFees' => ApplicationFeeService::class,
- 'balance' => BalanceService::class,
- 'balanceTransactions' => BalanceTransactionService::class,
- 'billingPortal' => BillingPortal\BillingPortalServiceFactory::class,
- 'charges' => ChargeService::class,
- 'checkout' => Checkout\CheckoutServiceFactory::class,
- 'countrySpecs' => CountrySpecService::class,
- 'coupons' => CouponService::class,
- 'creditNotes' => CreditNoteService::class,
- 'customers' => CustomerService::class,
- 'disputes' => DisputeService::class,
- 'ephemeralKeys' => EphemeralKeyService::class,
- 'events' => EventService::class,
- 'exchangeRates' => ExchangeRateService::class,
- 'fileLinks' => FileLinkService::class,
- 'files' => FileService::class,
- 'identity' => Identity\IdentityServiceFactory::class,
- 'invoiceItems' => InvoiceItemService::class,
- 'invoices' => InvoiceService::class,
- 'issuing' => Issuing\IssuingServiceFactory::class,
- 'mandates' => MandateService::class,
- 'oauth' => OAuthService::class,
- 'orderReturns' => OrderReturnService::class,
- 'orders' => OrderService::class,
- 'paymentIntents' => PaymentIntentService::class,
- 'paymentMethods' => PaymentMethodService::class,
- 'payouts' => PayoutService::class,
- 'plans' => PlanService::class,
- 'prices' => PriceService::class,
- 'products' => ProductService::class,
- 'promotionCodes' => PromotionCodeService::class,
- 'radar' => Radar\RadarServiceFactory::class,
- 'refunds' => RefundService::class,
- 'reporting' => Reporting\ReportingServiceFactory::class,
- 'reviews' => ReviewService::class,
- 'setupAttempts' => SetupAttemptService::class,
- 'setupIntents' => SetupIntentService::class,
- 'sigma' => Sigma\SigmaServiceFactory::class,
- 'skus' => SkuService::class,
- 'sources' => SourceService::class,
- 'subscriptionItems' => SubscriptionItemService::class,
- 'subscriptions' => SubscriptionService::class,
- 'subscriptionSchedules' => SubscriptionScheduleService::class,
- 'taxCodes' => TaxCodeService::class,
- 'taxRates' => TaxRateService::class,
- 'terminal' => Terminal\TerminalServiceFactory::class,
- 'tokens' => TokenService::class,
- 'topups' => TopupService::class,
- 'transfers' => TransferService::class,
- 'webhookEndpoints' => WebhookEndpointService::class,
- ];
-
- protected function getServiceClass($name)
- {
- return \array_key_exists($name, self::$classMap) ? self::$classMap[$name] : null;
- }
-}
+<?php
+
+// File generated from our OpenAPI spec
+
+namespace Stripe\Service;
+
+/**
+ * Service factory class for API resources in the root namespace.
+ *
+ * @property AccountLinkService $accountLinks
+ * @property AccountService $accounts
+ * @property ApplePayDomainService $applePayDomains
+ * @property ApplicationFeeService $applicationFees
+ * @property BalanceService $balance
+ * @property BalanceTransactionService $balanceTransactions
+ * @property BillingPortal\BillingPortalServiceFactory $billingPortal
+ * @property ChargeService $charges
+ * @property Checkout\CheckoutServiceFactory $checkout
+ * @property CountrySpecService $countrySpecs
+ * @property CouponService $coupons
+ * @property CreditNoteService $creditNotes
+ * @property CustomerService $customers
+ * @property DisputeService $disputes
+ * @property EphemeralKeyService $ephemeralKeys
+ * @property EventService $events
+ * @property ExchangeRateService $exchangeRates
+ * @property FileLinkService $fileLinks
+ * @property FileService $files
+ * @property FinancialConnections\FinancialConnectionsServiceFactory $financialConnections
+ * @property Identity\IdentityServiceFactory $identity
+ * @property InvoiceItemService $invoiceItems
+ * @property InvoiceService $invoices
+ * @property Issuing\IssuingServiceFactory $issuing
+ * @property MandateService $mandates
+ * @property OAuthService $oauth
+ * @property OrderReturnService $orderReturns
+ * @property OrderService $orders
+ * @property PaymentIntentService $paymentIntents
+ * @property PaymentLinkService $paymentLinks
+ * @property PaymentMethodService $paymentMethods
+ * @property PayoutService $payouts
+ * @property PlanService $plans
+ * @property PriceService $prices
+ * @property ProductService $products
+ * @property PromotionCodeService $promotionCodes
+ * @property QuoteService $quotes
+ * @property Radar\RadarServiceFactory $radar
+ * @property RefundService $refunds
+ * @property Reporting\ReportingServiceFactory $reporting
+ * @property ReviewService $reviews
+ * @property SetupAttemptService $setupAttempts
+ * @property SetupIntentService $setupIntents
+ * @property ShippingRateService $shippingRates
+ * @property Sigma\SigmaServiceFactory $sigma
+ * @property SkuService $skus
+ * @property SourceService $sources
+ * @property SubscriptionItemService $subscriptionItems
+ * @property SubscriptionService $subscriptions
+ * @property SubscriptionScheduleService $subscriptionSchedules
+ * @property TaxCodeService $taxCodes
+ * @property TaxRateService $taxRates
+ * @property Terminal\TerminalServiceFactory $terminal
+ * @property TestHelpers\TestHelpersServiceFactory $testHelpers
+ * @property TokenService $tokens
+ * @property TopupService $topups
+ * @property TransferService $transfers
+ * @property WebhookEndpointService $webhookEndpoints
+ */
+class CoreServiceFactory extends \Stripe\Service\AbstractServiceFactory
+{
+ /**
+ * @var array<string, string>
+ */
+ private static $classMap = [
+ 'accountLinks' => AccountLinkService::class,
+ 'accounts' => AccountService::class,
+ 'applePayDomains' => ApplePayDomainService::class,
+ 'applicationFees' => ApplicationFeeService::class,
+ 'balance' => BalanceService::class,
+ 'balanceTransactions' => BalanceTransactionService::class,
+ 'billingPortal' => BillingPortal\BillingPortalServiceFactory::class,
+ 'charges' => ChargeService::class,
+ 'checkout' => Checkout\CheckoutServiceFactory::class,
+ 'countrySpecs' => CountrySpecService::class,
+ 'coupons' => CouponService::class,
+ 'creditNotes' => CreditNoteService::class,
+ 'customers' => CustomerService::class,
+ 'disputes' => DisputeService::class,
+ 'ephemeralKeys' => EphemeralKeyService::class,
+ 'events' => EventService::class,
+ 'exchangeRates' => ExchangeRateService::class,
+ 'fileLinks' => FileLinkService::class,
+ 'files' => FileService::class,
+ 'financialConnections' => FinancialConnections\FinancialConnectionsServiceFactory::class,
+ 'identity' => Identity\IdentityServiceFactory::class,
+ 'invoiceItems' => InvoiceItemService::class,
+ 'invoices' => InvoiceService::class,
+ 'issuing' => Issuing\IssuingServiceFactory::class,
+ 'mandates' => MandateService::class,
+ 'oauth' => OAuthService::class,
+ 'orderReturns' => OrderReturnService::class,
+ 'orders' => OrderService::class,
+ 'paymentIntents' => PaymentIntentService::class,
+ 'paymentLinks' => PaymentLinkService::class,
+ 'paymentMethods' => PaymentMethodService::class,
+ 'payouts' => PayoutService::class,
+ 'plans' => PlanService::class,
+ 'prices' => PriceService::class,
+ 'products' => ProductService::class,
+ 'promotionCodes' => PromotionCodeService::class,
+ 'quotes' => QuoteService::class,
+ 'radar' => Radar\RadarServiceFactory::class,
+ 'refunds' => RefundService::class,
+ 'reporting' => Reporting\ReportingServiceFactory::class,
+ 'reviews' => ReviewService::class,
+ 'setupAttempts' => SetupAttemptService::class,
+ 'setupIntents' => SetupIntentService::class,
+ 'shippingRates' => ShippingRateService::class,
+ 'sigma' => Sigma\SigmaServiceFactory::class,
+ 'skus' => SkuService::class,
+ 'sources' => SourceService::class,
+ 'subscriptionItems' => SubscriptionItemService::class,
+ 'subscriptions' => SubscriptionService::class,
+ 'subscriptionSchedules' => SubscriptionScheduleService::class,
+ 'taxCodes' => TaxCodeService::class,
+ 'taxRates' => TaxRateService::class,
+ 'terminal' => Terminal\TerminalServiceFactory::class,
+ 'testHelpers' => TestHelpers\TestHelpersServiceFactory::class,
+ 'tokens' => TokenService::class,
+ 'topups' => TopupService::class,
+ 'transfers' => TransferService::class,
+ 'webhookEndpoints' => WebhookEndpointService::class,
+ ];
+
+ protected function getServiceClass($name)
+ {
+ return \array_key_exists($name, self::$classMap) ? self::$classMap[$name] : null;
+ }
+}
diff --git a/vendor/stripe/stripe-php/lib/Service/CountrySpecService.php b/vendor/stripe/stripe-php/lib/Service/CountrySpecService.php
index 573444f..a5cf520 100644
--- a/vendor/stripe/stripe-php/lib/Service/CountrySpecService.php
+++ b/vendor/stripe/stripe-php/lib/Service/CountrySpecService.php
@@ -1,39 +1,39 @@
-<?php
-
-// File generated from our OpenAPI spec
-
-namespace Stripe\Service;
-
-class CountrySpecService extends \Stripe\Service\AbstractService
-{
- /**
- * Lists all Country Spec objects available in the API.
- *
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Collection
- */
- public function all($params = null, $opts = null)
- {
- return $this->requestCollection('get', '/v1/country_specs', $params, $opts);
- }
-
- /**
- * Returns a Country Spec for a given Country code.
- *
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\CountrySpec
- */
- public function retrieve($id, $params = null, $opts = null)
- {
- return $this->request('get', $this->buildPath('/v1/country_specs/%s', $id), $params, $opts);
- }
-}
+<?php
+
+// File generated from our OpenAPI spec
+
+namespace Stripe\Service;
+
+class CountrySpecService extends \Stripe\Service\AbstractService
+{
+ /**
+ * Lists all Country Spec objects available in the API.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\CountrySpec>
+ */
+ public function all($params = null, $opts = null)
+ {
+ return $this->requestCollection('get', '/v1/country_specs', $params, $opts);
+ }
+
+ /**
+ * Returns a Country Spec for a given Country code.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\CountrySpec
+ */
+ public function retrieve($id, $params = null, $opts = null)
+ {
+ return $this->request('get', $this->buildPath('/v1/country_specs/%s', $id), $params, $opts);
+ }
+}
diff --git a/vendor/stripe/stripe-php/lib/Service/CouponService.php b/vendor/stripe/stripe-php/lib/Service/CouponService.php
index 82a880f..d6090da 100644
--- a/vendor/stripe/stripe-php/lib/Service/CouponService.php
+++ b/vendor/stripe/stripe-php/lib/Service/CouponService.php
@@ -1,104 +1,104 @@
-<?php
-
-// File generated from our OpenAPI spec
-
-namespace Stripe\Service;
-
-class CouponService extends \Stripe\Service\AbstractService
-{
- /**
- * Returns a list of your coupons.
- *
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Collection
- */
- public function all($params = null, $opts = null)
- {
- return $this->requestCollection('get', '/v1/coupons', $params, $opts);
- }
-
- /**
- * You can create coupons easily via the <a
- * href="https://dashboard.stripe.com/coupons">coupon management</a> page of the
- * Stripe dashboard. Coupon creation is also accessible via the API if you need to
- * create coupons on the fly.
- *
- * A coupon has either a <code>percent_off</code> or an <code>amount_off</code> and
- * <code>currency</code>. If you set an <code>amount_off</code>, that amount will
- * be subtracted from any invoice’s subtotal. For example, an invoice with a
- * subtotal of <currency>100</currency> will have a final total of
- * <currency>0</currency> if a coupon with an <code>amount_off</code> of
- * <amount>200</amount> is applied to it and an invoice with a subtotal of
- * <currency>300</currency> will have a final total of <currency>100</currency> if
- * a coupon with an <code>amount_off</code> of <amount>200</amount> is applied to
- * it.
- *
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Coupon
- */
- public function create($params = null, $opts = null)
- {
- return $this->request('post', '/v1/coupons', $params, $opts);
- }
-
- /**
- * You can delete coupons via the <a
- * href="https://dashboard.stripe.com/coupons">coupon management</a> page of the
- * Stripe dashboard. However, deleting a coupon does not affect any customers who
- * have already applied the coupon; it means that new customers can’t redeem the
- * coupon. You can also delete coupons via the API.
- *
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Coupon
- */
- public function delete($id, $params = null, $opts = null)
- {
- return $this->request('delete', $this->buildPath('/v1/coupons/%s', $id), $params, $opts);
- }
-
- /**
- * Retrieves the coupon with the given ID.
- *
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Coupon
- */
- public function retrieve($id, $params = null, $opts = null)
- {
- return $this->request('get', $this->buildPath('/v1/coupons/%s', $id), $params, $opts);
- }
-
- /**
- * Updates the metadata of a coupon. Other coupon details (currency, duration,
- * amount_off) are, by design, not editable.
- *
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Coupon
- */
- public function update($id, $params = null, $opts = null)
- {
- return $this->request('post', $this->buildPath('/v1/coupons/%s', $id), $params, $opts);
- }
-}
+<?php
+
+// File generated from our OpenAPI spec
+
+namespace Stripe\Service;
+
+class CouponService extends \Stripe\Service\AbstractService
+{
+ /**
+ * Returns a list of your coupons.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\Coupon>
+ */
+ public function all($params = null, $opts = null)
+ {
+ return $this->requestCollection('get', '/v1/coupons', $params, $opts);
+ }
+
+ /**
+ * You can create coupons easily via the <a
+ * href="https://dashboard.stripe.com/coupons">coupon management</a> page of the
+ * Stripe dashboard. Coupon creation is also accessible via the API if you need to
+ * create coupons on the fly.
+ *
+ * A coupon has either a <code>percent_off</code> or an <code>amount_off</code> and
+ * <code>currency</code>. If you set an <code>amount_off</code>, that amount will
+ * be subtracted from any invoice’s subtotal. For example, an invoice with a
+ * subtotal of <currency>100</currency> will have a final total of
+ * <currency>0</currency> if a coupon with an <code>amount_off</code> of
+ * <amount>200</amount> is applied to it and an invoice with a subtotal of
+ * <currency>300</currency> will have a final total of <currency>100</currency> if
+ * a coupon with an <code>amount_off</code> of <amount>200</amount> is applied to
+ * it.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Coupon
+ */
+ public function create($params = null, $opts = null)
+ {
+ return $this->request('post', '/v1/coupons', $params, $opts);
+ }
+
+ /**
+ * You can delete coupons via the <a
+ * href="https://dashboard.stripe.com/coupons">coupon management</a> page of the
+ * Stripe dashboard. However, deleting a coupon does not affect any customers who
+ * have already applied the coupon; it means that new customers can’t redeem the
+ * coupon. You can also delete coupons via the API.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Coupon
+ */
+ public function delete($id, $params = null, $opts = null)
+ {
+ return $this->request('delete', $this->buildPath('/v1/coupons/%s', $id), $params, $opts);
+ }
+
+ /**
+ * Retrieves the coupon with the given ID.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Coupon
+ */
+ public function retrieve($id, $params = null, $opts = null)
+ {
+ return $this->request('get', $this->buildPath('/v1/coupons/%s', $id), $params, $opts);
+ }
+
+ /**
+ * Updates the metadata of a coupon. Other coupon details (currency, duration,
+ * amount_off) are, by design, not editable.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Coupon
+ */
+ public function update($id, $params = null, $opts = null)
+ {
+ return $this->request('post', $this->buildPath('/v1/coupons/%s', $id), $params, $opts);
+ }
+}
diff --git a/vendor/stripe/stripe-php/lib/Service/CreditNoteService.php b/vendor/stripe/stripe-php/lib/Service/CreditNoteService.php
index 39807dc..ce6402a 100644
--- a/vendor/stripe/stripe-php/lib/Service/CreditNoteService.php
+++ b/vendor/stripe/stripe-php/lib/Service/CreditNoteService.php
@@ -1,156 +1,156 @@
-<?php
-
-// File generated from our OpenAPI spec
-
-namespace Stripe\Service;
-
-class CreditNoteService extends \Stripe\Service\AbstractService
-{
- /**
- * Returns a list of credit notes.
- *
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Collection
- */
- public function all($params = null, $opts = null)
- {
- return $this->requestCollection('get', '/v1/credit_notes', $params, $opts);
- }
-
- /**
- * When retrieving a credit note, you’ll get a <strong>lines</strong> property
- * containing the the first handful of those items. There is also a URL where you
- * can retrieve the full (paginated) list of line items.
- *
- * @param string $parentId
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Collection
- */
- public function allLines($parentId, $params = null, $opts = null)
- {
- return $this->requestCollection('get', $this->buildPath('/v1/credit_notes/%s/lines', $parentId), $params, $opts);
- }
-
- /**
- * Issue a credit note to adjust the amount of a finalized invoice. For a
- * <code>status=open</code> invoice, a credit note reduces its
- * <code>amount_due</code>. For a <code>status=paid</code> invoice, a credit note
- * does not affect its <code>amount_due</code>. Instead, it can result in any
- * combination of the following:.
- *
- * <ul> <li>Refund: create a new refund (using <code>refund_amount</code>) or link
- * an existing refund (using <code>refund</code>).</li> <li>Customer balance
- * credit: credit the customer’s balance (using <code>credit_amount</code>) which
- * will be automatically applied to their next invoice when it’s finalized.</li>
- * <li>Outside of Stripe credit: record the amount that is or will be credited
- * outside of Stripe (using <code>out_of_band_amount</code>).</li> </ul>
- *
- * For post-payment credit notes the sum of the refund, credit and outside of
- * Stripe amounts must equal the credit note total.
- *
- * You may issue multiple credit notes for an invoice. Each credit note will
- * increment the invoice’s <code>pre_payment_credit_notes_amount</code> or
- * <code>post_payment_credit_notes_amount</code> depending on its
- * <code>status</code> at the time of credit note creation.
- *
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\CreditNote
- */
- public function create($params = null, $opts = null)
- {
- return $this->request('post', '/v1/credit_notes', $params, $opts);
- }
-
- /**
- * Get a preview of a credit note without creating it.
- *
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\CreditNote
- */
- public function preview($params = null, $opts = null)
- {
- return $this->request('get', '/v1/credit_notes/preview', $params, $opts);
- }
-
- /**
- * When retrieving a credit note preview, you’ll get a <strong>lines</strong>
- * property containing the first handful of those items. This URL you can retrieve
- * the full (paginated) list of line items.
- *
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\CreditNote
- */
- public function previewLines($params = null, $opts = null)
- {
- return $this->request('get', '/v1/credit_notes/preview/lines', $params, $opts);
- }
-
- /**
- * Retrieves the credit note object with the given identifier.
- *
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\CreditNote
- */
- public function retrieve($id, $params = null, $opts = null)
- {
- return $this->request('get', $this->buildPath('/v1/credit_notes/%s', $id), $params, $opts);
- }
-
- /**
- * Updates an existing credit note.
- *
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\CreditNote
- */
- public function update($id, $params = null, $opts = null)
- {
- return $this->request('post', $this->buildPath('/v1/credit_notes/%s', $id), $params, $opts);
- }
-
- /**
- * Marks a credit note as void. Learn more about <a
- * href="/docs/billing/invoices/credit-notes#voiding">voiding credit notes</a>.
- *
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\CreditNote
- */
- public function voidCreditNote($id, $params = null, $opts = null)
- {
- return $this->request('post', $this->buildPath('/v1/credit_notes/%s/void', $id), $params, $opts);
- }
-}
+<?php
+
+// File generated from our OpenAPI spec
+
+namespace Stripe\Service;
+
+class CreditNoteService extends \Stripe\Service\AbstractService
+{
+ /**
+ * Returns a list of credit notes.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\CreditNote>
+ */
+ public function all($params = null, $opts = null)
+ {
+ return $this->requestCollection('get', '/v1/credit_notes', $params, $opts);
+ }
+
+ /**
+ * When retrieving a credit note, you’ll get a <strong>lines</strong> property
+ * containing the the first handful of those items. There is also a URL where you
+ * can retrieve the full (paginated) list of line items.
+ *
+ * @param string $parentId
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\CreditNoteLineItem>
+ */
+ public function allLines($parentId, $params = null, $opts = null)
+ {
+ return $this->requestCollection('get', $this->buildPath('/v1/credit_notes/%s/lines', $parentId), $params, $opts);
+ }
+
+ /**
+ * Issue a credit note to adjust the amount of a finalized invoice. For a
+ * <code>status=open</code> invoice, a credit note reduces its
+ * <code>amount_due</code>. For a <code>status=paid</code> invoice, a credit note
+ * does not affect its <code>amount_due</code>. Instead, it can result in any
+ * combination of the following:.
+ *
+ * <ul> <li>Refund: create a new refund (using <code>refund_amount</code>) or link
+ * an existing refund (using <code>refund</code>).</li> <li>Customer balance
+ * credit: credit the customer’s balance (using <code>credit_amount</code>) which
+ * will be automatically applied to their next invoice when it’s finalized.</li>
+ * <li>Outside of Stripe credit: record the amount that is or will be credited
+ * outside of Stripe (using <code>out_of_band_amount</code>).</li> </ul>
+ *
+ * For post-payment credit notes the sum of the refund, credit and outside of
+ * Stripe amounts must equal the credit note total.
+ *
+ * You may issue multiple credit notes for an invoice. Each credit note will
+ * increment the invoice’s <code>pre_payment_credit_notes_amount</code> or
+ * <code>post_payment_credit_notes_amount</code> depending on its
+ * <code>status</code> at the time of credit note creation.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\CreditNote
+ */
+ public function create($params = null, $opts = null)
+ {
+ return $this->request('post', '/v1/credit_notes', $params, $opts);
+ }
+
+ /**
+ * Get a preview of a credit note without creating it.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\CreditNote
+ */
+ public function preview($params = null, $opts = null)
+ {
+ return $this->request('get', '/v1/credit_notes/preview', $params, $opts);
+ }
+
+ /**
+ * When retrieving a credit note preview, you’ll get a <strong>lines</strong>
+ * property containing the first handful of those items. This URL you can retrieve
+ * the full (paginated) list of line items.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\CreditNote>
+ */
+ public function previewLines($params = null, $opts = null)
+ {
+ return $this->requestCollection('get', '/v1/credit_notes/preview/lines', $params, $opts);
+ }
+
+ /**
+ * Retrieves the credit note object with the given identifier.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\CreditNote
+ */
+ public function retrieve($id, $params = null, $opts = null)
+ {
+ return $this->request('get', $this->buildPath('/v1/credit_notes/%s', $id), $params, $opts);
+ }
+
+ /**
+ * Updates an existing credit note.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\CreditNote
+ */
+ public function update($id, $params = null, $opts = null)
+ {
+ return $this->request('post', $this->buildPath('/v1/credit_notes/%s', $id), $params, $opts);
+ }
+
+ /**
+ * Marks a credit note as void. Learn more about <a
+ * href="/docs/billing/invoices/credit-notes#voiding">voiding credit notes</a>.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\CreditNote
+ */
+ public function voidCreditNote($id, $params = null, $opts = null)
+ {
+ return $this->request('post', $this->buildPath('/v1/credit_notes/%s/void', $id), $params, $opts);
+ }
+}
diff --git a/vendor/stripe/stripe-php/lib/Service/CustomerService.php b/vendor/stripe/stripe-php/lib/Service/CustomerService.php
index fdc6a59..0093873 100644
--- a/vendor/stripe/stripe-php/lib/Service/CustomerService.php
+++ b/vendor/stripe/stripe-php/lib/Service/CustomerService.php
@@ -1,353 +1,440 @@
-<?php
-
-// File generated from our OpenAPI spec
-
-namespace Stripe\Service;
-
-class CustomerService extends \Stripe\Service\AbstractService
-{
- /**
- * Returns a list of your customers. The customers are returned sorted by creation
- * date, with the most recent customers appearing first.
- *
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Collection
- */
- public function all($params = null, $opts = null)
- {
- return $this->requestCollection('get', '/v1/customers', $params, $opts);
- }
-
- /**
- * Returns a list of transactions that updated the customer’s <a
- * href="/docs/billing/customer/balance">balances</a>.
- *
- * @param string $parentId
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Collection
- */
- public function allBalanceTransactions($parentId, $params = null, $opts = null)
- {
- return $this->requestCollection('get', $this->buildPath('/v1/customers/%s/balance_transactions', $parentId), $params, $opts);
- }
-
- /**
- * List sources for a specified customer.
- *
- * @param string $parentId
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Collection
- */
- public function allSources($parentId, $params = null, $opts = null)
- {
- return $this->requestCollection('get', $this->buildPath('/v1/customers/%s/sources', $parentId), $params, $opts);
- }
-
- /**
- * Returns a list of tax IDs for a customer.
- *
- * @param string $parentId
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Collection
- */
- public function allTaxIds($parentId, $params = null, $opts = null)
- {
- return $this->requestCollection('get', $this->buildPath('/v1/customers/%s/tax_ids', $parentId), $params, $opts);
- }
-
- /**
- * Creates a new customer object.
- *
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Customer
- */
- public function create($params = null, $opts = null)
- {
- return $this->request('post', '/v1/customers', $params, $opts);
- }
-
- /**
- * Creates an immutable transaction that updates the customer’s credit <a
- * href="/docs/billing/customer/balance">balance</a>.
- *
- * @param string $parentId
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\CustomerBalanceTransaction
- */
- public function createBalanceTransaction($parentId, $params = null, $opts = null)
- {
- return $this->request('post', $this->buildPath('/v1/customers/%s/balance_transactions', $parentId), $params, $opts);
- }
-
- /**
- * When you create a new credit card, you must specify a customer or recipient on
- * which to create it.
- *
- * If the card’s owner has no default card, then the new card will become the
- * default. However, if the owner already has a default, then it will not change.
- * To change the default, you should <a href="/docs/api#update_customer">update the
- * customer</a> to have a new <code>default_source</code>.
- *
- * @param string $parentId
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\AlipayAccount|\Stripe\BankAccount|\Stripe\BitcoinReceiver|\Stripe\Card|\Stripe\Source
- */
- public function createSource($parentId, $params = null, $opts = null)
- {
- return $this->request('post', $this->buildPath('/v1/customers/%s/sources', $parentId), $params, $opts);
- }
-
- /**
- * Creates a new <code>TaxID</code> object for a customer.
- *
- * @param string $parentId
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\TaxId
- */
- public function createTaxId($parentId, $params = null, $opts = null)
- {
- return $this->request('post', $this->buildPath('/v1/customers/%s/tax_ids', $parentId), $params, $opts);
- }
-
- /**
- * Permanently deletes a customer. It cannot be undone. Also immediately cancels
- * any active subscriptions on the customer.
- *
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Customer
- */
- public function delete($id, $params = null, $opts = null)
- {
- return $this->request('delete', $this->buildPath('/v1/customers/%s', $id), $params, $opts);
- }
-
- /**
- * Removes the currently applied discount on a customer.
- *
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Customer
- */
- public function deleteDiscount($id, $params = null, $opts = null)
- {
- return $this->request('delete', $this->buildPath('/v1/customers/%s/discount', $id), $params, $opts);
- }
-
- /**
- * @param string $parentId
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\AlipayAccount|\Stripe\BankAccount|\Stripe\BitcoinReceiver|\Stripe\Card|\Stripe\Source
- */
- public function deleteSource($parentId, $id, $params = null, $opts = null)
- {
- return $this->request('delete', $this->buildPath('/v1/customers/%s/sources/%s', $parentId, $id), $params, $opts);
- }
-
- /**
- * Deletes an existing <code>TaxID</code> object.
- *
- * @param string $parentId
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\TaxId
- */
- public function deleteTaxId($parentId, $id, $params = null, $opts = null)
- {
- return $this->request('delete', $this->buildPath('/v1/customers/%s/tax_ids/%s', $parentId, $id), $params, $opts);
- }
-
- /**
- * Retrieves the details of an existing customer. You need only supply the unique
- * customer identifier that was returned upon customer creation.
- *
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Customer
- */
- public function retrieve($id, $params = null, $opts = null)
- {
- return $this->request('get', $this->buildPath('/v1/customers/%s', $id), $params, $opts);
- }
-
- /**
- * Retrieves a specific customer balance transaction that updated the customer’s <a
- * href="/docs/billing/customer/balance">balances</a>.
- *
- * @param string $parentId
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\CustomerBalanceTransaction
- */
- public function retrieveBalanceTransaction($parentId, $id, $params = null, $opts = null)
- {
- return $this->request('get', $this->buildPath('/v1/customers/%s/balance_transactions/%s', $parentId, $id), $params, $opts);
- }
-
- /**
- * Retrieve a specified source for a given customer.
- *
- * @param string $parentId
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\AlipayAccount|\Stripe\BankAccount|\Stripe\BitcoinReceiver|\Stripe\Card|\Stripe\Source
- */
- public function retrieveSource($parentId, $id, $params = null, $opts = null)
- {
- return $this->request('get', $this->buildPath('/v1/customers/%s/sources/%s', $parentId, $id), $params, $opts);
- }
-
- /**
- * Retrieves the <code>TaxID</code> object with the given identifier.
- *
- * @param string $parentId
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\TaxId
- */
- public function retrieveTaxId($parentId, $id, $params = null, $opts = null)
- {
- return $this->request('get', $this->buildPath('/v1/customers/%s/tax_ids/%s', $parentId, $id), $params, $opts);
- }
-
- /**
- * Updates the specified customer by setting the values of the parameters passed.
- * Any parameters not provided will be left unchanged. For example, if you pass the
- * <strong>source</strong> parameter, that becomes the customer’s active source
- * (e.g., a card) to be used for all charges in the future. When you update a
- * customer to a new valid card source by passing the <strong>source</strong>
- * parameter: for each of the customer’s current subscriptions, if the subscription
- * bills automatically and is in the <code>past_due</code> state, then the latest
- * open invoice for the subscription with automatic collection enabled will be
- * retried. This retry will not count as an automatic retry, and will not affect
- * the next regularly scheduled payment for the invoice. Changing the
- * <strong>default_source</strong> for a customer will not trigger this behavior.
- *
- * This request accepts mostly the same arguments as the customer creation call.
- *
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Customer
- */
- public function update($id, $params = null, $opts = null)
- {
- return $this->request('post', $this->buildPath('/v1/customers/%s', $id), $params, $opts);
- }
-
- /**
- * Most credit balance transaction fields are immutable, but you may update its
- * <code>description</code> and <code>metadata</code>.
- *
- * @param string $parentId
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\CustomerBalanceTransaction
- */
- public function updateBalanceTransaction($parentId, $id, $params = null, $opts = null)
- {
- return $this->request('post', $this->buildPath('/v1/customers/%s/balance_transactions/%s', $parentId, $id), $params, $opts);
- }
-
- /**
- * @param string $parentId
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\AlipayAccount|\Stripe\BankAccount|\Stripe\BitcoinReceiver|\Stripe\Card|\Stripe\Source
- */
- public function updateSource($parentId, $id, $params = null, $opts = null)
- {
- return $this->request('post', $this->buildPath('/v1/customers/%s/sources/%s', $parentId, $id), $params, $opts);
- }
-
- /**
- * @param string $parentId
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\AlipayAccount|\Stripe\BankAccount|\Stripe\BitcoinReceiver|\Stripe\Card|\Stripe\Source
- */
- public function verifySource($parentId, $id, $params = null, $opts = null)
- {
- return $this->request('post', $this->buildPath('/v1/customers/%s/sources/%s/verify', $parentId, $id), $params, $opts);
- }
-}
+<?php
+
+// File generated from our OpenAPI spec
+
+namespace Stripe\Service;
+
+class CustomerService extends \Stripe\Service\AbstractService
+{
+ /**
+ * Returns a list of your customers. The customers are returned sorted by creation
+ * date, with the most recent customers appearing first.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\Customer>
+ */
+ public function all($params = null, $opts = null)
+ {
+ return $this->requestCollection('get', '/v1/customers', $params, $opts);
+ }
+
+ /**
+ * Returns a list of transactions that updated the customer’s <a
+ * href="/docs/billing/customer/balance">balances</a>.
+ *
+ * @param string $parentId
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\CustomerBalanceTransaction>
+ */
+ public function allBalanceTransactions($parentId, $params = null, $opts = null)
+ {
+ return $this->requestCollection('get', $this->buildPath('/v1/customers/%s/balance_transactions', $parentId), $params, $opts);
+ }
+
+ /**
+ * Returns a list of PaymentMethods for a given Customer.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\Customer>
+ */
+ public function allPaymentMethods($id, $params = null, $opts = null)
+ {
+ return $this->requestCollection('get', $this->buildPath('/v1/customers/%s/payment_methods', $id), $params, $opts);
+ }
+
+ /**
+ * List sources for a specified customer.
+ *
+ * @param string $parentId
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\AlipayAccount|\Stripe\BankAccount|\Stripe\BitcoinReceiver|\Stripe\Card|\Stripe\Source>
+ */
+ public function allSources($parentId, $params = null, $opts = null)
+ {
+ return $this->requestCollection('get', $this->buildPath('/v1/customers/%s/sources', $parentId), $params, $opts);
+ }
+
+ /**
+ * Returns a list of tax IDs for a customer.
+ *
+ * @param string $parentId
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\TaxId>
+ */
+ public function allTaxIds($parentId, $params = null, $opts = null)
+ {
+ return $this->requestCollection('get', $this->buildPath('/v1/customers/%s/tax_ids', $parentId), $params, $opts);
+ }
+
+ /**
+ * Creates a new customer object.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Customer
+ */
+ public function create($params = null, $opts = null)
+ {
+ return $this->request('post', '/v1/customers', $params, $opts);
+ }
+
+ /**
+ * Creates an immutable transaction that updates the customer’s credit <a
+ * href="/docs/billing/customer/balance">balance</a>.
+ *
+ * @param string $parentId
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\CustomerBalanceTransaction
+ */
+ public function createBalanceTransaction($parentId, $params = null, $opts = null)
+ {
+ return $this->request('post', $this->buildPath('/v1/customers/%s/balance_transactions', $parentId), $params, $opts);
+ }
+
+ /**
+ * Retrieve funding instructions for a customer cash balance. If funding
+ * instructions do not yet exist for the customer, new funding instructions will be
+ * created. If funding instructions have already been created for a given customer,
+ * the same funding instructions will be retrieved. In other words, we will return
+ * the same funding instructions each time.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Customer
+ */
+ public function createFundingInstructions($id, $params = null, $opts = null)
+ {
+ return $this->request('post', $this->buildPath('/v1/customers/%s/funding_instructions', $id), $params, $opts);
+ }
+
+ /**
+ * When you create a new credit card, you must specify a customer or recipient on
+ * which to create it.
+ *
+ * If the card’s owner has no default card, then the new card will become the
+ * default. However, if the owner already has a default, then it will not change.
+ * To change the default, you should <a href="/docs/api#update_customer">update the
+ * customer</a> to have a new <code>default_source</code>.
+ *
+ * @param string $parentId
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\AlipayAccount|\Stripe\BankAccount|\Stripe\BitcoinReceiver|\Stripe\Card|\Stripe\Source
+ */
+ public function createSource($parentId, $params = null, $opts = null)
+ {
+ return $this->request('post', $this->buildPath('/v1/customers/%s/sources', $parentId), $params, $opts);
+ }
+
+ /**
+ * Creates a new <code>TaxID</code> object for a customer.
+ *
+ * @param string $parentId
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\TaxId
+ */
+ public function createTaxId($parentId, $params = null, $opts = null)
+ {
+ return $this->request('post', $this->buildPath('/v1/customers/%s/tax_ids', $parentId), $params, $opts);
+ }
+
+ /**
+ * Permanently deletes a customer. It cannot be undone. Also immediately cancels
+ * any active subscriptions on the customer.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Customer
+ */
+ public function delete($id, $params = null, $opts = null)
+ {
+ return $this->request('delete', $this->buildPath('/v1/customers/%s', $id), $params, $opts);
+ }
+
+ /**
+ * Removes the currently applied discount on a customer.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Customer
+ */
+ public function deleteDiscount($id, $params = null, $opts = null)
+ {
+ return $this->request('delete', $this->buildPath('/v1/customers/%s/discount', $id), $params, $opts);
+ }
+
+ /**
+ * @param string $parentId
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\AlipayAccount|\Stripe\BankAccount|\Stripe\BitcoinReceiver|\Stripe\Card|\Stripe\Source
+ */
+ public function deleteSource($parentId, $id, $params = null, $opts = null)
+ {
+ return $this->request('delete', $this->buildPath('/v1/customers/%s/sources/%s', $parentId, $id), $params, $opts);
+ }
+
+ /**
+ * Deletes an existing <code>TaxID</code> object.
+ *
+ * @param string $parentId
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\TaxId
+ */
+ public function deleteTaxId($parentId, $id, $params = null, $opts = null)
+ {
+ return $this->request('delete', $this->buildPath('/v1/customers/%s/tax_ids/%s', $parentId, $id), $params, $opts);
+ }
+
+ /**
+ * Retrieves a Customer object.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Customer
+ */
+ public function retrieve($id, $params = null, $opts = null)
+ {
+ return $this->request('get', $this->buildPath('/v1/customers/%s', $id), $params, $opts);
+ }
+
+ /**
+ * Retrieves a specific customer balance transaction that updated the customer’s <a
+ * href="/docs/billing/customer/balance">balances</a>.
+ *
+ * @param string $parentId
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\CustomerBalanceTransaction
+ */
+ public function retrieveBalanceTransaction($parentId, $id, $params = null, $opts = null)
+ {
+ return $this->request('get', $this->buildPath('/v1/customers/%s/balance_transactions/%s', $parentId, $id), $params, $opts);
+ }
+
+ /**
+ * Retrieves a customer’s cash balance.
+ *
+ * @param string $parentId
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\cash_balance
+ */
+ public function retrieveCashBalance($parentId, $params = null, $opts = null)
+ {
+ return $this->request('get', $this->buildPath('/v1/customers/%s/cash_balance', $parentId), $params, $opts);
+ }
+
+ /**
+ * Retrieve a specified source for a given customer.
+ *
+ * @param string $parentId
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\AlipayAccount|\Stripe\BankAccount|\Stripe\BitcoinReceiver|\Stripe\Card|\Stripe\Source
+ */
+ public function retrieveSource($parentId, $id, $params = null, $opts = null)
+ {
+ return $this->request('get', $this->buildPath('/v1/customers/%s/sources/%s', $parentId, $id), $params, $opts);
+ }
+
+ /**
+ * Retrieves the <code>TaxID</code> object with the given identifier.
+ *
+ * @param string $parentId
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\TaxId
+ */
+ public function retrieveTaxId($parentId, $id, $params = null, $opts = null)
+ {
+ return $this->request('get', $this->buildPath('/v1/customers/%s/tax_ids/%s', $parentId, $id), $params, $opts);
+ }
+
+ /**
+ * Search for customers you’ve previously created using Stripe’s <a
+ * href="/docs/search#search-query-language">Search Query Language</a>. Don’t use
+ * search in read-after-write flows where strict consistency is necessary. Under
+ * normal operating conditions, data is searchable in less than a minute.
+ * Occasionally, propagation of new or updated data can be up to an hour behind
+ * during outages. Search functionality is not available to merchants in India.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\SearchResult<\Stripe\Customer>
+ */
+ public function search($params = null, $opts = null)
+ {
+ return $this->requestSearchResult('get', '/v1/customers/search', $params, $opts);
+ }
+
+ /**
+ * Updates the specified customer by setting the values of the parameters passed.
+ * Any parameters not provided will be left unchanged. For example, if you pass the
+ * <strong>source</strong> parameter, that becomes the customer’s active source
+ * (e.g., a card) to be used for all charges in the future. When you update a
+ * customer to a new valid card source by passing the <strong>source</strong>
+ * parameter: for each of the customer’s current subscriptions, if the subscription
+ * bills automatically and is in the <code>past_due</code> state, then the latest
+ * open invoice for the subscription with automatic collection enabled will be
+ * retried. This retry will not count as an automatic retry, and will not affect
+ * the next regularly scheduled payment for the invoice. Changing the
+ * <strong>default_source</strong> for a customer will not trigger this behavior.
+ *
+ * This request accepts mostly the same arguments as the customer creation call.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Customer
+ */
+ public function update($id, $params = null, $opts = null)
+ {
+ return $this->request('post', $this->buildPath('/v1/customers/%s', $id), $params, $opts);
+ }
+
+ /**
+ * Most credit balance transaction fields are immutable, but you may update its
+ * <code>description</code> and <code>metadata</code>.
+ *
+ * @param string $parentId
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\CustomerBalanceTransaction
+ */
+ public function updateBalanceTransaction($parentId, $id, $params = null, $opts = null)
+ {
+ return $this->request('post', $this->buildPath('/v1/customers/%s/balance_transactions/%s', $parentId, $id), $params, $opts);
+ }
+
+ /**
+ * Updates a customer’s cash balance.
+ *
+ * @param string $parentId
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\cash_balance
+ */
+ public function updateCashBalance($parentId, $params = null, $opts = null)
+ {
+ return $this->request('post', $this->buildPath('/v1/customers/%s/cash_balance', $parentId), $params, $opts);
+ }
+
+ /**
+ * @param string $parentId
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\AlipayAccount|\Stripe\BankAccount|\Stripe\BitcoinReceiver|\Stripe\Card|\Stripe\Source
+ */
+ public function updateSource($parentId, $id, $params = null, $opts = null)
+ {
+ return $this->request('post', $this->buildPath('/v1/customers/%s/sources/%s', $parentId, $id), $params, $opts);
+ }
+
+ /**
+ * @param string $parentId
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\AlipayAccount|\Stripe\BankAccount|\Stripe\BitcoinReceiver|\Stripe\Card|\Stripe\Source
+ */
+ public function verifySource($parentId, $id, $params = null, $opts = null)
+ {
+ return $this->request('post', $this->buildPath('/v1/customers/%s/sources/%s/verify', $parentId, $id), $params, $opts);
+ }
+}
diff --git a/vendor/stripe/stripe-php/lib/Service/DisputeService.php b/vendor/stripe/stripe-php/lib/Service/DisputeService.php
index 4eb1542..807a497 100644
--- a/vendor/stripe/stripe-php/lib/Service/DisputeService.php
+++ b/vendor/stripe/stripe-php/lib/Service/DisputeService.php
@@ -1,83 +1,83 @@
-<?php
-
-// File generated from our OpenAPI spec
-
-namespace Stripe\Service;
-
-class DisputeService extends \Stripe\Service\AbstractService
-{
- /**
- * Returns a list of your disputes.
- *
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Collection
- */
- public function all($params = null, $opts = null)
- {
- return $this->requestCollection('get', '/v1/disputes', $params, $opts);
- }
-
- /**
- * Closing the dispute for a charge indicates that you do not have any evidence to
- * submit and are essentially dismissing the dispute, acknowledging it as lost.
- *
- * The status of the dispute will change from <code>needs_response</code> to
- * <code>lost</code>. <em>Closing a dispute is irreversible</em>.
- *
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Dispute
- */
- public function close($id, $params = null, $opts = null)
- {
- return $this->request('post', $this->buildPath('/v1/disputes/%s/close', $id), $params, $opts);
- }
-
- /**
- * Retrieves the dispute with the given ID.
- *
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Dispute
- */
- public function retrieve($id, $params = null, $opts = null)
- {
- return $this->request('get', $this->buildPath('/v1/disputes/%s', $id), $params, $opts);
- }
-
- /**
- * When you get a dispute, contacting your customer is always the best first step.
- * If that doesn’t work, you can submit evidence to help us resolve the dispute in
- * your favor. You can do this in your <a
- * href="https://dashboard.stripe.com/disputes">dashboard</a>, but if you prefer,
- * you can use the API to submit evidence programmatically.
- *
- * Depending on your dispute type, different evidence fields will give you a better
- * chance of winning your dispute. To figure out which evidence fields to provide,
- * see our <a href="/docs/disputes/categories">guide to dispute types</a>.
- *
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Dispute
- */
- public function update($id, $params = null, $opts = null)
- {
- return $this->request('post', $this->buildPath('/v1/disputes/%s', $id), $params, $opts);
- }
-}
+<?php
+
+// File generated from our OpenAPI spec
+
+namespace Stripe\Service;
+
+class DisputeService extends \Stripe\Service\AbstractService
+{
+ /**
+ * Returns a list of your disputes.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\Dispute>
+ */
+ public function all($params = null, $opts = null)
+ {
+ return $this->requestCollection('get', '/v1/disputes', $params, $opts);
+ }
+
+ /**
+ * Closing the dispute for a charge indicates that you do not have any evidence to
+ * submit and are essentially dismissing the dispute, acknowledging it as lost.
+ *
+ * The status of the dispute will change from <code>needs_response</code> to
+ * <code>lost</code>. <em>Closing a dispute is irreversible</em>.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Dispute
+ */
+ public function close($id, $params = null, $opts = null)
+ {
+ return $this->request('post', $this->buildPath('/v1/disputes/%s/close', $id), $params, $opts);
+ }
+
+ /**
+ * Retrieves the dispute with the given ID.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Dispute
+ */
+ public function retrieve($id, $params = null, $opts = null)
+ {
+ return $this->request('get', $this->buildPath('/v1/disputes/%s', $id), $params, $opts);
+ }
+
+ /**
+ * When you get a dispute, contacting your customer is always the best first step.
+ * If that doesn’t work, you can submit evidence to help us resolve the dispute in
+ * your favor. You can do this in your <a
+ * href="https://dashboard.stripe.com/disputes">dashboard</a>, but if you prefer,
+ * you can use the API to submit evidence programmatically.
+ *
+ * Depending on your dispute type, different evidence fields will give you a better
+ * chance of winning your dispute. To figure out which evidence fields to provide,
+ * see our <a href="/docs/disputes/categories">guide to dispute types</a>.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Dispute
+ */
+ public function update($id, $params = null, $opts = null)
+ {
+ return $this->request('post', $this->buildPath('/v1/disputes/%s', $id), $params, $opts);
+ }
+}
diff --git a/vendor/stripe/stripe-php/lib/Service/EphemeralKeyService.php b/vendor/stripe/stripe-php/lib/Service/EphemeralKeyService.php
index 3ca14c9..1305234 100644
--- a/vendor/stripe/stripe-php/lib/Service/EphemeralKeyService.php
+++ b/vendor/stripe/stripe-php/lib/Service/EphemeralKeyService.php
@@ -1,43 +1,43 @@
-<?php
-
-// File generated from our OpenAPI spec
-
-namespace Stripe\Service;
-
-class EphemeralKeyService extends \Stripe\Service\AbstractService
-{
- /**
- * Invalidates a short-lived API key for a given resource.
- *
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\EphemeralKey
- */
- public function delete($id, $params = null, $opts = null)
- {
- return $this->request('delete', $this->buildPath('/v1/ephemeral_keys/%s', $id), $params, $opts);
- }
-
- /**
- * Creates a short-lived API key for a given resource.
- *
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\EphemeralKey
- */
- public function create($params = null, $opts = null)
- {
- if (!$opts || !isset($opts['stripe_version'])) {
- throw new \Stripe\Exception\InvalidArgumentException('stripe_version must be specified to create an ephemeral key');
- }
-
- return $this->request('post', '/v1/ephemeral_keys', $params, $opts);
- }
-}
+<?php
+
+// File generated from our OpenAPI spec
+
+namespace Stripe\Service;
+
+class EphemeralKeyService extends \Stripe\Service\AbstractService
+{
+ /**
+ * Invalidates a short-lived API key for a given resource.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\EphemeralKey
+ */
+ public function delete($id, $params = null, $opts = null)
+ {
+ return $this->request('delete', $this->buildPath('/v1/ephemeral_keys/%s', $id), $params, $opts);
+ }
+
+ /**
+ * Creates a short-lived API key for a given resource.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\EphemeralKey
+ */
+ public function create($params = null, $opts = null)
+ {
+ if (!$opts || !isset($opts['stripe_version'])) {
+ throw new \Stripe\Exception\InvalidArgumentException('stripe_version must be specified to create an ephemeral key');
+ }
+
+ return $this->request('post', '/v1/ephemeral_keys', $params, $opts);
+ }
+}
diff --git a/vendor/stripe/stripe-php/lib/Service/EventService.php b/vendor/stripe/stripe-php/lib/Service/EventService.php
index 430b35a..fde4429 100644
--- a/vendor/stripe/stripe-php/lib/Service/EventService.php
+++ b/vendor/stripe/stripe-php/lib/Service/EventService.php
@@ -1,44 +1,44 @@
-<?php
-
-// File generated from our OpenAPI spec
-
-namespace Stripe\Service;
-
-class EventService extends \Stripe\Service\AbstractService
-{
- /**
- * List events, going back up to 30 days. Each event data is rendered according to
- * Stripe API version at its creation time, specified in <a
- * href="/docs/api/events/object">event object</a> <code>api_version</code>
- * attribute (not according to your current Stripe API version or
- * <code>Stripe-Version</code> header).
- *
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Collection
- */
- public function all($params = null, $opts = null)
- {
- return $this->requestCollection('get', '/v1/events', $params, $opts);
- }
-
- /**
- * Retrieves the details of an event. Supply the unique identifier of the event,
- * which you might have received in a webhook.
- *
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Event
- */
- public function retrieve($id, $params = null, $opts = null)
- {
- return $this->request('get', $this->buildPath('/v1/events/%s', $id), $params, $opts);
- }
-}
+<?php
+
+// File generated from our OpenAPI spec
+
+namespace Stripe\Service;
+
+class EventService extends \Stripe\Service\AbstractService
+{
+ /**
+ * List events, going back up to 30 days. Each event data is rendered according to
+ * Stripe API version at its creation time, specified in <a
+ * href="/docs/api/events/object">event object</a> <code>api_version</code>
+ * attribute (not according to your current Stripe API version or
+ * <code>Stripe-Version</code> header).
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\Event>
+ */
+ public function all($params = null, $opts = null)
+ {
+ return $this->requestCollection('get', '/v1/events', $params, $opts);
+ }
+
+ /**
+ * Retrieves the details of an event. Supply the unique identifier of the event,
+ * which you might have received in a webhook.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Event
+ */
+ public function retrieve($id, $params = null, $opts = null)
+ {
+ return $this->request('get', $this->buildPath('/v1/events/%s', $id), $params, $opts);
+ }
+}
diff --git a/vendor/stripe/stripe-php/lib/Service/ExchangeRateService.php b/vendor/stripe/stripe-php/lib/Service/ExchangeRateService.php
index fc78410..ae15e75 100644
--- a/vendor/stripe/stripe-php/lib/Service/ExchangeRateService.php
+++ b/vendor/stripe/stripe-php/lib/Service/ExchangeRateService.php
@@ -1,41 +1,41 @@
-<?php
-
-// File generated from our OpenAPI spec
-
-namespace Stripe\Service;
-
-class ExchangeRateService extends \Stripe\Service\AbstractService
-{
- /**
- * Returns a list of objects that contain the rates at which foreign currencies are
- * converted to one another. Only shows the currencies for which Stripe supports.
- *
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Collection
- */
- public function all($params = null, $opts = null)
- {
- return $this->requestCollection('get', '/v1/exchange_rates', $params, $opts);
- }
-
- /**
- * Retrieves the exchange rates from the given currency to every supported
- * currency.
- *
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\ExchangeRate
- */
- public function retrieve($id, $params = null, $opts = null)
- {
- return $this->request('get', $this->buildPath('/v1/exchange_rates/%s', $id), $params, $opts);
- }
-}
+<?php
+
+// File generated from our OpenAPI spec
+
+namespace Stripe\Service;
+
+class ExchangeRateService extends \Stripe\Service\AbstractService
+{
+ /**
+ * Returns a list of objects that contain the rates at which foreign currencies are
+ * converted to one another. Only shows the currencies for which Stripe supports.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\ExchangeRate>
+ */
+ public function all($params = null, $opts = null)
+ {
+ return $this->requestCollection('get', '/v1/exchange_rates', $params, $opts);
+ }
+
+ /**
+ * Retrieves the exchange rates from the given currency to every supported
+ * currency.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\ExchangeRate
+ */
+ public function retrieve($id, $params = null, $opts = null)
+ {
+ return $this->request('get', $this->buildPath('/v1/exchange_rates/%s', $id), $params, $opts);
+ }
+}
diff --git a/vendor/stripe/stripe-php/lib/Service/FileLinkService.php b/vendor/stripe/stripe-php/lib/Service/FileLinkService.php
index 7a3a435..72cf34e 100644
--- a/vendor/stripe/stripe-php/lib/Service/FileLinkService.php
+++ b/vendor/stripe/stripe-php/lib/Service/FileLinkService.php
@@ -1,70 +1,70 @@
-<?php
-
-// File generated from our OpenAPI spec
-
-namespace Stripe\Service;
-
-class FileLinkService extends \Stripe\Service\AbstractService
-{
- /**
- * Returns a list of file links.
- *
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Collection
- */
- public function all($params = null, $opts = null)
- {
- return $this->requestCollection('get', '/v1/file_links', $params, $opts);
- }
-
- /**
- * Creates a new file link object.
- *
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\FileLink
- */
- public function create($params = null, $opts = null)
- {
- return $this->request('post', '/v1/file_links', $params, $opts);
- }
-
- /**
- * Retrieves the file link with the given ID.
- *
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\FileLink
- */
- public function retrieve($id, $params = null, $opts = null)
- {
- return $this->request('get', $this->buildPath('/v1/file_links/%s', $id), $params, $opts);
- }
-
- /**
- * Updates an existing file link object. Expired links can no longer be updated.
- *
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\FileLink
- */
- public function update($id, $params = null, $opts = null)
- {
- return $this->request('post', $this->buildPath('/v1/file_links/%s', $id), $params, $opts);
- }
-}
+<?php
+
+// File generated from our OpenAPI spec
+
+namespace Stripe\Service;
+
+class FileLinkService extends \Stripe\Service\AbstractService
+{
+ /**
+ * Returns a list of file links.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\FileLink>
+ */
+ public function all($params = null, $opts = null)
+ {
+ return $this->requestCollection('get', '/v1/file_links', $params, $opts);
+ }
+
+ /**
+ * Creates a new file link object.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\FileLink
+ */
+ public function create($params = null, $opts = null)
+ {
+ return $this->request('post', '/v1/file_links', $params, $opts);
+ }
+
+ /**
+ * Retrieves the file link with the given ID.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\FileLink
+ */
+ public function retrieve($id, $params = null, $opts = null)
+ {
+ return $this->request('get', $this->buildPath('/v1/file_links/%s', $id), $params, $opts);
+ }
+
+ /**
+ * Updates an existing file link object. Expired links can no longer be updated.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\FileLink
+ */
+ public function update($id, $params = null, $opts = null)
+ {
+ return $this->request('post', $this->buildPath('/v1/file_links/%s', $id), $params, $opts);
+ }
+}
diff --git a/vendor/stripe/stripe-php/lib/Service/FileService.php b/vendor/stripe/stripe-php/lib/Service/FileService.php
index 1484288..578ceb2 100644
--- a/vendor/stripe/stripe-php/lib/Service/FileService.php
+++ b/vendor/stripe/stripe-php/lib/Service/FileService.php
@@ -1,66 +1,66 @@
-<?php
-
-// File generated from our OpenAPI spec
-
-namespace Stripe\Service;
-
-class FileService extends \Stripe\Service\AbstractService
-{
- /**
- * Returns a list of the files that your account has access to. The files are
- * returned sorted by creation date, with the most recently created files appearing
- * first.
- *
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Collection
- */
- public function all($params = null, $opts = null)
- {
- return $this->requestCollection('get', '/v1/files', $params, $opts);
- }
-
- /**
- * Retrieves the details of an existing file object. Supply the unique file ID from
- * a file, and Stripe will return the corresponding file object. To access file
- * contents, see the <a href="/docs/file-upload#download-file-contents">File Upload
- * Guide</a>.
- *
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\File
- */
- public function retrieve($id, $params = null, $opts = null)
- {
- return $this->request('get', $this->buildPath('/v1/files/%s', $id), $params, $opts);
- }
-
- /**
- * Create a file.
- *
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @return \Stripe\File
- */
- public function create($params = null, $opts = null)
- {
- $opts = \Stripe\Util\RequestOptions::parse($opts);
- if (!isset($opts->apiBase)) {
- $opts->apiBase = $this->getClient()->getFilesBase();
- }
-
- // Manually flatten params, otherwise curl's multipart encoder will
- // choke on nested null|arrays.
- $flatParams = \array_column(\Stripe\Util\Util::flattenParams($params), 1, 0);
-
- return $this->request('post', '/v1/files', $flatParams, $opts);
- }
-}
+<?php
+
+// File generated from our OpenAPI spec
+
+namespace Stripe\Service;
+
+class FileService extends \Stripe\Service\AbstractService
+{
+ /**
+ * Returns a list of the files that your account has access to. The files are
+ * returned sorted by creation date, with the most recently created files appearing
+ * first.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\File>
+ */
+ public function all($params = null, $opts = null)
+ {
+ return $this->requestCollection('get', '/v1/files', $params, $opts);
+ }
+
+ /**
+ * Retrieves the details of an existing file object. Supply the unique file ID from
+ * a file, and Stripe will return the corresponding file object. To access file
+ * contents, see the <a href="/docs/file-upload#download-file-contents">File Upload
+ * Guide</a>.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\File
+ */
+ public function retrieve($id, $params = null, $opts = null)
+ {
+ return $this->request('get', $this->buildPath('/v1/files/%s', $id), $params, $opts);
+ }
+
+ /**
+ * Create a file.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @return \Stripe\File
+ */
+ public function create($params = null, $opts = null)
+ {
+ $opts = \Stripe\Util\RequestOptions::parse($opts);
+ if (!isset($opts->apiBase)) {
+ $opts->apiBase = $this->getClient()->getFilesBase();
+ }
+
+ // Manually flatten params, otherwise curl's multipart encoder will
+ // choke on nested null|arrays.
+ $flatParams = \array_column(\Stripe\Util\Util::flattenParams($params), 1, 0);
+
+ return $this->request('post', '/v1/files', $flatParams, $opts);
+ }
+}
diff --git a/vendor/stripe/stripe-php/lib/Service/FinancialConnections/AccountService.php b/vendor/stripe/stripe-php/lib/Service/FinancialConnections/AccountService.php
new file mode 100644
index 0000000..d50429c
--- /dev/null
+++ b/vendor/stripe/stripe-php/lib/Service/FinancialConnections/AccountService.php
@@ -0,0 +1,58 @@
+<?php
+
+// File generated from our OpenAPI spec
+
+namespace Stripe\Service\FinancialConnections;
+
+class AccountService extends \Stripe\Service\AbstractService
+{
+ /**
+ * Disables your access to a Financial Connections <code>Account</code>. You will
+ * no longer be able to access data associated with the account (e.g. balances,
+ * transactions).
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\FinancialConnections\Account
+ */
+ public function disconnect($id, $params = null, $opts = null)
+ {
+ return $this->request('post', $this->buildPath('/v1/financial_connections/accounts/%s/disconnect', $id), $params, $opts);
+ }
+
+ /**
+ * Refreshes the data associated with a Financial Connections <code>Account</code>.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\FinancialConnections\Account
+ */
+ public function refresh($id, $params = null, $opts = null)
+ {
+ return $this->request('post', $this->buildPath('/v1/financial_connections/accounts/%s/refresh', $id), $params, $opts);
+ }
+
+ /**
+ * Retrieves the details of an Financial Connections <code>Account</code>.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\FinancialConnections\Account
+ */
+ public function retrieve($id, $params = null, $opts = null)
+ {
+ return $this->request('get', $this->buildPath('/v1/financial_connections/accounts/%s', $id), $params, $opts);
+ }
+}
diff --git a/vendor/stripe/stripe-php/lib/Service/FinancialConnections/FinancialConnectionsServiceFactory.php b/vendor/stripe/stripe-php/lib/Service/FinancialConnections/FinancialConnectionsServiceFactory.php
new file mode 100644
index 0000000..c923c02
--- /dev/null
+++ b/vendor/stripe/stripe-php/lib/Service/FinancialConnections/FinancialConnectionsServiceFactory.php
@@ -0,0 +1,27 @@
+<?php
+
+// File generated from our OpenAPI spec
+
+namespace Stripe\Service\FinancialConnections;
+
+/**
+ * Service factory class for API resources in the FinancialConnections namespace.
+ *
+ * @property AccountService $accounts
+ * @property SessionService $sessions
+ */
+class FinancialConnectionsServiceFactory extends \Stripe\Service\AbstractServiceFactory
+{
+ /**
+ * @var array<string, string>
+ */
+ private static $classMap = [
+ 'accounts' => AccountService::class,
+ 'sessions' => SessionService::class,
+ ];
+
+ protected function getServiceClass($name)
+ {
+ return \array_key_exists($name, self::$classMap) ? self::$classMap[$name] : null;
+ }
+}
diff --git a/vendor/stripe/stripe-php/lib/Service/FinancialConnections/SessionService.php b/vendor/stripe/stripe-php/lib/Service/FinancialConnections/SessionService.php
new file mode 100644
index 0000000..fd109f6
--- /dev/null
+++ b/vendor/stripe/stripe-php/lib/Service/FinancialConnections/SessionService.php
@@ -0,0 +1,41 @@
+<?php
+
+// File generated from our OpenAPI spec
+
+namespace Stripe\Service\FinancialConnections;
+
+class SessionService extends \Stripe\Service\AbstractService
+{
+ /**
+ * To launch the Financial Connections authorization flow, create a
+ * <code>Session</code>. The session’s <code>client_secret</code> can be used to
+ * launch the flow using Stripe.js.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\FinancialConnections\Session
+ */
+ public function create($params = null, $opts = null)
+ {
+ return $this->request('post', '/v1/financial_connections/sessions', $params, $opts);
+ }
+
+ /**
+ * Retrieves the details of a Financial Connections <code>Session</code>.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\FinancialConnections\Session
+ */
+ public function retrieve($id, $params = null, $opts = null)
+ {
+ return $this->request('get', $this->buildPath('/v1/financial_connections/sessions/%s', $id), $params, $opts);
+ }
+}
diff --git a/vendor/stripe/stripe-php/lib/Service/Identity/IdentityServiceFactory.php b/vendor/stripe/stripe-php/lib/Service/Identity/IdentityServiceFactory.php
index cf63146..744d61d 100644
--- a/vendor/stripe/stripe-php/lib/Service/Identity/IdentityServiceFactory.php
+++ b/vendor/stripe/stripe-php/lib/Service/Identity/IdentityServiceFactory.php
@@ -1,27 +1,27 @@
-<?php
-
-// File generated from our OpenAPI spec
-
-namespace Stripe\Service\Identity;
-
-/**
- * Service factory class for API resources in the Identity namespace.
- *
- * @property VerificationReportService $verificationReports
- * @property VerificationSessionService $verificationSessions
- */
-class IdentityServiceFactory extends \Stripe\Service\AbstractServiceFactory
-{
- /**
- * @var array<string, string>
- */
- private static $classMap = [
- 'verificationReports' => VerificationReportService::class,
- 'verificationSessions' => VerificationSessionService::class,
- ];
-
- protected function getServiceClass($name)
- {
- return \array_key_exists($name, self::$classMap) ? self::$classMap[$name] : null;
- }
-}
+<?php
+
+// File generated from our OpenAPI spec
+
+namespace Stripe\Service\Identity;
+
+/**
+ * Service factory class for API resources in the Identity namespace.
+ *
+ * @property VerificationReportService $verificationReports
+ * @property VerificationSessionService $verificationSessions
+ */
+class IdentityServiceFactory extends \Stripe\Service\AbstractServiceFactory
+{
+ /**
+ * @var array<string, string>
+ */
+ private static $classMap = [
+ 'verificationReports' => VerificationReportService::class,
+ 'verificationSessions' => VerificationSessionService::class,
+ ];
+
+ protected function getServiceClass($name)
+ {
+ return \array_key_exists($name, self::$classMap) ? self::$classMap[$name] : null;
+ }
+}
diff --git a/vendor/stripe/stripe-php/lib/Service/Identity/VerificationReportService.php b/vendor/stripe/stripe-php/lib/Service/Identity/VerificationReportService.php
index 0393cd5..5b251f5 100644
--- a/vendor/stripe/stripe-php/lib/Service/Identity/VerificationReportService.php
+++ b/vendor/stripe/stripe-php/lib/Service/Identity/VerificationReportService.php
@@ -1,39 +1,39 @@
-<?php
-
-// File generated from our OpenAPI spec
-
-namespace Stripe\Service\Identity;
-
-class VerificationReportService extends \Stripe\Service\AbstractService
-{
- /**
- * List all verification reports.
- *
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Collection
- */
- public function all($params = null, $opts = null)
- {
- return $this->requestCollection('get', '/v1/identity/verification_reports', $params, $opts);
- }
-
- /**
- * Retrieves an existing VerificationReport.
- *
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Identity\VerificationReport
- */
- public function retrieve($id, $params = null, $opts = null)
- {
- return $this->request('get', $this->buildPath('/v1/identity/verification_reports/%s', $id), $params, $opts);
- }
-}
+<?php
+
+// File generated from our OpenAPI spec
+
+namespace Stripe\Service\Identity;
+
+class VerificationReportService extends \Stripe\Service\AbstractService
+{
+ /**
+ * List all verification reports.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\Identity\VerificationReport>
+ */
+ public function all($params = null, $opts = null)
+ {
+ return $this->requestCollection('get', '/v1/identity/verification_reports', $params, $opts);
+ }
+
+ /**
+ * Retrieves an existing VerificationReport.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Identity\VerificationReport
+ */
+ public function retrieve($id, $params = null, $opts = null)
+ {
+ return $this->request('get', $this->buildPath('/v1/identity/verification_reports/%s', $id), $params, $opts);
+ }
+}
diff --git a/vendor/stripe/stripe-php/lib/Service/Identity/VerificationSessionService.php b/vendor/stripe/stripe-php/lib/Service/Identity/VerificationSessionService.php
index 1a763be..4efb30f 100644
--- a/vendor/stripe/stripe-php/lib/Service/Identity/VerificationSessionService.php
+++ b/vendor/stripe/stripe-php/lib/Service/Identity/VerificationSessionService.php
@@ -1,146 +1,146 @@
-<?php
-
-// File generated from our OpenAPI spec
-
-namespace Stripe\Service\Identity;
-
-class VerificationSessionService extends \Stripe\Service\AbstractService
-{
- /**
- * Returns a list of VerificationSessions.
- *
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Collection
- */
- public function all($params = null, $opts = null)
- {
- return $this->requestCollection('get', '/v1/identity/verification_sessions', $params, $opts);
- }
-
- /**
- * A VerificationSession object can be canceled when it is in
- * <code>requires_input</code> <a
- * href="/docs/identity/how-sessions-work">status</a>.
- *
- * Once canceled, future submission attempts are disabled. This cannot be undone.
- * <a href="/docs/identity/verification-sessions#cancel">Learn more</a>.
- *
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Identity\VerificationSession
- */
- public function cancel($id, $params = null, $opts = null)
- {
- return $this->request('post', $this->buildPath('/v1/identity/verification_sessions/%s/cancel', $id), $params, $opts);
- }
-
- /**
- * Creates a VerificationSession object.
- *
- * After the VerificationSession is created, display a verification modal using the
- * session <code>client_secret</code> or send your users to the session’s
- * <code>url</code>.
- *
- * If your API key is in test mode, verification checks won’t actually process,
- * though everything else will occur as if in live mode.
- *
- * Related guide: <a href="/docs/identity/verify-identity-documents">Verify your
- * users’ identity documents</a>.
- *
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Identity\VerificationSession
- */
- public function create($params = null, $opts = null)
- {
- return $this->request('post', '/v1/identity/verification_sessions', $params, $opts);
- }
-
- /**
- * Redact a VerificationSession to remove all collected information from Stripe.
- * This will redact the VerificationSession and all objects related to it,
- * including VerificationReports, Events, request logs, etc.
- *
- * A VerificationSession object can be redacted when it is in
- * <code>requires_input</code> or <code>verified</code> <a
- * href="/docs/identity/how-sessions-work">status</a>. Redacting a
- * VerificationSession in <code>requires_action</code> state will automatically
- * cancel it.
- *
- * The redaction process may take up to four days. When the redaction process is in
- * progress, the VerificationSession’s <code>redaction.status</code> field will be
- * set to <code>processing</code>; when the process is finished, it will change to
- * <code>redacted</code> and an <code>identity.verification_session.redacted</code>
- * event will be emitted.
- *
- * Redaction is irreversible. Redacted objects are still accessible in the Stripe
- * API, but all the fields that contain personal data will be replaced by the
- * string <code>[redacted]</code> or a similar placeholder. The
- * <code>metadata</code> field will also be erased. Redacted objects cannot be
- * updated or used for any purpose.
- *
- * <a href="/docs/identity/verification-sessions#redact">Learn more</a>.
- *
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Identity\VerificationSession
- */
- public function redact($id, $params = null, $opts = null)
- {
- return $this->request('post', $this->buildPath('/v1/identity/verification_sessions/%s/redact', $id), $params, $opts);
- }
-
- /**
- * Retrieves the details of a VerificationSession that was previously created.
- *
- * When the session status is <code>requires_input</code>, you can use this method
- * to retrieve a valid <code>client_secret</code> or <code>url</code> to allow
- * re-submission.
- *
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Identity\VerificationSession
- */
- public function retrieve($id, $params = null, $opts = null)
- {
- return $this->request('get', $this->buildPath('/v1/identity/verification_sessions/%s', $id), $params, $opts);
- }
-
- /**
- * Updates a VerificationSession object.
- *
- * When the session status is <code>requires_input</code>, you can use this method
- * to update the verification check and options.
- *
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Identity\VerificationSession
- */
- public function update($id, $params = null, $opts = null)
- {
- return $this->request('post', $this->buildPath('/v1/identity/verification_sessions/%s', $id), $params, $opts);
- }
-}
+<?php
+
+// File generated from our OpenAPI spec
+
+namespace Stripe\Service\Identity;
+
+class VerificationSessionService extends \Stripe\Service\AbstractService
+{
+ /**
+ * Returns a list of VerificationSessions.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\Identity\VerificationSession>
+ */
+ public function all($params = null, $opts = null)
+ {
+ return $this->requestCollection('get', '/v1/identity/verification_sessions', $params, $opts);
+ }
+
+ /**
+ * A VerificationSession object can be canceled when it is in
+ * <code>requires_input</code> <a
+ * href="/docs/identity/how-sessions-work">status</a>.
+ *
+ * Once canceled, future submission attempts are disabled. This cannot be undone.
+ * <a href="/docs/identity/verification-sessions#cancel">Learn more</a>.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Identity\VerificationSession
+ */
+ public function cancel($id, $params = null, $opts = null)
+ {
+ return $this->request('post', $this->buildPath('/v1/identity/verification_sessions/%s/cancel', $id), $params, $opts);
+ }
+
+ /**
+ * Creates a VerificationSession object.
+ *
+ * After the VerificationSession is created, display a verification modal using the
+ * session <code>client_secret</code> or send your users to the session’s
+ * <code>url</code>.
+ *
+ * If your API key is in test mode, verification checks won’t actually process,
+ * though everything else will occur as if in live mode.
+ *
+ * Related guide: <a href="/docs/identity/verify-identity-documents">Verify your
+ * users’ identity documents</a>.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Identity\VerificationSession
+ */
+ public function create($params = null, $opts = null)
+ {
+ return $this->request('post', '/v1/identity/verification_sessions', $params, $opts);
+ }
+
+ /**
+ * Redact a VerificationSession to remove all collected information from Stripe.
+ * This will redact the VerificationSession and all objects related to it,
+ * including VerificationReports, Events, request logs, etc.
+ *
+ * A VerificationSession object can be redacted when it is in
+ * <code>requires_input</code> or <code>verified</code> <a
+ * href="/docs/identity/how-sessions-work">status</a>. Redacting a
+ * VerificationSession in <code>requires_action</code> state will automatically
+ * cancel it.
+ *
+ * The redaction process may take up to four days. When the redaction process is in
+ * progress, the VerificationSession’s <code>redaction.status</code> field will be
+ * set to <code>processing</code>; when the process is finished, it will change to
+ * <code>redacted</code> and an <code>identity.verification_session.redacted</code>
+ * event will be emitted.
+ *
+ * Redaction is irreversible. Redacted objects are still accessible in the Stripe
+ * API, but all the fields that contain personal data will be replaced by the
+ * string <code>[redacted]</code> or a similar placeholder. The
+ * <code>metadata</code> field will also be erased. Redacted objects cannot be
+ * updated or used for any purpose.
+ *
+ * <a href="/docs/identity/verification-sessions#redact">Learn more</a>.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Identity\VerificationSession
+ */
+ public function redact($id, $params = null, $opts = null)
+ {
+ return $this->request('post', $this->buildPath('/v1/identity/verification_sessions/%s/redact', $id), $params, $opts);
+ }
+
+ /**
+ * Retrieves the details of a VerificationSession that was previously created.
+ *
+ * When the session status is <code>requires_input</code>, you can use this method
+ * to retrieve a valid <code>client_secret</code> or <code>url</code> to allow
+ * re-submission.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Identity\VerificationSession
+ */
+ public function retrieve($id, $params = null, $opts = null)
+ {
+ return $this->request('get', $this->buildPath('/v1/identity/verification_sessions/%s', $id), $params, $opts);
+ }
+
+ /**
+ * Updates a VerificationSession object.
+ *
+ * When the session status is <code>requires_input</code>, you can use this method
+ * to update the verification check and options.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Identity\VerificationSession
+ */
+ public function update($id, $params = null, $opts = null)
+ {
+ return $this->request('post', $this->buildPath('/v1/identity/verification_sessions/%s', $id), $params, $opts);
+ }
+}
diff --git a/vendor/stripe/stripe-php/lib/Service/InvoiceItemService.php b/vendor/stripe/stripe-php/lib/Service/InvoiceItemService.php
index 0f0b9e9..c839bab 100644
--- a/vendor/stripe/stripe-php/lib/Service/InvoiceItemService.php
+++ b/vendor/stripe/stripe-php/lib/Service/InvoiceItemService.php
@@ -1,93 +1,93 @@
-<?php
-
-// File generated from our OpenAPI spec
-
-namespace Stripe\Service;
-
-class InvoiceItemService extends \Stripe\Service\AbstractService
-{
- /**
- * Returns a list of your invoice items. Invoice items are returned sorted by
- * creation date, with the most recently created invoice items appearing first.
- *
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Collection
- */
- public function all($params = null, $opts = null)
- {
- return $this->requestCollection('get', '/v1/invoiceitems', $params, $opts);
- }
-
- /**
- * Creates an item to be added to a draft invoice (up to 250 items per invoice). If
- * no invoice is specified, the item will be on the next invoice created for the
- * customer specified.
- *
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\InvoiceItem
- */
- public function create($params = null, $opts = null)
- {
- return $this->request('post', '/v1/invoiceitems', $params, $opts);
- }
-
- /**
- * Deletes an invoice item, removing it from an invoice. Deleting invoice items is
- * only possible when they’re not attached to invoices, or if it’s attached to a
- * draft invoice.
- *
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\InvoiceItem
- */
- public function delete($id, $params = null, $opts = null)
- {
- return $this->request('delete', $this->buildPath('/v1/invoiceitems/%s', $id), $params, $opts);
- }
-
- /**
- * Retrieves the invoice item with the given ID.
- *
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\InvoiceItem
- */
- public function retrieve($id, $params = null, $opts = null)
- {
- return $this->request('get', $this->buildPath('/v1/invoiceitems/%s', $id), $params, $opts);
- }
-
- /**
- * Updates the amount or description of an invoice item on an upcoming invoice.
- * Updating an invoice item is only possible before the invoice it’s attached to is
- * closed.
- *
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\InvoiceItem
- */
- public function update($id, $params = null, $opts = null)
- {
- return $this->request('post', $this->buildPath('/v1/invoiceitems/%s', $id), $params, $opts);
- }
-}
+<?php
+
+// File generated from our OpenAPI spec
+
+namespace Stripe\Service;
+
+class InvoiceItemService extends \Stripe\Service\AbstractService
+{
+ /**
+ * Returns a list of your invoice items. Invoice items are returned sorted by
+ * creation date, with the most recently created invoice items appearing first.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\InvoiceItem>
+ */
+ public function all($params = null, $opts = null)
+ {
+ return $this->requestCollection('get', '/v1/invoiceitems', $params, $opts);
+ }
+
+ /**
+ * Creates an item to be added to a draft invoice (up to 250 items per invoice). If
+ * no invoice is specified, the item will be on the next invoice created for the
+ * customer specified.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\InvoiceItem
+ */
+ public function create($params = null, $opts = null)
+ {
+ return $this->request('post', '/v1/invoiceitems', $params, $opts);
+ }
+
+ /**
+ * Deletes an invoice item, removing it from an invoice. Deleting invoice items is
+ * only possible when they’re not attached to invoices, or if it’s attached to a
+ * draft invoice.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\InvoiceItem
+ */
+ public function delete($id, $params = null, $opts = null)
+ {
+ return $this->request('delete', $this->buildPath('/v1/invoiceitems/%s', $id), $params, $opts);
+ }
+
+ /**
+ * Retrieves the invoice item with the given ID.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\InvoiceItem
+ */
+ public function retrieve($id, $params = null, $opts = null)
+ {
+ return $this->request('get', $this->buildPath('/v1/invoiceitems/%s', $id), $params, $opts);
+ }
+
+ /**
+ * Updates the amount or description of an invoice item on an upcoming invoice.
+ * Updating an invoice item is only possible before the invoice it’s attached to is
+ * closed.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\InvoiceItem
+ */
+ public function update($id, $params = null, $opts = null)
+ {
+ return $this->request('post', $this->buildPath('/v1/invoiceitems/%s', $id), $params, $opts);
+ }
+}
diff --git a/vendor/stripe/stripe-php/lib/Service/InvoiceService.php b/vendor/stripe/stripe-php/lib/Service/InvoiceService.php
index f647b28..11f188f 100644
--- a/vendor/stripe/stripe-php/lib/Service/InvoiceService.php
+++ b/vendor/stripe/stripe-php/lib/Service/InvoiceService.php
@@ -1,272 +1,292 @@
-<?php
-
-// File generated from our OpenAPI spec
-
-namespace Stripe\Service;
-
-class InvoiceService extends \Stripe\Service\AbstractService
-{
- /**
- * You can list all invoices, or list the invoices for a specific customer. The
- * invoices are returned sorted by creation date, with the most recently created
- * invoices appearing first.
- *
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Collection
- */
- public function all($params = null, $opts = null)
- {
- return $this->requestCollection('get', '/v1/invoices', $params, $opts);
- }
-
- /**
- * When retrieving an invoice, you’ll get a <strong>lines</strong> property
- * containing the total count of line items and the first handful of those items.
- * There is also a URL where you can retrieve the full (paginated) list of line
- * items.
- *
- * @param string $parentId
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Collection
- */
- public function allLines($parentId, $params = null, $opts = null)
- {
- return $this->requestCollection('get', $this->buildPath('/v1/invoices/%s/lines', $parentId), $params, $opts);
- }
-
- /**
- * This endpoint creates a draft invoice for a given customer. The draft invoice
- * created pulls in all pending invoice items on that customer, including
- * prorations. The invoice remains a draft until you <a
- * href="#finalize_invoice">finalize</a> the invoice, which allows you to <a
- * href="#pay_invoice">pay</a> or <a href="#send_invoice">send</a> the invoice to
- * your customers.
- *
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Invoice
- */
- public function create($params = null, $opts = null)
- {
- return $this->request('post', '/v1/invoices', $params, $opts);
- }
-
- /**
- * Permanently deletes a one-off invoice draft. This cannot be undone. Attempts to
- * delete invoices that are no longer in a draft state will fail; once an invoice
- * has been finalized or if an invoice is for a subscription, it must be <a
- * href="#void_invoice">voided</a>.
- *
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Invoice
- */
- public function delete($id, $params = null, $opts = null)
- {
- return $this->request('delete', $this->buildPath('/v1/invoices/%s', $id), $params, $opts);
- }
-
- /**
- * Stripe automatically finalizes drafts before sending and attempting payment on
- * invoices. However, if you’d like to finalize a draft invoice manually, you can
- * do so using this method.
- *
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Invoice
- */
- public function finalizeInvoice($id, $params = null, $opts = null)
- {
- return $this->request('post', $this->buildPath('/v1/invoices/%s/finalize', $id), $params, $opts);
- }
-
- /**
- * Marking an invoice as uncollectible is useful for keeping track of bad debts
- * that can be written off for accounting purposes.
- *
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Invoice
- */
- public function markUncollectible($id, $params = null, $opts = null)
- {
- return $this->request('post', $this->buildPath('/v1/invoices/%s/mark_uncollectible', $id), $params, $opts);
- }
-
- /**
- * Stripe automatically creates and then attempts to collect payment on invoices
- * for customers on subscriptions according to your <a
- * href="https://dashboard.stripe.com/account/billing/automatic">subscriptions
- * settings</a>. However, if you’d like to attempt payment on an invoice out of the
- * normal collection schedule or for some other reason, you can do so.
- *
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Invoice
- */
- public function pay($id, $params = null, $opts = null)
- {
- return $this->request('post', $this->buildPath('/v1/invoices/%s/pay', $id), $params, $opts);
- }
-
- /**
- * Retrieves the invoice with the given ID.
- *
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Invoice
- */
- public function retrieve($id, $params = null, $opts = null)
- {
- return $this->request('get', $this->buildPath('/v1/invoices/%s', $id), $params, $opts);
- }
-
- /**
- * Stripe will automatically send invoices to customers according to your <a
- * href="https://dashboard.stripe.com/account/billing/automatic">subscriptions
- * settings</a>. However, if you’d like to manually send an invoice to your
- * customer out of the normal schedule, you can do so. When sending invoices that
- * have already been paid, there will be no reference to the payment in the email.
- *
- * Requests made in test-mode result in no emails being sent, despite sending an
- * <code>invoice.sent</code> event.
- *
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Invoice
- */
- public function sendInvoice($id, $params = null, $opts = null)
- {
- return $this->request('post', $this->buildPath('/v1/invoices/%s/send', $id), $params, $opts);
- }
-
- /**
- * At any time, you can preview the upcoming invoice for a customer. This will show
- * you all the charges that are pending, including subscription renewal charges,
- * invoice item charges, etc. It will also show you any discounts that are
- * applicable to the invoice.
- *
- * Note that when you are viewing an upcoming invoice, you are simply viewing a
- * preview – the invoice has not yet been created. As such, the upcoming invoice
- * will not show up in invoice listing calls, and you cannot use the API to pay or
- * edit the invoice. If you want to change the amount that your customer will be
- * billed, you can add, remove, or update pending invoice items, or update the
- * customer’s discount.
- *
- * You can preview the effects of updating a subscription, including a preview of
- * what proration will take place. To ensure that the actual proration is
- * calculated exactly the same as the previewed proration, you should pass a
- * <code>proration_date</code> parameter when doing the actual subscription update.
- * The value passed in should be the same as the
- * <code>subscription_proration_date</code> returned on the upcoming invoice
- * resource. The recommended way to get only the prorations being previewed is to
- * consider only proration line items where <code>period[start]</code> is equal to
- * the <code>subscription_proration_date</code> on the upcoming invoice resource.
- *
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Invoice
- */
- public function upcoming($params = null, $opts = null)
- {
- return $this->request('get', '/v1/invoices/upcoming', $params, $opts);
- }
-
- /**
- * When retrieving an upcoming invoice, you’ll get a <strong>lines</strong>
- * property containing the total count of line items and the first handful of those
- * items. There is also a URL where you can retrieve the full (paginated) list of
- * line items.
- *
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Invoice
- */
- public function upcomingLines($params = null, $opts = null)
- {
- return $this->request('get', '/v1/invoices/upcoming/lines', $params, $opts);
- }
-
- /**
- * Draft invoices are fully editable. Once an invoice is <a
- * href="/docs/billing/invoices/workflow#finalized">finalized</a>, monetary values,
- * as well as <code>collection_method</code>, become uneditable.
- *
- * If you would like to stop the Stripe Billing engine from automatically
- * finalizing, reattempting payments on, sending reminders for, or <a
- * href="/docs/billing/invoices/reconciliation">automatically reconciling</a>
- * invoices, pass <code>auto_advance=false</code>.
- *
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Invoice
- */
- public function update($id, $params = null, $opts = null)
- {
- return $this->request('post', $this->buildPath('/v1/invoices/%s', $id), $params, $opts);
- }
-
- /**
- * Mark a finalized invoice as void. This cannot be undone. Voiding an invoice is
- * similar to <a href="#delete_invoice">deletion</a>, however it only applies to
- * finalized invoices and maintains a papertrail where the invoice can still be
- * found.
- *
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Invoice
- */
- public function voidInvoice($id, $params = null, $opts = null)
- {
- return $this->request('post', $this->buildPath('/v1/invoices/%s/void', $id), $params, $opts);
- }
-}
+<?php
+
+// File generated from our OpenAPI spec
+
+namespace Stripe\Service;
+
+class InvoiceService extends \Stripe\Service\AbstractService
+{
+ /**
+ * You can list all invoices, or list the invoices for a specific customer. The
+ * invoices are returned sorted by creation date, with the most recently created
+ * invoices appearing first.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\Invoice>
+ */
+ public function all($params = null, $opts = null)
+ {
+ return $this->requestCollection('get', '/v1/invoices', $params, $opts);
+ }
+
+ /**
+ * When retrieving an invoice, you’ll get a <strong>lines</strong> property
+ * containing the total count of line items and the first handful of those items.
+ * There is also a URL where you can retrieve the full (paginated) list of line
+ * items.
+ *
+ * @param string $parentId
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\LineItem>
+ */
+ public function allLines($parentId, $params = null, $opts = null)
+ {
+ return $this->requestCollection('get', $this->buildPath('/v1/invoices/%s/lines', $parentId), $params, $opts);
+ }
+
+ /**
+ * This endpoint creates a draft invoice for a given customer. The draft invoice
+ * created pulls in all pending invoice items on that customer, including
+ * prorations. The invoice remains a draft until you <a
+ * href="#finalize_invoice">finalize</a> the invoice, which allows you to <a
+ * href="#pay_invoice">pay</a> or <a href="#send_invoice">send</a> the invoice to
+ * your customers.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Invoice
+ */
+ public function create($params = null, $opts = null)
+ {
+ return $this->request('post', '/v1/invoices', $params, $opts);
+ }
+
+ /**
+ * Permanently deletes a one-off invoice draft. This cannot be undone. Attempts to
+ * delete invoices that are no longer in a draft state will fail; once an invoice
+ * has been finalized or if an invoice is for a subscription, it must be <a
+ * href="#void_invoice">voided</a>.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Invoice
+ */
+ public function delete($id, $params = null, $opts = null)
+ {
+ return $this->request('delete', $this->buildPath('/v1/invoices/%s', $id), $params, $opts);
+ }
+
+ /**
+ * Stripe automatically finalizes drafts before sending and attempting payment on
+ * invoices. However, if you’d like to finalize a draft invoice manually, you can
+ * do so using this method.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Invoice
+ */
+ public function finalizeInvoice($id, $params = null, $opts = null)
+ {
+ return $this->request('post', $this->buildPath('/v1/invoices/%s/finalize', $id), $params, $opts);
+ }
+
+ /**
+ * Marking an invoice as uncollectible is useful for keeping track of bad debts
+ * that can be written off for accounting purposes.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Invoice
+ */
+ public function markUncollectible($id, $params = null, $opts = null)
+ {
+ return $this->request('post', $this->buildPath('/v1/invoices/%s/mark_uncollectible', $id), $params, $opts);
+ }
+
+ /**
+ * Stripe automatically creates and then attempts to collect payment on invoices
+ * for customers on subscriptions according to your <a
+ * href="https://dashboard.stripe.com/account/billing/automatic">subscriptions
+ * settings</a>. However, if you’d like to attempt payment on an invoice out of the
+ * normal collection schedule or for some other reason, you can do so.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Invoice
+ */
+ public function pay($id, $params = null, $opts = null)
+ {
+ return $this->request('post', $this->buildPath('/v1/invoices/%s/pay', $id), $params, $opts);
+ }
+
+ /**
+ * Retrieves the invoice with the given ID.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Invoice
+ */
+ public function retrieve($id, $params = null, $opts = null)
+ {
+ return $this->request('get', $this->buildPath('/v1/invoices/%s', $id), $params, $opts);
+ }
+
+ /**
+ * Search for invoices you’ve previously created using Stripe’s <a
+ * href="/docs/search#search-query-language">Search Query Language</a>. Don’t use
+ * search in read-after-write flows where strict consistency is necessary. Under
+ * normal operating conditions, data is searchable in less than a minute.
+ * Occasionally, propagation of new or updated data can be up to an hour behind
+ * during outages. Search functionality is not available to merchants in India.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\SearchResult<\Stripe\Invoice>
+ */
+ public function search($params = null, $opts = null)
+ {
+ return $this->requestSearchResult('get', '/v1/invoices/search', $params, $opts);
+ }
+
+ /**
+ * Stripe will automatically send invoices to customers according to your <a
+ * href="https://dashboard.stripe.com/account/billing/automatic">subscriptions
+ * settings</a>. However, if you’d like to manually send an invoice to your
+ * customer out of the normal schedule, you can do so. When sending invoices that
+ * have already been paid, there will be no reference to the payment in the email.
+ *
+ * Requests made in test-mode result in no emails being sent, despite sending an
+ * <code>invoice.sent</code> event.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Invoice
+ */
+ public function sendInvoice($id, $params = null, $opts = null)
+ {
+ return $this->request('post', $this->buildPath('/v1/invoices/%s/send', $id), $params, $opts);
+ }
+
+ /**
+ * At any time, you can preview the upcoming invoice for a customer. This will show
+ * you all the charges that are pending, including subscription renewal charges,
+ * invoice item charges, etc. It will also show you any discounts that are
+ * applicable to the invoice.
+ *
+ * Note that when you are viewing an upcoming invoice, you are simply viewing a
+ * preview – the invoice has not yet been created. As such, the upcoming invoice
+ * will not show up in invoice listing calls, and you cannot use the API to pay or
+ * edit the invoice. If you want to change the amount that your customer will be
+ * billed, you can add, remove, or update pending invoice items, or update the
+ * customer’s discount.
+ *
+ * You can preview the effects of updating a subscription, including a preview of
+ * what proration will take place. To ensure that the actual proration is
+ * calculated exactly the same as the previewed proration, you should pass a
+ * <code>proration_date</code> parameter when doing the actual subscription update.
+ * The value passed in should be the same as the
+ * <code>subscription_proration_date</code> returned on the upcoming invoice
+ * resource. The recommended way to get only the prorations being previewed is to
+ * consider only proration line items where <code>period[start]</code> is equal to
+ * the <code>subscription_proration_date</code> on the upcoming invoice resource.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Invoice
+ */
+ public function upcoming($params = null, $opts = null)
+ {
+ return $this->request('get', '/v1/invoices/upcoming', $params, $opts);
+ }
+
+ /**
+ * When retrieving an upcoming invoice, you’ll get a <strong>lines</strong>
+ * property containing the total count of line items and the first handful of those
+ * items. There is also a URL where you can retrieve the full (paginated) list of
+ * line items.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\Invoice>
+ */
+ public function upcomingLines($params = null, $opts = null)
+ {
+ return $this->requestCollection('get', '/v1/invoices/upcoming/lines', $params, $opts);
+ }
+
+ /**
+ * Draft invoices are fully editable. Once an invoice is <a
+ * href="/docs/billing/invoices/workflow#finalized">finalized</a>, monetary values,
+ * as well as <code>collection_method</code>, become uneditable.
+ *
+ * If you would like to stop the Stripe Billing engine from automatically
+ * finalizing, reattempting payments on, sending reminders for, or <a
+ * href="/docs/billing/invoices/reconciliation">automatically reconciling</a>
+ * invoices, pass <code>auto_advance=false</code>.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Invoice
+ */
+ public function update($id, $params = null, $opts = null)
+ {
+ return $this->request('post', $this->buildPath('/v1/invoices/%s', $id), $params, $opts);
+ }
+
+ /**
+ * Mark a finalized invoice as void. This cannot be undone. Voiding an invoice is
+ * similar to <a href="#delete_invoice">deletion</a>, however it only applies to
+ * finalized invoices and maintains a papertrail where the invoice can still be
+ * found.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Invoice
+ */
+ public function voidInvoice($id, $params = null, $opts = null)
+ {
+ return $this->request('post', $this->buildPath('/v1/invoices/%s/void', $id), $params, $opts);
+ }
+}
diff --git a/vendor/stripe/stripe-php/lib/Service/Issuing/AuthorizationService.php b/vendor/stripe/stripe-php/lib/Service/Issuing/AuthorizationService.php
index 6fff70e..f28b282 100644
--- a/vendor/stripe/stripe-php/lib/Service/Issuing/AuthorizationService.php
+++ b/vendor/stripe/stripe-php/lib/Service/Issuing/AuthorizationService.php
@@ -1,97 +1,97 @@
-<?php
-
-// File generated from our OpenAPI spec
-
-namespace Stripe\Service\Issuing;
-
-class AuthorizationService extends \Stripe\Service\AbstractService
-{
- /**
- * Returns a list of Issuing <code>Authorization</code> objects. The objects are
- * sorted in descending order by creation date, with the most recently created
- * object appearing first.
- *
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Collection
- */
- public function all($params = null, $opts = null)
- {
- return $this->requestCollection('get', '/v1/issuing/authorizations', $params, $opts);
- }
-
- /**
- * Approves a pending Issuing <code>Authorization</code> object. This request
- * should be made within the timeout window of the <a
- * href="/docs/issuing/controls/real-time-authorizations">real-time
- * authorization</a> flow.
- *
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Issuing\Authorization
- */
- public function approve($id, $params = null, $opts = null)
- {
- return $this->request('post', $this->buildPath('/v1/issuing/authorizations/%s/approve', $id), $params, $opts);
- }
-
- /**
- * Declines a pending Issuing <code>Authorization</code> object. This request
- * should be made within the timeout window of the <a
- * href="/docs/issuing/controls/real-time-authorizations">real time
- * authorization</a> flow.
- *
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Issuing\Authorization
- */
- public function decline($id, $params = null, $opts = null)
- {
- return $this->request('post', $this->buildPath('/v1/issuing/authorizations/%s/decline', $id), $params, $opts);
- }
-
- /**
- * Retrieves an Issuing <code>Authorization</code> object.
- *
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Issuing\Authorization
- */
- public function retrieve($id, $params = null, $opts = null)
- {
- return $this->request('get', $this->buildPath('/v1/issuing/authorizations/%s', $id), $params, $opts);
- }
-
- /**
- * Updates the specified Issuing <code>Authorization</code> object by setting the
- * values of the parameters passed. Any parameters not provided will be left
- * unchanged.
- *
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Issuing\Authorization
- */
- public function update($id, $params = null, $opts = null)
- {
- return $this->request('post', $this->buildPath('/v1/issuing/authorizations/%s', $id), $params, $opts);
- }
-}
+<?php
+
+// File generated from our OpenAPI spec
+
+namespace Stripe\Service\Issuing;
+
+class AuthorizationService extends \Stripe\Service\AbstractService
+{
+ /**
+ * Returns a list of Issuing <code>Authorization</code> objects. The objects are
+ * sorted in descending order by creation date, with the most recently created
+ * object appearing first.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\Issuing\Authorization>
+ */
+ public function all($params = null, $opts = null)
+ {
+ return $this->requestCollection('get', '/v1/issuing/authorizations', $params, $opts);
+ }
+
+ /**
+ * Approves a pending Issuing <code>Authorization</code> object. This request
+ * should be made within the timeout window of the <a
+ * href="/docs/issuing/controls/real-time-authorizations">real-time
+ * authorization</a> flow.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Issuing\Authorization
+ */
+ public function approve($id, $params = null, $opts = null)
+ {
+ return $this->request('post', $this->buildPath('/v1/issuing/authorizations/%s/approve', $id), $params, $opts);
+ }
+
+ /**
+ * Declines a pending Issuing <code>Authorization</code> object. This request
+ * should be made within the timeout window of the <a
+ * href="/docs/issuing/controls/real-time-authorizations">real time
+ * authorization</a> flow.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Issuing\Authorization
+ */
+ public function decline($id, $params = null, $opts = null)
+ {
+ return $this->request('post', $this->buildPath('/v1/issuing/authorizations/%s/decline', $id), $params, $opts);
+ }
+
+ /**
+ * Retrieves an Issuing <code>Authorization</code> object.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Issuing\Authorization
+ */
+ public function retrieve($id, $params = null, $opts = null)
+ {
+ return $this->request('get', $this->buildPath('/v1/issuing/authorizations/%s', $id), $params, $opts);
+ }
+
+ /**
+ * Updates the specified Issuing <code>Authorization</code> object by setting the
+ * values of the parameters passed. Any parameters not provided will be left
+ * unchanged.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Issuing\Authorization
+ */
+ public function update($id, $params = null, $opts = null)
+ {
+ return $this->request('post', $this->buildPath('/v1/issuing/authorizations/%s', $id), $params, $opts);
+ }
+}
diff --git a/vendor/stripe/stripe-php/lib/Service/Issuing/CardService.php b/vendor/stripe/stripe-php/lib/Service/Issuing/CardService.php
index 346d54a..4dde0fd 100644
--- a/vendor/stripe/stripe-php/lib/Service/Issuing/CardService.php
+++ b/vendor/stripe/stripe-php/lib/Service/Issuing/CardService.php
@@ -1,73 +1,73 @@
-<?php
-
-// File generated from our OpenAPI spec
-
-namespace Stripe\Service\Issuing;
-
-class CardService extends \Stripe\Service\AbstractService
-{
- /**
- * Returns a list of Issuing <code>Card</code> objects. The objects are sorted in
- * descending order by creation date, with the most recently created object
- * appearing first.
- *
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Collection
- */
- public function all($params = null, $opts = null)
- {
- return $this->requestCollection('get', '/v1/issuing/cards', $params, $opts);
- }
-
- /**
- * Creates an Issuing <code>Card</code> object.
- *
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Issuing\Card
- */
- public function create($params = null, $opts = null)
- {
- return $this->request('post', '/v1/issuing/cards', $params, $opts);
- }
-
- /**
- * Retrieves an Issuing <code>Card</code> object.
- *
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Issuing\Card
- */
- public function retrieve($id, $params = null, $opts = null)
- {
- return $this->request('get', $this->buildPath('/v1/issuing/cards/%s', $id), $params, $opts);
- }
-
- /**
- * Updates the specified Issuing <code>Card</code> object by setting the values of
- * the parameters passed. Any parameters not provided will be left unchanged.
- *
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Issuing\Card
- */
- public function update($id, $params = null, $opts = null)
- {
- return $this->request('post', $this->buildPath('/v1/issuing/cards/%s', $id), $params, $opts);
- }
-}
+<?php
+
+// File generated from our OpenAPI spec
+
+namespace Stripe\Service\Issuing;
+
+class CardService extends \Stripe\Service\AbstractService
+{
+ /**
+ * Returns a list of Issuing <code>Card</code> objects. The objects are sorted in
+ * descending order by creation date, with the most recently created object
+ * appearing first.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\Issuing\Card>
+ */
+ public function all($params = null, $opts = null)
+ {
+ return $this->requestCollection('get', '/v1/issuing/cards', $params, $opts);
+ }
+
+ /**
+ * Creates an Issuing <code>Card</code> object.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Issuing\Card
+ */
+ public function create($params = null, $opts = null)
+ {
+ return $this->request('post', '/v1/issuing/cards', $params, $opts);
+ }
+
+ /**
+ * Retrieves an Issuing <code>Card</code> object.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Issuing\Card
+ */
+ public function retrieve($id, $params = null, $opts = null)
+ {
+ return $this->request('get', $this->buildPath('/v1/issuing/cards/%s', $id), $params, $opts);
+ }
+
+ /**
+ * Updates the specified Issuing <code>Card</code> object by setting the values of
+ * the parameters passed. Any parameters not provided will be left unchanged.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Issuing\Card
+ */
+ public function update($id, $params = null, $opts = null)
+ {
+ return $this->request('post', $this->buildPath('/v1/issuing/cards/%s', $id), $params, $opts);
+ }
+}
diff --git a/vendor/stripe/stripe-php/lib/Service/Issuing/CardholderService.php b/vendor/stripe/stripe-php/lib/Service/Issuing/CardholderService.php
index 5731b1b..97776c0 100644
--- a/vendor/stripe/stripe-php/lib/Service/Issuing/CardholderService.php
+++ b/vendor/stripe/stripe-php/lib/Service/Issuing/CardholderService.php
@@ -1,74 +1,74 @@
-<?php
-
-// File generated from our OpenAPI spec
-
-namespace Stripe\Service\Issuing;
-
-class CardholderService extends \Stripe\Service\AbstractService
-{
- /**
- * Returns a list of Issuing <code>Cardholder</code> objects. The objects are
- * sorted in descending order by creation date, with the most recently created
- * object appearing first.
- *
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Collection
- */
- public function all($params = null, $opts = null)
- {
- return $this->requestCollection('get', '/v1/issuing/cardholders', $params, $opts);
- }
-
- /**
- * Creates a new Issuing <code>Cardholder</code> object that can be issued cards.
- *
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Issuing\Cardholder
- */
- public function create($params = null, $opts = null)
- {
- return $this->request('post', '/v1/issuing/cardholders', $params, $opts);
- }
-
- /**
- * Retrieves an Issuing <code>Cardholder</code> object.
- *
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Issuing\Cardholder
- */
- public function retrieve($id, $params = null, $opts = null)
- {
- return $this->request('get', $this->buildPath('/v1/issuing/cardholders/%s', $id), $params, $opts);
- }
-
- /**
- * Updates the specified Issuing <code>Cardholder</code> object by setting the
- * values of the parameters passed. Any parameters not provided will be left
- * unchanged.
- *
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Issuing\Cardholder
- */
- public function update($id, $params = null, $opts = null)
- {
- return $this->request('post', $this->buildPath('/v1/issuing/cardholders/%s', $id), $params, $opts);
- }
-}
+<?php
+
+// File generated from our OpenAPI spec
+
+namespace Stripe\Service\Issuing;
+
+class CardholderService extends \Stripe\Service\AbstractService
+{
+ /**
+ * Returns a list of Issuing <code>Cardholder</code> objects. The objects are
+ * sorted in descending order by creation date, with the most recently created
+ * object appearing first.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\Issuing\Cardholder>
+ */
+ public function all($params = null, $opts = null)
+ {
+ return $this->requestCollection('get', '/v1/issuing/cardholders', $params, $opts);
+ }
+
+ /**
+ * Creates a new Issuing <code>Cardholder</code> object that can be issued cards.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Issuing\Cardholder
+ */
+ public function create($params = null, $opts = null)
+ {
+ return $this->request('post', '/v1/issuing/cardholders', $params, $opts);
+ }
+
+ /**
+ * Retrieves an Issuing <code>Cardholder</code> object.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Issuing\Cardholder
+ */
+ public function retrieve($id, $params = null, $opts = null)
+ {
+ return $this->request('get', $this->buildPath('/v1/issuing/cardholders/%s', $id), $params, $opts);
+ }
+
+ /**
+ * Updates the specified Issuing <code>Cardholder</code> object by setting the
+ * values of the parameters passed. Any parameters not provided will be left
+ * unchanged.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Issuing\Cardholder
+ */
+ public function update($id, $params = null, $opts = null)
+ {
+ return $this->request('post', $this->buildPath('/v1/issuing/cardholders/%s', $id), $params, $opts);
+ }
+}
diff --git a/vendor/stripe/stripe-php/lib/Service/Issuing/DisputeService.php b/vendor/stripe/stripe-php/lib/Service/Issuing/DisputeService.php
index ab5df5f..f3d0a6c 100644
--- a/vendor/stripe/stripe-php/lib/Service/Issuing/DisputeService.php
+++ b/vendor/stripe/stripe-php/lib/Service/Issuing/DisputeService.php
@@ -1,99 +1,99 @@
-<?php
-
-// File generated from our OpenAPI spec
-
-namespace Stripe\Service\Issuing;
-
-class DisputeService extends \Stripe\Service\AbstractService
-{
- /**
- * Returns a list of Issuing <code>Dispute</code> objects. The objects are sorted
- * in descending order by creation date, with the most recently created object
- * appearing first.
- *
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Collection
- */
- public function all($params = null, $opts = null)
- {
- return $this->requestCollection('get', '/v1/issuing/disputes', $params, $opts);
- }
-
- /**
- * Creates an Issuing <code>Dispute</code> object. Individual pieces of evidence
- * within the <code>evidence</code> object are optional at this point. Stripe only
- * validates that required evidence is present during submission. Refer to <a
- * href="/docs/issuing/purchases/disputes#dispute-reasons-and-evidence">Dispute
- * reasons and evidence</a> for more details about evidence requirements.
- *
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Issuing\Dispute
- */
- public function create($params = null, $opts = null)
- {
- return $this->request('post', '/v1/issuing/disputes', $params, $opts);
- }
-
- /**
- * Retrieves an Issuing <code>Dispute</code> object.
- *
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Issuing\Dispute
- */
- public function retrieve($id, $params = null, $opts = null)
- {
- return $this->request('get', $this->buildPath('/v1/issuing/disputes/%s', $id), $params, $opts);
- }
-
- /**
- * Submits an Issuing <code>Dispute</code> to the card network. Stripe validates
- * that all evidence fields required for the dispute’s reason are present. For more
- * details, see <a
- * href="/docs/issuing/purchases/disputes#dispute-reasons-and-evidence">Dispute
- * reasons and evidence</a>.
- *
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Issuing\Dispute
- */
- public function submit($id, $params = null, $opts = null)
- {
- return $this->request('post', $this->buildPath('/v1/issuing/disputes/%s/submit', $id), $params, $opts);
- }
-
- /**
- * Updates the specified Issuing <code>Dispute</code> object by setting the values
- * of the parameters passed. Any parameters not provided will be left unchanged.
- * Properties on the <code>evidence</code> object can be unset by passing in an
- * empty string.
- *
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Issuing\Dispute
- */
- public function update($id, $params = null, $opts = null)
- {
- return $this->request('post', $this->buildPath('/v1/issuing/disputes/%s', $id), $params, $opts);
- }
-}
+<?php
+
+// File generated from our OpenAPI spec
+
+namespace Stripe\Service\Issuing;
+
+class DisputeService extends \Stripe\Service\AbstractService
+{
+ /**
+ * Returns a list of Issuing <code>Dispute</code> objects. The objects are sorted
+ * in descending order by creation date, with the most recently created object
+ * appearing first.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\Issuing\Dispute>
+ */
+ public function all($params = null, $opts = null)
+ {
+ return $this->requestCollection('get', '/v1/issuing/disputes', $params, $opts);
+ }
+
+ /**
+ * Creates an Issuing <code>Dispute</code> object. Individual pieces of evidence
+ * within the <code>evidence</code> object are optional at this point. Stripe only
+ * validates that required evidence is present during submission. Refer to <a
+ * href="/docs/issuing/purchases/disputes#dispute-reasons-and-evidence">Dispute
+ * reasons and evidence</a> for more details about evidence requirements.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Issuing\Dispute
+ */
+ public function create($params = null, $opts = null)
+ {
+ return $this->request('post', '/v1/issuing/disputes', $params, $opts);
+ }
+
+ /**
+ * Retrieves an Issuing <code>Dispute</code> object.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Issuing\Dispute
+ */
+ public function retrieve($id, $params = null, $opts = null)
+ {
+ return $this->request('get', $this->buildPath('/v1/issuing/disputes/%s', $id), $params, $opts);
+ }
+
+ /**
+ * Submits an Issuing <code>Dispute</code> to the card network. Stripe validates
+ * that all evidence fields required for the dispute’s reason are present. For more
+ * details, see <a
+ * href="/docs/issuing/purchases/disputes#dispute-reasons-and-evidence">Dispute
+ * reasons and evidence</a>.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Issuing\Dispute
+ */
+ public function submit($id, $params = null, $opts = null)
+ {
+ return $this->request('post', $this->buildPath('/v1/issuing/disputes/%s/submit', $id), $params, $opts);
+ }
+
+ /**
+ * Updates the specified Issuing <code>Dispute</code> object by setting the values
+ * of the parameters passed. Any parameters not provided will be left unchanged.
+ * Properties on the <code>evidence</code> object can be unset by passing in an
+ * empty string.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Issuing\Dispute
+ */
+ public function update($id, $params = null, $opts = null)
+ {
+ return $this->request('post', $this->buildPath('/v1/issuing/disputes/%s', $id), $params, $opts);
+ }
+}
diff --git a/vendor/stripe/stripe-php/lib/Service/Issuing/IssuingServiceFactory.php b/vendor/stripe/stripe-php/lib/Service/Issuing/IssuingServiceFactory.php
index a8d5d0f..89f2c8c 100644
--- a/vendor/stripe/stripe-php/lib/Service/Issuing/IssuingServiceFactory.php
+++ b/vendor/stripe/stripe-php/lib/Service/Issuing/IssuingServiceFactory.php
@@ -1,33 +1,33 @@
-<?php
-
-// File generated from our OpenAPI spec
-
-namespace Stripe\Service\Issuing;
-
-/**
- * Service factory class for API resources in the Issuing namespace.
- *
- * @property AuthorizationService $authorizations
- * @property CardholderService $cardholders
- * @property CardService $cards
- * @property DisputeService $disputes
- * @property TransactionService $transactions
- */
-class IssuingServiceFactory extends \Stripe\Service\AbstractServiceFactory
-{
- /**
- * @var array<string, string>
- */
- private static $classMap = [
- 'authorizations' => AuthorizationService::class,
- 'cardholders' => CardholderService::class,
- 'cards' => CardService::class,
- 'disputes' => DisputeService::class,
- 'transactions' => TransactionService::class,
- ];
-
- protected function getServiceClass($name)
- {
- return \array_key_exists($name, self::$classMap) ? self::$classMap[$name] : null;
- }
-}
+<?php
+
+// File generated from our OpenAPI spec
+
+namespace Stripe\Service\Issuing;
+
+/**
+ * Service factory class for API resources in the Issuing namespace.
+ *
+ * @property AuthorizationService $authorizations
+ * @property CardholderService $cardholders
+ * @property CardService $cards
+ * @property DisputeService $disputes
+ * @property TransactionService $transactions
+ */
+class IssuingServiceFactory extends \Stripe\Service\AbstractServiceFactory
+{
+ /**
+ * @var array<string, string>
+ */
+ private static $classMap = [
+ 'authorizations' => AuthorizationService::class,
+ 'cardholders' => CardholderService::class,
+ 'cards' => CardService::class,
+ 'disputes' => DisputeService::class,
+ 'transactions' => TransactionService::class,
+ ];
+
+ protected function getServiceClass($name)
+ {
+ return \array_key_exists($name, self::$classMap) ? self::$classMap[$name] : null;
+ }
+}
diff --git a/vendor/stripe/stripe-php/lib/Service/Issuing/TransactionService.php b/vendor/stripe/stripe-php/lib/Service/Issuing/TransactionService.php
index 8fb0ee2..04b7a01 100644
--- a/vendor/stripe/stripe-php/lib/Service/Issuing/TransactionService.php
+++ b/vendor/stripe/stripe-php/lib/Service/Issuing/TransactionService.php
@@ -1,59 +1,59 @@
-<?php
-
-// File generated from our OpenAPI spec
-
-namespace Stripe\Service\Issuing;
-
-class TransactionService extends \Stripe\Service\AbstractService
-{
- /**
- * Returns a list of Issuing <code>Transaction</code> objects. The objects are
- * sorted in descending order by creation date, with the most recently created
- * object appearing first.
- *
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Collection
- */
- public function all($params = null, $opts = null)
- {
- return $this->requestCollection('get', '/v1/issuing/transactions', $params, $opts);
- }
-
- /**
- * Retrieves an Issuing <code>Transaction</code> object.
- *
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Issuing\Transaction
- */
- public function retrieve($id, $params = null, $opts = null)
- {
- return $this->request('get', $this->buildPath('/v1/issuing/transactions/%s', $id), $params, $opts);
- }
-
- /**
- * Updates the specified Issuing <code>Transaction</code> object by setting the
- * values of the parameters passed. Any parameters not provided will be left
- * unchanged.
- *
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Issuing\Transaction
- */
- public function update($id, $params = null, $opts = null)
- {
- return $this->request('post', $this->buildPath('/v1/issuing/transactions/%s', $id), $params, $opts);
- }
-}
+<?php
+
+// File generated from our OpenAPI spec
+
+namespace Stripe\Service\Issuing;
+
+class TransactionService extends \Stripe\Service\AbstractService
+{
+ /**
+ * Returns a list of Issuing <code>Transaction</code> objects. The objects are
+ * sorted in descending order by creation date, with the most recently created
+ * object appearing first.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\Issuing\Transaction>
+ */
+ public function all($params = null, $opts = null)
+ {
+ return $this->requestCollection('get', '/v1/issuing/transactions', $params, $opts);
+ }
+
+ /**
+ * Retrieves an Issuing <code>Transaction</code> object.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Issuing\Transaction
+ */
+ public function retrieve($id, $params = null, $opts = null)
+ {
+ return $this->request('get', $this->buildPath('/v1/issuing/transactions/%s', $id), $params, $opts);
+ }
+
+ /**
+ * Updates the specified Issuing <code>Transaction</code> object by setting the
+ * values of the parameters passed. Any parameters not provided will be left
+ * unchanged.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Issuing\Transaction
+ */
+ public function update($id, $params = null, $opts = null)
+ {
+ return $this->request('post', $this->buildPath('/v1/issuing/transactions/%s', $id), $params, $opts);
+ }
+}
diff --git a/vendor/stripe/stripe-php/lib/Service/MandateService.php b/vendor/stripe/stripe-php/lib/Service/MandateService.php
index 156bff0..21f6e02 100644
--- a/vendor/stripe/stripe-php/lib/Service/MandateService.php
+++ b/vendor/stripe/stripe-php/lib/Service/MandateService.php
@@ -1,24 +1,24 @@
-<?php
-
-// File generated from our OpenAPI spec
-
-namespace Stripe\Service;
-
-class MandateService extends \Stripe\Service\AbstractService
-{
- /**
- * Retrieves a Mandate object.
- *
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Mandate
- */
- public function retrieve($id, $params = null, $opts = null)
- {
- return $this->request('get', $this->buildPath('/v1/mandates/%s', $id), $params, $opts);
- }
-}
+<?php
+
+// File generated from our OpenAPI spec
+
+namespace Stripe\Service;
+
+class MandateService extends \Stripe\Service\AbstractService
+{
+ /**
+ * Retrieves a Mandate object.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Mandate
+ */
+ public function retrieve($id, $params = null, $opts = null)
+ {
+ return $this->request('get', $this->buildPath('/v1/mandates/%s', $id), $params, $opts);
+ }
+}
diff --git a/vendor/stripe/stripe-php/lib/Service/OAuthService.php b/vendor/stripe/stripe-php/lib/Service/OAuthService.php
index b745ad9..9ad4383 100644
--- a/vendor/stripe/stripe-php/lib/Service/OAuthService.php
+++ b/vendor/stripe/stripe-php/lib/Service/OAuthService.php
@@ -1,150 +1,150 @@
-<?php
-
-namespace Stripe\Service;
-
-class OAuthService extends \Stripe\Service\AbstractService
-{
- /**
- * Sends a request to Stripe's Connect API.
- *
- * @param string $method the HTTP method
- * @param string $path the path of the request
- * @param array $params the parameters of the request
- * @param array|\Stripe\Util\RequestOptions $opts the special modifiers of the request
- *
- * @return \Stripe\StripeObject the object returned by Stripe's Connect API
- */
- protected function requestConnect($method, $path, $params, $opts)
- {
- $opts = $this->_parseOpts($opts);
- $opts->apiBase = $this->_getBase($opts);
-
- return $this->request($method, $path, $params, $opts);
- }
-
- /**
- * Generates a URL to Stripe's OAuth form.
- *
- * @param null|array $params
- * @param null|array $opts
- *
- * @return string the URL to Stripe's OAuth form
- */
- public function authorizeUrl($params = null, $opts = null)
- {
- $params = $params ?: [];
-
- $opts = $this->_parseOpts($opts);
- $base = $this->_getBase($opts);
-
- $params['client_id'] = $this->_getClientId($params);
- if (!\array_key_exists('response_type', $params)) {
- $params['response_type'] = 'code';
- }
- $query = \Stripe\Util\Util::encodeParameters($params);
-
- return $base . '/oauth/authorize?' . $query;
- }
-
- /**
- * Use an authoriztion code to connect an account to your platform and
- * fetch the user's credentials.
- *
- * @param null|array $params
- * @param null|array $opts
- *
- * @throws \Stripe\Exception\OAuth\OAuthErrorException if the request fails
- *
- * @return \Stripe\StripeObject object containing the response from the API
- */
- public function token($params = null, $opts = null)
- {
- $params = $params ?: [];
- $params['client_secret'] = $this->_getClientSecret($params);
-
- return $this->requestConnect('post', '/oauth/token', $params, $opts);
- }
-
- /**
- * Disconnects an account from your platform.
- *
- * @param null|array $params
- * @param null|array $opts
- *
- * @throws \Stripe\Exception\OAuth\OAuthErrorException if the request fails
- *
- * @return \Stripe\StripeObject object containing the response from the API
- */
- public function deauthorize($params = null, $opts = null)
- {
- $params = $params ?: [];
- $params['client_id'] = $this->_getClientId($params);
-
- return $this->requestConnect('post', '/oauth/deauthorize', $params, $opts);
- }
-
- private function _getClientId($params = null)
- {
- $clientId = ($params && \array_key_exists('client_id', $params)) ? $params['client_id'] : null;
-
- if (null === $clientId) {
- $clientId = $this->client->getClientId();
- }
- if (null === $clientId) {
- $msg = 'No client_id provided. (HINT: set your client_id using '
- . '`new \Stripe\StripeClient([clientId => <CLIENT-ID>
- ])`)". You can find your client_ids '
- . 'in your Stripe dashboard at '
- . 'https://dashboard.stripe.com/account/applications/settings, '
- . 'after registering your account as a platform. See '
- . 'https://stripe.com/docs/connect/standard-accounts for details, '
- . 'or email support@stripe.com if you have any questions.';
-
- throw new \Stripe\Exception\AuthenticationException($msg);
- }
-
- return $clientId;
- }
-
- private function _getClientSecret($params = null)
- {
- if (\array_key_exists('client_secret', $params)) {
- return $params['client_secret'];
- }
-
- return $this->client->getApiKey();
- }
-
- /**
- * @param array|\Stripe\Util\RequestOptions $opts the special modifiers of the request
- *
- * @throws \Stripe\Exception\InvalidArgumentException
- *
- * @return \Stripe\Util\RequestOptions
- */
- private function _parseOpts($opts)
- {
- if (\is_array($opts)) {
- if (\array_key_exists('connect_base', $opts)) {
- // Throw an exception for the convenience of anybody migrating to
- // \Stripe\Service\OAuthService from \Stripe\OAuth, where `connect_base`
- // was the name of the parameter that behaves as `api_base` does here.
- throw new \Stripe\Exception\InvalidArgumentException('Use `api_base`, not `connect_base`');
- }
- }
-
- return \Stripe\Util\RequestOptions::parse($opts);
- }
-
- /**
- * @param \Stripe\Util\RequestOptions $opts
- *
- * @return string
- */
- private function _getBase($opts)
- {
- return isset($opts->apiBase) ?
- $opts->apiBase :
- $this->client->getConnectBase();
- }
-}
+<?php
+
+namespace Stripe\Service;
+
+class OAuthService extends \Stripe\Service\AbstractService
+{
+ /**
+ * Sends a request to Stripe's Connect API.
+ *
+ * @param string $method the HTTP method
+ * @param string $path the path of the request
+ * @param array $params the parameters of the request
+ * @param array|\Stripe\Util\RequestOptions $opts the special modifiers of the request
+ *
+ * @return \Stripe\StripeObject the object returned by Stripe's Connect API
+ */
+ protected function requestConnect($method, $path, $params, $opts)
+ {
+ $opts = $this->_parseOpts($opts);
+ $opts->apiBase = $this->_getBase($opts);
+
+ return $this->request($method, $path, $params, $opts);
+ }
+
+ /**
+ * Generates a URL to Stripe's OAuth form.
+ *
+ * @param null|array $params
+ * @param null|array $opts
+ *
+ * @return string the URL to Stripe's OAuth form
+ */
+ public function authorizeUrl($params = null, $opts = null)
+ {
+ $params = $params ?: [];
+
+ $opts = $this->_parseOpts($opts);
+ $base = $this->_getBase($opts);
+
+ $params['client_id'] = $this->_getClientId($params);
+ if (!\array_key_exists('response_type', $params)) {
+ $params['response_type'] = 'code';
+ }
+ $query = \Stripe\Util\Util::encodeParameters($params);
+
+ return $base . '/oauth/authorize?' . $query;
+ }
+
+ /**
+ * Use an authoriztion code to connect an account to your platform and
+ * fetch the user's credentials.
+ *
+ * @param null|array $params
+ * @param null|array $opts
+ *
+ * @throws \Stripe\Exception\OAuth\OAuthErrorException if the request fails
+ *
+ * @return \Stripe\StripeObject object containing the response from the API
+ */
+ public function token($params = null, $opts = null)
+ {
+ $params = $params ?: [];
+ $params['client_secret'] = $this->_getClientSecret($params);
+
+ return $this->requestConnect('post', '/oauth/token', $params, $opts);
+ }
+
+ /**
+ * Disconnects an account from your platform.
+ *
+ * @param null|array $params
+ * @param null|array $opts
+ *
+ * @throws \Stripe\Exception\OAuth\OAuthErrorException if the request fails
+ *
+ * @return \Stripe\StripeObject object containing the response from the API
+ */
+ public function deauthorize($params = null, $opts = null)
+ {
+ $params = $params ?: [];
+ $params['client_id'] = $this->_getClientId($params);
+
+ return $this->requestConnect('post', '/oauth/deauthorize', $params, $opts);
+ }
+
+ private function _getClientId($params = null)
+ {
+ $clientId = ($params && \array_key_exists('client_id', $params)) ? $params['client_id'] : null;
+
+ if (null === $clientId) {
+ $clientId = $this->client->getClientId();
+ }
+ if (null === $clientId) {
+ $msg = 'No client_id provided. (HINT: set your client_id using '
+ . '`new \Stripe\StripeClient([clientId => <CLIENT-ID>
+ ])`)". You can find your client_ids '
+ . 'in your Stripe dashboard at '
+ . 'https://dashboard.stripe.com/account/applications/settings, '
+ . 'after registering your account as a platform. See '
+ . 'https://stripe.com/docs/connect/standard-accounts for details, '
+ . 'or email support@stripe.com if you have any questions.';
+
+ throw new \Stripe\Exception\AuthenticationException($msg);
+ }
+
+ return $clientId;
+ }
+
+ private function _getClientSecret($params = null)
+ {
+ if (\array_key_exists('client_secret', $params)) {
+ return $params['client_secret'];
+ }
+
+ return $this->client->getApiKey();
+ }
+
+ /**
+ * @param array|\Stripe\Util\RequestOptions $opts the special modifiers of the request
+ *
+ * @throws \Stripe\Exception\InvalidArgumentException
+ *
+ * @return \Stripe\Util\RequestOptions
+ */
+ private function _parseOpts($opts)
+ {
+ if (\is_array($opts)) {
+ if (\array_key_exists('connect_base', $opts)) {
+ // Throw an exception for the convenience of anybody migrating to
+ // \Stripe\Service\OAuthService from \Stripe\OAuth, where `connect_base`
+ // was the name of the parameter that behaves as `api_base` does here.
+ throw new \Stripe\Exception\InvalidArgumentException('Use `api_base`, not `connect_base`');
+ }
+ }
+
+ return \Stripe\Util\RequestOptions::parse($opts);
+ }
+
+ /**
+ * @param \Stripe\Util\RequestOptions $opts
+ *
+ * @return string
+ */
+ private function _getBase($opts)
+ {
+ return isset($opts->apiBase) ?
+ $opts->apiBase :
+ $this->client->getConnectBase();
+ }
+}
diff --git a/vendor/stripe/stripe-php/lib/Service/OrderReturnService.php b/vendor/stripe/stripe-php/lib/Service/OrderReturnService.php
index 6183166..8f26e20 100644
--- a/vendor/stripe/stripe-php/lib/Service/OrderReturnService.php
+++ b/vendor/stripe/stripe-php/lib/Service/OrderReturnService.php
@@ -1,42 +1,42 @@
-<?php
-
-// File generated from our OpenAPI spec
-
-namespace Stripe\Service;
-
-class OrderReturnService extends \Stripe\Service\AbstractService
-{
- /**
- * Returns a list of your order returns. The returns are returned sorted by
- * creation date, with the most recently created return appearing first.
- *
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Collection
- */
- public function all($params = null, $opts = null)
- {
- return $this->requestCollection('get', '/v1/order_returns', $params, $opts);
- }
-
- /**
- * Retrieves the details of an existing order return. Supply the unique order ID
- * from either an order return creation request or the order return list, and
- * Stripe will return the corresponding order information.
- *
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\OrderReturn
- */
- public function retrieve($id, $params = null, $opts = null)
- {
- return $this->request('get', $this->buildPath('/v1/order_returns/%s', $id), $params, $opts);
- }
-}
+<?php
+
+// File generated from our OpenAPI spec
+
+namespace Stripe\Service;
+
+class OrderReturnService extends \Stripe\Service\AbstractService
+{
+ /**
+ * Returns a list of your order returns. The returns are returned sorted by
+ * creation date, with the most recently created return appearing first.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\OrderReturn>
+ */
+ public function all($params = null, $opts = null)
+ {
+ return $this->requestCollection('get', '/v1/order_returns', $params, $opts);
+ }
+
+ /**
+ * Retrieves the details of an existing order return. Supply the unique order ID
+ * from either an order return creation request or the order return list, and
+ * Stripe will return the corresponding order information.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\OrderReturn
+ */
+ public function retrieve($id, $params = null, $opts = null)
+ {
+ return $this->request('get', $this->buildPath('/v1/order_returns/%s', $id), $params, $opts);
+ }
+}
diff --git a/vendor/stripe/stripe-php/lib/Service/OrderService.php b/vendor/stripe/stripe-php/lib/Service/OrderService.php
index fa658fa..0823109 100644
--- a/vendor/stripe/stripe-php/lib/Service/OrderService.php
+++ b/vendor/stripe/stripe-php/lib/Service/OrderService.php
@@ -1,109 +1,109 @@
-<?php
-
-// File generated from our OpenAPI spec
-
-namespace Stripe\Service;
-
-class OrderService extends \Stripe\Service\AbstractService
-{
- /**
- * Returns a list of your orders. The orders are returned sorted by creation date,
- * with the most recently created orders appearing first.
- *
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Collection
- */
- public function all($params = null, $opts = null)
- {
- return $this->requestCollection('get', '/v1/orders', $params, $opts);
- }
-
- /**
- * Creates a new order object.
- *
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Order
- */
- public function create($params = null, $opts = null)
- {
- return $this->request('post', '/v1/orders', $params, $opts);
- }
-
- /**
- * Pay an order by providing a <code>source</code> to create a payment.
- *
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Order
- */
- public function pay($id, $params = null, $opts = null)
- {
- return $this->request('post', $this->buildPath('/v1/orders/%s/pay', $id), $params, $opts);
- }
-
- /**
- * Retrieves the details of an existing order. Supply the unique order ID from
- * either an order creation request or the order list, and Stripe will return the
- * corresponding order information.
- *
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Order
- */
- public function retrieve($id, $params = null, $opts = null)
- {
- return $this->request('get', $this->buildPath('/v1/orders/%s', $id), $params, $opts);
- }
-
- /**
- * Return all or part of an order. The order must have a status of
- * <code>paid</code> or <code>fulfilled</code> before it can be returned. Once all
- * items have been returned, the order will become <code>canceled</code> or
- * <code>returned</code> depending on which status the order started in.
- *
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Order
- */
- public function returnOrder($id, $params = null, $opts = null)
- {
- return $this->request('post', $this->buildPath('/v1/orders/%s/returns', $id), $params, $opts);
- }
-
- /**
- * Updates the specific order by setting the values of the parameters passed. Any
- * parameters not provided will be left unchanged.
- *
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Order
- */
- public function update($id, $params = null, $opts = null)
- {
- return $this->request('post', $this->buildPath('/v1/orders/%s', $id), $params, $opts);
- }
-}
+<?php
+
+// File generated from our OpenAPI spec
+
+namespace Stripe\Service;
+
+class OrderService extends \Stripe\Service\AbstractService
+{
+ /**
+ * Returns a list of your orders. The orders are returned sorted by creation date,
+ * with the most recently created orders appearing first.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\Order>
+ */
+ public function all($params = null, $opts = null)
+ {
+ return $this->requestCollection('get', '/v1/orders', $params, $opts);
+ }
+
+ /**
+ * Creates a new order object.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Order
+ */
+ public function create($params = null, $opts = null)
+ {
+ return $this->request('post', '/v1/orders', $params, $opts);
+ }
+
+ /**
+ * Pay an order by providing a <code>source</code> to create a payment.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Order
+ */
+ public function pay($id, $params = null, $opts = null)
+ {
+ return $this->request('post', $this->buildPath('/v1/orders/%s/pay', $id), $params, $opts);
+ }
+
+ /**
+ * Retrieves the details of an existing order. Supply the unique order ID from
+ * either an order creation request or the order list, and Stripe will return the
+ * corresponding order information.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Order
+ */
+ public function retrieve($id, $params = null, $opts = null)
+ {
+ return $this->request('get', $this->buildPath('/v1/orders/%s', $id), $params, $opts);
+ }
+
+ /**
+ * Return all or part of an order. The order must have a status of
+ * <code>paid</code> or <code>fulfilled</code> before it can be returned. Once all
+ * items have been returned, the order will become <code>canceled</code> or
+ * <code>returned</code> depending on which status the order started in.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Order
+ */
+ public function returnOrder($id, $params = null, $opts = null)
+ {
+ return $this->request('post', $this->buildPath('/v1/orders/%s/returns', $id), $params, $opts);
+ }
+
+ /**
+ * Updates the specific order by setting the values of the parameters passed. Any
+ * parameters not provided will be left unchanged.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Order
+ */
+ public function update($id, $params = null, $opts = null)
+ {
+ return $this->request('post', $this->buildPath('/v1/orders/%s', $id), $params, $opts);
+ }
+}
diff --git a/vendor/stripe/stripe-php/lib/Service/PaymentIntentService.php b/vendor/stripe/stripe-php/lib/Service/PaymentIntentService.php
index 43aba46..d197ab6 100644
--- a/vendor/stripe/stripe-php/lib/Service/PaymentIntentService.php
+++ b/vendor/stripe/stripe-php/lib/Service/PaymentIntentService.php
@@ -1,181 +1,283 @@
-<?php
-
-// File generated from our OpenAPI spec
-
-namespace Stripe\Service;
-
-class PaymentIntentService extends \Stripe\Service\AbstractService
-{
- /**
- * Returns a list of PaymentIntents.
- *
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Collection
- */
- public function all($params = null, $opts = null)
- {
- return $this->requestCollection('get', '/v1/payment_intents', $params, $opts);
- }
-
- /**
- * A PaymentIntent object can be canceled when it is in one of these statuses:
- * <code>requires_payment_method</code>, <code>requires_capture</code>,
- * <code>requires_confirmation</code>, or <code>requires_action</code>.
- *
- * Once canceled, no additional charges will be made by the PaymentIntent and any
- * operations on the PaymentIntent will fail with an error. For PaymentIntents with
- * <code>status=’requires_capture’</code>, the remaining
- * <code>amount_capturable</code> will automatically be refunded.
- *
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\PaymentIntent
- */
- public function cancel($id, $params = null, $opts = null)
- {
- return $this->request('post', $this->buildPath('/v1/payment_intents/%s/cancel', $id), $params, $opts);
- }
-
- /**
- * Capture the funds of an existing uncaptured PaymentIntent when its status is
- * <code>requires_capture</code>.
- *
- * Uncaptured PaymentIntents will be canceled exactly seven days after they are
- * created.
- *
- * Learn more about <a href="/docs/payments/capture-later">separate authorization
- * and capture</a>.
- *
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\PaymentIntent
- */
- public function capture($id, $params = null, $opts = null)
- {
- return $this->request('post', $this->buildPath('/v1/payment_intents/%s/capture', $id), $params, $opts);
- }
-
- /**
- * Confirm that your customer intends to pay with current or provided payment
- * method. Upon confirmation, the PaymentIntent will attempt to initiate a payment.
- *
- * If the selected payment method requires additional authentication steps, the
- * PaymentIntent will transition to the <code>requires_action</code> status and
- * suggest additional actions via <code>next_action</code>. If payment fails, the
- * PaymentIntent will transition to the <code>requires_payment_method</code>
- * status. If payment succeeds, the PaymentIntent will transition to the
- * <code>succeeded</code> status (or <code>requires_capture</code>, if
- * <code>capture_method</code> is set to <code>manual</code>).
- *
- * If the <code>confirmation_method</code> is <code>automatic</code>, payment may
- * be attempted using our <a
- * href="/docs/stripe-js/reference#stripe-handle-card-payment">client SDKs</a> and
- * the PaymentIntent’s <a
- * href="#payment_intent_object-client_secret">client_secret</a>. After
- * <code>next_action</code>s are handled by the client, no additional confirmation
- * is required to complete the payment.
- *
- * If the <code>confirmation_method</code> is <code>manual</code>, all payment
- * attempts must be initiated using a secret key. If any actions are required for
- * the payment, the PaymentIntent will return to the
- * <code>requires_confirmation</code> state after those actions are completed. Your
- * server needs to then explicitly re-confirm the PaymentIntent to initiate the
- * next payment attempt. Read the <a
- * href="/docs/payments/payment-intents/web-manual">expanded documentation</a> to
- * learn more about manual confirmation.
- *
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\PaymentIntent
- */
- public function confirm($id, $params = null, $opts = null)
- {
- return $this->request('post', $this->buildPath('/v1/payment_intents/%s/confirm', $id), $params, $opts);
- }
-
- /**
- * Creates a PaymentIntent object.
- *
- * After the PaymentIntent is created, attach a payment method and <a
- * href="/docs/api/payment_intents/confirm">confirm</a> to continue the payment.
- * You can read more about the different payment flows available via the Payment
- * Intents API <a href="/docs/payments/payment-intents">here</a>.
- *
- * When <code>confirm=true</code> is used during creation, it is equivalent to
- * creating and confirming the PaymentIntent in the same call. You may use any
- * parameters available in the <a href="/docs/api/payment_intents/confirm">confirm
- * API</a> when <code>confirm=true</code> is supplied.
- *
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\PaymentIntent
- */
- public function create($params = null, $opts = null)
- {
- return $this->request('post', '/v1/payment_intents', $params, $opts);
- }
-
- /**
- * Retrieves the details of a PaymentIntent that has previously been created.
- *
- * Client-side retrieval using a publishable key is allowed when the
- * <code>client_secret</code> is provided in the query string.
- *
- * When retrieved with a publishable key, only a subset of properties will be
- * returned. Please refer to the <a href="#payment_intent_object">payment
- * intent</a> object reference for more details.
- *
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\PaymentIntent
- */
- public function retrieve($id, $params = null, $opts = null)
- {
- return $this->request('get', $this->buildPath('/v1/payment_intents/%s', $id), $params, $opts);
- }
-
- /**
- * Updates properties on a PaymentIntent object without confirming.
- *
- * Depending on which properties you update, you may need to confirm the
- * PaymentIntent again. For example, updating the <code>payment_method</code> will
- * always require you to confirm the PaymentIntent again. If you prefer to update
- * and confirm at the same time, we recommend updating properties via the <a
- * href="/docs/api/payment_intents/confirm">confirm API</a> instead.
- *
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\PaymentIntent
- */
- public function update($id, $params = null, $opts = null)
- {
- return $this->request('post', $this->buildPath('/v1/payment_intents/%s', $id), $params, $opts);
- }
-}
+<?php
+
+// File generated from our OpenAPI spec
+
+namespace Stripe\Service;
+
+class PaymentIntentService extends \Stripe\Service\AbstractService
+{
+ /**
+ * Returns a list of PaymentIntents.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\PaymentIntent>
+ */
+ public function all($params = null, $opts = null)
+ {
+ return $this->requestCollection('get', '/v1/payment_intents', $params, $opts);
+ }
+
+ /**
+ * Manually reconcile the remaining amount for a customer_balance PaymentIntent.
+ *
+ * This can be used when the cash balance for <a
+ * href="docs/payments/customer-balance/reconciliation#cash-manual-reconciliation">a
+ * customer in manual reconciliation mode</a> received funds.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\PaymentIntent
+ */
+ public function applyCustomerBalance($id, $params = null, $opts = null)
+ {
+ return $this->request('post', $this->buildPath('/v1/payment_intents/%s/apply_customer_balance', $id), $params, $opts);
+ }
+
+ /**
+ * A PaymentIntent object can be canceled when it is in one of these statuses:
+ * <code>requires_payment_method</code>, <code>requires_capture</code>,
+ * <code>requires_confirmation</code>, <code>requires_action</code>, or
+ * <code>processing</code>.
+ *
+ * Once canceled, no additional charges will be made by the PaymentIntent and any
+ * operations on the PaymentIntent will fail with an error. For PaymentIntents with
+ * <code>status=’requires_capture’</code>, the remaining
+ * <code>amount_capturable</code> will automatically be refunded.
+ *
+ * You cannot cancel the PaymentIntent for a Checkout Session. <a
+ * href="/docs/api/checkout/sessions/expire">Expire the Checkout Session</a>
+ * instead
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\PaymentIntent
+ */
+ public function cancel($id, $params = null, $opts = null)
+ {
+ return $this->request('post', $this->buildPath('/v1/payment_intents/%s/cancel', $id), $params, $opts);
+ }
+
+ /**
+ * Capture the funds of an existing uncaptured PaymentIntent when its status is
+ * <code>requires_capture</code>.
+ *
+ * Uncaptured PaymentIntents will be canceled a set number of days after they are
+ * created (7 by default).
+ *
+ * Learn more about <a href="/docs/payments/capture-later">separate authorization
+ * and capture</a>.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\PaymentIntent
+ */
+ public function capture($id, $params = null, $opts = null)
+ {
+ return $this->request('post', $this->buildPath('/v1/payment_intents/%s/capture', $id), $params, $opts);
+ }
+
+ /**
+ * Confirm that your customer intends to pay with current or provided payment
+ * method. Upon confirmation, the PaymentIntent will attempt to initiate a payment.
+ *
+ * If the selected payment method requires additional authentication steps, the
+ * PaymentIntent will transition to the <code>requires_action</code> status and
+ * suggest additional actions via <code>next_action</code>. If payment fails, the
+ * PaymentIntent will transition to the <code>requires_payment_method</code>
+ * status. If payment succeeds, the PaymentIntent will transition to the
+ * <code>succeeded</code> status (or <code>requires_capture</code>, if
+ * <code>capture_method</code> is set to <code>manual</code>).
+ *
+ * If the <code>confirmation_method</code> is <code>automatic</code>, payment may
+ * be attempted using our <a
+ * href="/docs/stripe-js/reference#stripe-handle-card-payment">client SDKs</a> and
+ * the PaymentIntent’s <a
+ * href="#payment_intent_object-client_secret">client_secret</a>. After
+ * <code>next_action</code>s are handled by the client, no additional confirmation
+ * is required to complete the payment.
+ *
+ * If the <code>confirmation_method</code> is <code>manual</code>, all payment
+ * attempts must be initiated using a secret key. If any actions are required for
+ * the payment, the PaymentIntent will return to the
+ * <code>requires_confirmation</code> state after those actions are completed. Your
+ * server needs to then explicitly re-confirm the PaymentIntent to initiate the
+ * next payment attempt. Read the <a
+ * href="/docs/payments/payment-intents/web-manual">expanded documentation</a> to
+ * learn more about manual confirmation.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\PaymentIntent
+ */
+ public function confirm($id, $params = null, $opts = null)
+ {
+ return $this->request('post', $this->buildPath('/v1/payment_intents/%s/confirm', $id), $params, $opts);
+ }
+
+ /**
+ * Creates a PaymentIntent object.
+ *
+ * After the PaymentIntent is created, attach a payment method and <a
+ * href="/docs/api/payment_intents/confirm">confirm</a> to continue the payment.
+ * You can read more about the different payment flows available via the Payment
+ * Intents API <a href="/docs/payments/payment-intents">here</a>.
+ *
+ * When <code>confirm=true</code> is used during creation, it is equivalent to
+ * creating and confirming the PaymentIntent in the same call. You may use any
+ * parameters available in the <a href="/docs/api/payment_intents/confirm">confirm
+ * API</a> when <code>confirm=true</code> is supplied.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\PaymentIntent
+ */
+ public function create($params = null, $opts = null)
+ {
+ return $this->request('post', '/v1/payment_intents', $params, $opts);
+ }
+
+ /**
+ * Perform an incremental authorization on an eligible <a
+ * href="/docs/api/payment_intents/object">PaymentIntent</a>. To be eligible, the
+ * PaymentIntent’s status must be <code>requires_capture</code> and <a
+ * href="/docs/api/charges/object#charge_object-payment_method_details-card_present-incremental_authorization_supported">incremental_authorization_supported</a>
+ * must be <code>true</code>.
+ *
+ * Incremental authorizations attempt to increase the authorized amount on your
+ * customer’s card to the new, higher <code>amount</code> provided. As with the
+ * initial authorization, incremental authorizations may be declined. A single
+ * PaymentIntent can call this endpoint multiple times to further increase the
+ * authorized amount.
+ *
+ * If the incremental authorization succeeds, the PaymentIntent object is returned
+ * with the updated <a
+ * href="/docs/api/payment_intents/object#payment_intent_object-amount">amount</a>.
+ * If the incremental authorization fails, a <a
+ * href="/docs/error-codes#card-declined">card_declined</a> error is returned, and
+ * no fields on the PaymentIntent or Charge are updated. The PaymentIntent object
+ * remains capturable for the previously authorized amount.
+ *
+ * Each PaymentIntent can have a maximum of 10 incremental authorization attempts,
+ * including declines. Once captured, a PaymentIntent can no longer be incremented.
+ *
+ * Learn more about <a
+ * href="/docs/terminal/features/incremental-authorizations">incremental
+ * authorizations</a>.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\PaymentIntent
+ */
+ public function incrementAuthorization($id, $params = null, $opts = null)
+ {
+ return $this->request('post', $this->buildPath('/v1/payment_intents/%s/increment_authorization', $id), $params, $opts);
+ }
+
+ /**
+ * Retrieves the details of a PaymentIntent that has previously been created.
+ *
+ * Client-side retrieval using a publishable key is allowed when the
+ * <code>client_secret</code> is provided in the query string.
+ *
+ * When retrieved with a publishable key, only a subset of properties will be
+ * returned. Please refer to the <a href="#payment_intent_object">payment
+ * intent</a> object reference for more details.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\PaymentIntent
+ */
+ public function retrieve($id, $params = null, $opts = null)
+ {
+ return $this->request('get', $this->buildPath('/v1/payment_intents/%s', $id), $params, $opts);
+ }
+
+ /**
+ * Search for PaymentIntents you’ve previously created using Stripe’s <a
+ * href="/docs/search#search-query-language">Search Query Language</a>. Don’t use
+ * search in read-after-write flows where strict consistency is necessary. Under
+ * normal operating conditions, data is searchable in less than a minute.
+ * Occasionally, propagation of new or updated data can be up to an hour behind
+ * during outages. Search functionality is not available to merchants in India.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\SearchResult<\Stripe\PaymentIntent>
+ */
+ public function search($params = null, $opts = null)
+ {
+ return $this->requestSearchResult('get', '/v1/payment_intents/search', $params, $opts);
+ }
+
+ /**
+ * Updates properties on a PaymentIntent object without confirming.
+ *
+ * Depending on which properties you update, you may need to confirm the
+ * PaymentIntent again. For example, updating the <code>payment_method</code> will
+ * always require you to confirm the PaymentIntent again. If you prefer to update
+ * and confirm at the same time, we recommend updating properties via the <a
+ * href="/docs/api/payment_intents/confirm">confirm API</a> instead.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\PaymentIntent
+ */
+ public function update($id, $params = null, $opts = null)
+ {
+ return $this->request('post', $this->buildPath('/v1/payment_intents/%s', $id), $params, $opts);
+ }
+
+ /**
+ * Verifies microdeposits on a PaymentIntent object.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\PaymentIntent
+ */
+ public function verifyMicrodeposits($id, $params = null, $opts = null)
+ {
+ return $this->request('post', $this->buildPath('/v1/payment_intents/%s/verify_microdeposits', $id), $params, $opts);
+ }
+}
diff --git a/vendor/stripe/stripe-php/lib/Service/PaymentLinkService.php b/vendor/stripe/stripe-php/lib/Service/PaymentLinkService.php
new file mode 100644
index 0000000..afd3152
--- /dev/null
+++ b/vendor/stripe/stripe-php/lib/Service/PaymentLinkService.php
@@ -0,0 +1,89 @@
+<?php
+
+// File generated from our OpenAPI spec
+
+namespace Stripe\Service;
+
+class PaymentLinkService extends \Stripe\Service\AbstractService
+{
+ /**
+ * Returns a list of your payment links.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\PaymentLink>
+ */
+ public function all($params = null, $opts = null)
+ {
+ return $this->requestCollection('get', '/v1/payment_links', $params, $opts);
+ }
+
+ /**
+ * When retrieving a payment link, there is an includable
+ * <strong>line_items</strong> property containing the first handful of those
+ * items. There is also a URL where you can retrieve the full (paginated) list of
+ * line items.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\PaymentLink>
+ */
+ public function allLineItems($id, $params = null, $opts = null)
+ {
+ return $this->requestCollection('get', $this->buildPath('/v1/payment_links/%s/line_items', $id), $params, $opts);
+ }
+
+ /**
+ * Creates a payment link.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\PaymentLink
+ */
+ public function create($params = null, $opts = null)
+ {
+ return $this->request('post', '/v1/payment_links', $params, $opts);
+ }
+
+ /**
+ * Retrieve a payment link.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\PaymentLink
+ */
+ public function retrieve($id, $params = null, $opts = null)
+ {
+ return $this->request('get', $this->buildPath('/v1/payment_links/%s', $id), $params, $opts);
+ }
+
+ /**
+ * Updates a payment link.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\PaymentLink
+ */
+ public function update($id, $params = null, $opts = null)
+ {
+ return $this->request('post', $this->buildPath('/v1/payment_links/%s', $id), $params, $opts);
+ }
+}
diff --git a/vendor/stripe/stripe-php/lib/Service/PaymentMethodService.php b/vendor/stripe/stripe-php/lib/Service/PaymentMethodService.php
index 7111b9e..3ab1d24 100644
--- a/vendor/stripe/stripe-php/lib/Service/PaymentMethodService.php
+++ b/vendor/stripe/stripe-php/lib/Service/PaymentMethodService.php
@@ -1,121 +1,130 @@
-<?php
-
-// File generated from our OpenAPI spec
-
-namespace Stripe\Service;
-
-class PaymentMethodService extends \Stripe\Service\AbstractService
-{
- /**
- * Returns a list of PaymentMethods for a given Customer.
- *
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Collection
- */
- public function all($params = null, $opts = null)
- {
- return $this->requestCollection('get', '/v1/payment_methods', $params, $opts);
- }
-
- /**
- * Attaches a PaymentMethod object to a Customer.
- *
- * To attach a new PaymentMethod to a customer for future payments, we recommend
- * you use a <a href="/docs/api/setup_intents">SetupIntent</a> or a PaymentIntent
- * with <a
- * href="/docs/api/payment_intents/create#create_payment_intent-setup_future_usage">setup_future_usage</a>.
- * These approaches will perform any necessary steps to ensure that the
- * PaymentMethod can be used in a future payment. Using the
- * <code>/v1/payment_methods/:id/attach</code> endpoint does not ensure that future
- * payments can be made with the attached PaymentMethod. See <a
- * href="/docs/payments/payment-intents#future-usage">Optimizing cards for future
- * payments</a> for more information about setting up future payments.
- *
- * To use this PaymentMethod as the default for invoice or subscription payments,
- * set <a
- * href="/docs/api/customers/update#update_customer-invoice_settings-default_payment_method"><code>invoice_settings.default_payment_method</code></a>,
- * on the Customer to the PaymentMethod’s ID.
- *
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\PaymentMethod
- */
- public function attach($id, $params = null, $opts = null)
- {
- return $this->request('post', $this->buildPath('/v1/payment_methods/%s/attach', $id), $params, $opts);
- }
-
- /**
- * Creates a PaymentMethod object. Read the <a
- * href="/docs/stripe-js/reference#stripe-create-payment-method">Stripe.js
- * reference</a> to learn how to create PaymentMethods via Stripe.js.
- *
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\PaymentMethod
- */
- public function create($params = null, $opts = null)
- {
- return $this->request('post', '/v1/payment_methods', $params, $opts);
- }
-
- /**
- * Detaches a PaymentMethod object from a Customer.
- *
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\PaymentMethod
- */
- public function detach($id, $params = null, $opts = null)
- {
- return $this->request('post', $this->buildPath('/v1/payment_methods/%s/detach', $id), $params, $opts);
- }
-
- /**
- * Retrieves a PaymentMethod object.
- *
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\PaymentMethod
- */
- public function retrieve($id, $params = null, $opts = null)
- {
- return $this->request('get', $this->buildPath('/v1/payment_methods/%s', $id), $params, $opts);
- }
-
- /**
- * Updates a PaymentMethod object. A PaymentMethod must be attached a customer to
- * be updated.
- *
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\PaymentMethod
- */
- public function update($id, $params = null, $opts = null)
- {
- return $this->request('post', $this->buildPath('/v1/payment_methods/%s', $id), $params, $opts);
- }
-}
+<?php
+
+// File generated from our OpenAPI spec
+
+namespace Stripe\Service;
+
+class PaymentMethodService extends \Stripe\Service\AbstractService
+{
+ /**
+ * Returns a list of PaymentMethods. For listing a customer’s payment methods, you
+ * should use <a href="/docs/api/payment_methods/customer_list">List a Customer’s
+ * PaymentMethods</a>.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\PaymentMethod>
+ */
+ public function all($params = null, $opts = null)
+ {
+ return $this->requestCollection('get', '/v1/payment_methods', $params, $opts);
+ }
+
+ /**
+ * Attaches a PaymentMethod object to a Customer.
+ *
+ * To attach a new PaymentMethod to a customer for future payments, we recommend
+ * you use a <a href="/docs/api/setup_intents">SetupIntent</a> or a PaymentIntent
+ * with <a
+ * href="/docs/api/payment_intents/create#create_payment_intent-setup_future_usage">setup_future_usage</a>.
+ * These approaches will perform any necessary steps to ensure that the
+ * PaymentMethod can be used in a future payment. Using the
+ * <code>/v1/payment_methods/:id/attach</code> endpoint does not ensure that future
+ * payments can be made with the attached PaymentMethod. See <a
+ * href="/docs/payments/payment-intents#future-usage">Optimizing cards for future
+ * payments</a> for more information about setting up future payments.
+ *
+ * To use this PaymentMethod as the default for invoice or subscription payments,
+ * set <a
+ * href="/docs/api/customers/update#update_customer-invoice_settings-default_payment_method"><code>invoice_settings.default_payment_method</code></a>,
+ * on the Customer to the PaymentMethod’s ID.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\PaymentMethod
+ */
+ public function attach($id, $params = null, $opts = null)
+ {
+ return $this->request('post', $this->buildPath('/v1/payment_methods/%s/attach', $id), $params, $opts);
+ }
+
+ /**
+ * Creates a PaymentMethod object. Read the <a
+ * href="/docs/stripe-js/reference#stripe-create-payment-method">Stripe.js
+ * reference</a> to learn how to create PaymentMethods via Stripe.js.
+ *
+ * Instead of creating a PaymentMethod directly, we recommend using the <a
+ * href="/docs/payments/accept-a-payment">PaymentIntents</a> API to accept a
+ * payment immediately or the <a
+ * href="/docs/payments/save-and-reuse">SetupIntent</a> API to collect payment
+ * method details ahead of a future payment.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\PaymentMethod
+ */
+ public function create($params = null, $opts = null)
+ {
+ return $this->request('post', '/v1/payment_methods', $params, $opts);
+ }
+
+ /**
+ * Detaches a PaymentMethod object from a Customer. After a PaymentMethod is
+ * detached, it can no longer be used for a payment or re-attached to a Customer.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\PaymentMethod
+ */
+ public function detach($id, $params = null, $opts = null)
+ {
+ return $this->request('post', $this->buildPath('/v1/payment_methods/%s/detach', $id), $params, $opts);
+ }
+
+ /**
+ * Retrieves a PaymentMethod object.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\PaymentMethod
+ */
+ public function retrieve($id, $params = null, $opts = null)
+ {
+ return $this->request('get', $this->buildPath('/v1/payment_methods/%s', $id), $params, $opts);
+ }
+
+ /**
+ * Updates a PaymentMethod object. A PaymentMethod must be attached a customer to
+ * be updated.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\PaymentMethod
+ */
+ public function update($id, $params = null, $opts = null)
+ {
+ return $this->request('post', $this->buildPath('/v1/payment_methods/%s', $id), $params, $opts);
+ }
+}
diff --git a/vendor/stripe/stripe-php/lib/Service/PayoutService.php b/vendor/stripe/stripe-php/lib/Service/PayoutService.php
index 547e22d..702e051 100644
--- a/vendor/stripe/stripe-php/lib/Service/PayoutService.php
+++ b/vendor/stripe/stripe-php/lib/Service/PayoutService.php
@@ -1,127 +1,127 @@
-<?php
-
-// File generated from our OpenAPI spec
-
-namespace Stripe\Service;
-
-class PayoutService extends \Stripe\Service\AbstractService
-{
- /**
- * Returns a list of existing payouts sent to third-party bank accounts or that
- * Stripe has sent you. The payouts are returned in sorted order, with the most
- * recently created payouts appearing first.
- *
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Collection
- */
- public function all($params = null, $opts = null)
- {
- return $this->requestCollection('get', '/v1/payouts', $params, $opts);
- }
-
- /**
- * A previously created payout can be canceled if it has not yet been paid out.
- * Funds will be refunded to your available balance. You may not cancel automatic
- * Stripe payouts.
- *
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Payout
- */
- public function cancel($id, $params = null, $opts = null)
- {
- return $this->request('post', $this->buildPath('/v1/payouts/%s/cancel', $id), $params, $opts);
- }
-
- /**
- * To send funds to your own bank account, you create a new payout object. Your <a
- * href="#balance">Stripe balance</a> must be able to cover the payout amount, or
- * you’ll receive an “Insufficient Funds” error.
- *
- * If your API key is in test mode, money won’t actually be sent, though everything
- * else will occur as if in live mode.
- *
- * If you are creating a manual payout on a Stripe account that uses multiple
- * payment source types, you’ll need to specify the source type balance that the
- * payout should draw from. The <a href="#balance_object">balance object</a>
- * details available and pending amounts by source type.
- *
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Payout
- */
- public function create($params = null, $opts = null)
- {
- return $this->request('post', '/v1/payouts', $params, $opts);
- }
-
- /**
- * Retrieves the details of an existing payout. Supply the unique payout ID from
- * either a payout creation request or the payout list, and Stripe will return the
- * corresponding payout information.
- *
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Payout
- */
- public function retrieve($id, $params = null, $opts = null)
- {
- return $this->request('get', $this->buildPath('/v1/payouts/%s', $id), $params, $opts);
- }
-
- /**
- * Reverses a payout by debiting the destination bank account. Only payouts for
- * connected accounts to US bank accounts may be reversed at this time. If the
- * payout is in the <code>pending</code> status,
- * <code>/v1/payouts/:id/cancel</code> should be used instead.
- *
- * By requesting a reversal via <code>/v1/payouts/:id/reverse</code>, you confirm
- * that the authorized signatory of the selected bank account has authorized the
- * debit on the bank account and that no other authorization is required.
- *
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Payout
- */
- public function reverse($id, $params = null, $opts = null)
- {
- return $this->request('post', $this->buildPath('/v1/payouts/%s/reverse', $id), $params, $opts);
- }
-
- /**
- * Updates the specified payout by setting the values of the parameters passed. Any
- * parameters not provided will be left unchanged. This request accepts only the
- * metadata as arguments.
- *
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Payout
- */
- public function update($id, $params = null, $opts = null)
- {
- return $this->request('post', $this->buildPath('/v1/payouts/%s', $id), $params, $opts);
- }
-}
+<?php
+
+// File generated from our OpenAPI spec
+
+namespace Stripe\Service;
+
+class PayoutService extends \Stripe\Service\AbstractService
+{
+ /**
+ * Returns a list of existing payouts sent to third-party bank accounts or that
+ * Stripe has sent you. The payouts are returned in sorted order, with the most
+ * recently created payouts appearing first.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\Payout>
+ */
+ public function all($params = null, $opts = null)
+ {
+ return $this->requestCollection('get', '/v1/payouts', $params, $opts);
+ }
+
+ /**
+ * A previously created payout can be canceled if it has not yet been paid out.
+ * Funds will be refunded to your available balance. You may not cancel automatic
+ * Stripe payouts.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Payout
+ */
+ public function cancel($id, $params = null, $opts = null)
+ {
+ return $this->request('post', $this->buildPath('/v1/payouts/%s/cancel', $id), $params, $opts);
+ }
+
+ /**
+ * To send funds to your own bank account, you create a new payout object. Your <a
+ * href="#balance">Stripe balance</a> must be able to cover the payout amount, or
+ * you’ll receive an “Insufficient Funds” error.
+ *
+ * If your API key is in test mode, money won’t actually be sent, though everything
+ * else will occur as if in live mode.
+ *
+ * If you are creating a manual payout on a Stripe account that uses multiple
+ * payment source types, you’ll need to specify the source type balance that the
+ * payout should draw from. The <a href="#balance_object">balance object</a>
+ * details available and pending amounts by source type.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Payout
+ */
+ public function create($params = null, $opts = null)
+ {
+ return $this->request('post', '/v1/payouts', $params, $opts);
+ }
+
+ /**
+ * Retrieves the details of an existing payout. Supply the unique payout ID from
+ * either a payout creation request or the payout list, and Stripe will return the
+ * corresponding payout information.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Payout
+ */
+ public function retrieve($id, $params = null, $opts = null)
+ {
+ return $this->request('get', $this->buildPath('/v1/payouts/%s', $id), $params, $opts);
+ }
+
+ /**
+ * Reverses a payout by debiting the destination bank account. Only payouts for
+ * connected accounts to US bank accounts may be reversed at this time. If the
+ * payout is in the <code>pending</code> status,
+ * <code>/v1/payouts/:id/cancel</code> should be used instead.
+ *
+ * By requesting a reversal via <code>/v1/payouts/:id/reverse</code>, you confirm
+ * that the authorized signatory of the selected bank account has authorized the
+ * debit on the bank account and that no other authorization is required.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Payout
+ */
+ public function reverse($id, $params = null, $opts = null)
+ {
+ return $this->request('post', $this->buildPath('/v1/payouts/%s/reverse', $id), $params, $opts);
+ }
+
+ /**
+ * Updates the specified payout by setting the values of the parameters passed. Any
+ * parameters not provided will be left unchanged. This request accepts only the
+ * metadata as arguments.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Payout
+ */
+ public function update($id, $params = null, $opts = null)
+ {
+ return $this->request('post', $this->buildPath('/v1/payouts/%s', $id), $params, $opts);
+ }
+}
diff --git a/vendor/stripe/stripe-php/lib/Service/PlanService.php b/vendor/stripe/stripe-php/lib/Service/PlanService.php
index 16625d2..c71394a 100644
--- a/vendor/stripe/stripe-php/lib/Service/PlanService.php
+++ b/vendor/stripe/stripe-php/lib/Service/PlanService.php
@@ -1,91 +1,91 @@
-<?php
-
-// File generated from our OpenAPI spec
-
-namespace Stripe\Service;
-
-class PlanService extends \Stripe\Service\AbstractService
-{
- /**
- * Returns a list of your plans.
- *
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Collection
- */
- public function all($params = null, $opts = null)
- {
- return $this->requestCollection('get', '/v1/plans', $params, $opts);
- }
-
- /**
- * You can now model subscriptions more flexibly using the <a href="#prices">Prices
- * API</a>. It replaces the Plans API and is backwards compatible to simplify your
- * migration.
- *
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Plan
- */
- public function create($params = null, $opts = null)
- {
- return $this->request('post', '/v1/plans', $params, $opts);
- }
-
- /**
- * Deleting plans means new subscribers can’t be added. Existing subscribers aren’t
- * affected.
- *
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Plan
- */
- public function delete($id, $params = null, $opts = null)
- {
- return $this->request('delete', $this->buildPath('/v1/plans/%s', $id), $params, $opts);
- }
-
- /**
- * Retrieves the plan with the given ID.
- *
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Plan
- */
- public function retrieve($id, $params = null, $opts = null)
- {
- return $this->request('get', $this->buildPath('/v1/plans/%s', $id), $params, $opts);
- }
-
- /**
- * Updates the specified plan by setting the values of the parameters passed. Any
- * parameters not provided are left unchanged. By design, you cannot change a
- * plan’s ID, amount, currency, or billing cycle.
- *
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Plan
- */
- public function update($id, $params = null, $opts = null)
- {
- return $this->request('post', $this->buildPath('/v1/plans/%s', $id), $params, $opts);
- }
-}
+<?php
+
+// File generated from our OpenAPI spec
+
+namespace Stripe\Service;
+
+class PlanService extends \Stripe\Service\AbstractService
+{
+ /**
+ * Returns a list of your plans.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\Plan>
+ */
+ public function all($params = null, $opts = null)
+ {
+ return $this->requestCollection('get', '/v1/plans', $params, $opts);
+ }
+
+ /**
+ * You can now model subscriptions more flexibly using the <a href="#prices">Prices
+ * API</a>. It replaces the Plans API and is backwards compatible to simplify your
+ * migration.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Plan
+ */
+ public function create($params = null, $opts = null)
+ {
+ return $this->request('post', '/v1/plans', $params, $opts);
+ }
+
+ /**
+ * Deleting plans means new subscribers can’t be added. Existing subscribers aren’t
+ * affected.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Plan
+ */
+ public function delete($id, $params = null, $opts = null)
+ {
+ return $this->request('delete', $this->buildPath('/v1/plans/%s', $id), $params, $opts);
+ }
+
+ /**
+ * Retrieves the plan with the given ID.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Plan
+ */
+ public function retrieve($id, $params = null, $opts = null)
+ {
+ return $this->request('get', $this->buildPath('/v1/plans/%s', $id), $params, $opts);
+ }
+
+ /**
+ * Updates the specified plan by setting the values of the parameters passed. Any
+ * parameters not provided are left unchanged. By design, you cannot change a
+ * plan’s ID, amount, currency, or billing cycle.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Plan
+ */
+ public function update($id, $params = null, $opts = null)
+ {
+ return $this->request('post', $this->buildPath('/v1/plans/%s', $id), $params, $opts);
+ }
+}
diff --git a/vendor/stripe/stripe-php/lib/Service/PriceService.php b/vendor/stripe/stripe-php/lib/Service/PriceService.php
index cc44f69..33c62db 100644
--- a/vendor/stripe/stripe-php/lib/Service/PriceService.php
+++ b/vendor/stripe/stripe-php/lib/Service/PriceService.php
@@ -1,72 +1,92 @@
-<?php
-
-// File generated from our OpenAPI spec
-
-namespace Stripe\Service;
-
-class PriceService extends \Stripe\Service\AbstractService
-{
- /**
- * Returns a list of your prices.
- *
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Collection
- */
- public function all($params = null, $opts = null)
- {
- return $this->requestCollection('get', '/v1/prices', $params, $opts);
- }
-
- /**
- * Creates a new price for an existing product. The price can be recurring or
- * one-time.
- *
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Price
- */
- public function create($params = null, $opts = null)
- {
- return $this->request('post', '/v1/prices', $params, $opts);
- }
-
- /**
- * Retrieves the price with the given ID.
- *
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Price
- */
- public function retrieve($id, $params = null, $opts = null)
- {
- return $this->request('get', $this->buildPath('/v1/prices/%s', $id), $params, $opts);
- }
-
- /**
- * Updates the specified price by setting the values of the parameters passed. Any
- * parameters not provided are left unchanged.
- *
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Price
- */
- public function update($id, $params = null, $opts = null)
- {
- return $this->request('post', $this->buildPath('/v1/prices/%s', $id), $params, $opts);
- }
-}
+<?php
+
+// File generated from our OpenAPI spec
+
+namespace Stripe\Service;
+
+class PriceService extends \Stripe\Service\AbstractService
+{
+ /**
+ * Returns a list of your prices.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\Price>
+ */
+ public function all($params = null, $opts = null)
+ {
+ return $this->requestCollection('get', '/v1/prices', $params, $opts);
+ }
+
+ /**
+ * Creates a new price for an existing product. The price can be recurring or
+ * one-time.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Price
+ */
+ public function create($params = null, $opts = null)
+ {
+ return $this->request('post', '/v1/prices', $params, $opts);
+ }
+
+ /**
+ * Retrieves the price with the given ID.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Price
+ */
+ public function retrieve($id, $params = null, $opts = null)
+ {
+ return $this->request('get', $this->buildPath('/v1/prices/%s', $id), $params, $opts);
+ }
+
+ /**
+ * Search for prices you’ve previously created using Stripe’s <a
+ * href="/docs/search#search-query-language">Search Query Language</a>. Don’t use
+ * search in read-after-write flows where strict consistency is necessary. Under
+ * normal operating conditions, data is searchable in less than a minute.
+ * Occasionally, propagation of new or updated data can be up to an hour behind
+ * during outages. Search functionality is not available to merchants in India.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\SearchResult<\Stripe\Price>
+ */
+ public function search($params = null, $opts = null)
+ {
+ return $this->requestSearchResult('get', '/v1/prices/search', $params, $opts);
+ }
+
+ /**
+ * Updates the specified price by setting the values of the parameters passed. Any
+ * parameters not provided are left unchanged.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Price
+ */
+ public function update($id, $params = null, $opts = null)
+ {
+ return $this->request('post', $this->buildPath('/v1/prices/%s', $id), $params, $opts);
+ }
+}
diff --git a/vendor/stripe/stripe-php/lib/Service/ProductService.php b/vendor/stripe/stripe-php/lib/Service/ProductService.php
index 850cea5..32f8ba1 100644
--- a/vendor/stripe/stripe-php/lib/Service/ProductService.php
+++ b/vendor/stripe/stripe-php/lib/Service/ProductService.php
@@ -1,92 +1,112 @@
-<?php
-
-// File generated from our OpenAPI spec
-
-namespace Stripe\Service;
-
-class ProductService extends \Stripe\Service\AbstractService
-{
- /**
- * Returns a list of your products. The products are returned sorted by creation
- * date, with the most recently created products appearing first.
- *
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Collection
- */
- public function all($params = null, $opts = null)
- {
- return $this->requestCollection('get', '/v1/products', $params, $opts);
- }
-
- /**
- * Creates a new product object.
- *
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Product
- */
- public function create($params = null, $opts = null)
- {
- return $this->request('post', '/v1/products', $params, $opts);
- }
-
- /**
- * Delete a product. Deleting a product is only possible if it has no prices
- * associated with it. Additionally, deleting a product with <code>type=good</code>
- * is only possible if it has no SKUs associated with it.
- *
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Product
- */
- public function delete($id, $params = null, $opts = null)
- {
- return $this->request('delete', $this->buildPath('/v1/products/%s', $id), $params, $opts);
- }
-
- /**
- * Retrieves the details of an existing product. Supply the unique product ID from
- * either a product creation request or the product list, and Stripe will return
- * the corresponding product information.
- *
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Product
- */
- public function retrieve($id, $params = null, $opts = null)
- {
- return $this->request('get', $this->buildPath('/v1/products/%s', $id), $params, $opts);
- }
-
- /**
- * Updates the specific product by setting the values of the parameters passed. Any
- * parameters not provided will be left unchanged.
- *
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Product
- */
- public function update($id, $params = null, $opts = null)
- {
- return $this->request('post', $this->buildPath('/v1/products/%s', $id), $params, $opts);
- }
-}
+<?php
+
+// File generated from our OpenAPI spec
+
+namespace Stripe\Service;
+
+class ProductService extends \Stripe\Service\AbstractService
+{
+ /**
+ * Returns a list of your products. The products are returned sorted by creation
+ * date, with the most recently created products appearing first.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\Product>
+ */
+ public function all($params = null, $opts = null)
+ {
+ return $this->requestCollection('get', '/v1/products', $params, $opts);
+ }
+
+ /**
+ * Creates a new product object.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Product
+ */
+ public function create($params = null, $opts = null)
+ {
+ return $this->request('post', '/v1/products', $params, $opts);
+ }
+
+ /**
+ * Delete a product. Deleting a product is only possible if it has no prices
+ * associated with it. Additionally, deleting a product with <code>type=good</code>
+ * is only possible if it has no SKUs associated with it.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Product
+ */
+ public function delete($id, $params = null, $opts = null)
+ {
+ return $this->request('delete', $this->buildPath('/v1/products/%s', $id), $params, $opts);
+ }
+
+ /**
+ * Retrieves the details of an existing product. Supply the unique product ID from
+ * either a product creation request or the product list, and Stripe will return
+ * the corresponding product information.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Product
+ */
+ public function retrieve($id, $params = null, $opts = null)
+ {
+ return $this->request('get', $this->buildPath('/v1/products/%s', $id), $params, $opts);
+ }
+
+ /**
+ * Search for products you’ve previously created using Stripe’s <a
+ * href="/docs/search#search-query-language">Search Query Language</a>. Don’t use
+ * search in read-after-write flows where strict consistency is necessary. Under
+ * normal operating conditions, data is searchable in less than a minute.
+ * Occasionally, propagation of new or updated data can be up to an hour behind
+ * during outages. Search functionality is not available to merchants in India.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\SearchResult<\Stripe\Product>
+ */
+ public function search($params = null, $opts = null)
+ {
+ return $this->requestSearchResult('get', '/v1/products/search', $params, $opts);
+ }
+
+ /**
+ * Updates the specific product by setting the values of the parameters passed. Any
+ * parameters not provided will be left unchanged.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Product
+ */
+ public function update($id, $params = null, $opts = null)
+ {
+ return $this->request('post', $this->buildPath('/v1/products/%s', $id), $params, $opts);
+ }
+}
diff --git a/vendor/stripe/stripe-php/lib/Service/PromotionCodeService.php b/vendor/stripe/stripe-php/lib/Service/PromotionCodeService.php
index 1de5696..7f8d4dc 100644
--- a/vendor/stripe/stripe-php/lib/Service/PromotionCodeService.php
+++ b/vendor/stripe/stripe-php/lib/Service/PromotionCodeService.php
@@ -1,72 +1,75 @@
-<?php
-
-// File generated from our OpenAPI spec
-
-namespace Stripe\Service;
-
-class PromotionCodeService extends \Stripe\Service\AbstractService
-{
- /**
- * Returns a list of your promotion codes.
- *
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Collection
- */
- public function all($params = null, $opts = null)
- {
- return $this->requestCollection('get', '/v1/promotion_codes', $params, $opts);
- }
-
- /**
- * A promotion code points to a coupon. You can optionally restrict the code to a
- * specific customer, redemption limit, and expiration date.
- *
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\PromotionCode
- */
- public function create($params = null, $opts = null)
- {
- return $this->request('post', '/v1/promotion_codes', $params, $opts);
- }
-
- /**
- * Retrieves the promotion code with the given ID.
- *
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\PromotionCode
- */
- public function retrieve($id, $params = null, $opts = null)
- {
- return $this->request('get', $this->buildPath('/v1/promotion_codes/%s', $id), $params, $opts);
- }
-
- /**
- * Updates the specified promotion code by setting the values of the parameters
- * passed. Most fields are, by design, not editable.
- *
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\PromotionCode
- */
- public function update($id, $params = null, $opts = null)
- {
- return $this->request('post', $this->buildPath('/v1/promotion_codes/%s', $id), $params, $opts);
- }
-}
+<?php
+
+// File generated from our OpenAPI spec
+
+namespace Stripe\Service;
+
+class PromotionCodeService extends \Stripe\Service\AbstractService
+{
+ /**
+ * Returns a list of your promotion codes.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\PromotionCode>
+ */
+ public function all($params = null, $opts = null)
+ {
+ return $this->requestCollection('get', '/v1/promotion_codes', $params, $opts);
+ }
+
+ /**
+ * A promotion code points to a coupon. You can optionally restrict the code to a
+ * specific customer, redemption limit, and expiration date.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\PromotionCode
+ */
+ public function create($params = null, $opts = null)
+ {
+ return $this->request('post', '/v1/promotion_codes', $params, $opts);
+ }
+
+ /**
+ * Retrieves the promotion code with the given ID. In order to retrieve a promotion
+ * code by the customer-facing <code>code</code> use <a
+ * href="/docs/api/promotion_codes/list">list</a> with the desired
+ * <code>code</code>.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\PromotionCode
+ */
+ public function retrieve($id, $params = null, $opts = null)
+ {
+ return $this->request('get', $this->buildPath('/v1/promotion_codes/%s', $id), $params, $opts);
+ }
+
+ /**
+ * Updates the specified promotion code by setting the values of the parameters
+ * passed. Most fields are, by design, not editable.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\PromotionCode
+ */
+ public function update($id, $params = null, $opts = null)
+ {
+ return $this->request('post', $this->buildPath('/v1/promotion_codes/%s', $id), $params, $opts);
+ }
+}
diff --git a/vendor/stripe/stripe-php/lib/Service/QuoteService.php b/vendor/stripe/stripe-php/lib/Service/QuoteService.php
new file mode 100644
index 0000000..721a5e1
--- /dev/null
+++ b/vendor/stripe/stripe-php/lib/Service/QuoteService.php
@@ -0,0 +1,177 @@
+<?php
+
+// File generated from our OpenAPI spec
+
+namespace Stripe\Service;
+
+class QuoteService extends \Stripe\Service\AbstractService
+{
+ /**
+ * Accepts the specified quote.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Quote
+ */
+ public function accept($id, $params = null, $opts = null)
+ {
+ return $this->request('post', $this->buildPath('/v1/quotes/%s/accept', $id), $params, $opts);
+ }
+
+ /**
+ * Returns a list of your quotes.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\Quote>
+ */
+ public function all($params = null, $opts = null)
+ {
+ return $this->requestCollection('get', '/v1/quotes', $params, $opts);
+ }
+
+ /**
+ * When retrieving a quote, there is an includable <a
+ * href="https://stripe.com/docs/api/quotes/object#quote_object-computed-upfront-line_items"><strong>computed.upfront.line_items</strong></a>
+ * property containing the first handful of those items. There is also a URL where
+ * you can retrieve the full (paginated) list of upfront line items.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\Quote>
+ */
+ public function allComputedUpfrontLineItems($id, $params = null, $opts = null)
+ {
+ return $this->requestCollection('get', $this->buildPath('/v1/quotes/%s/computed_upfront_line_items', $id), $params, $opts);
+ }
+
+ /**
+ * When retrieving a quote, there is an includable <strong>line_items</strong>
+ * property containing the first handful of those items. There is also a URL where
+ * you can retrieve the full (paginated) list of line items.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\Quote>
+ */
+ public function allLineItems($id, $params = null, $opts = null)
+ {
+ return $this->requestCollection('get', $this->buildPath('/v1/quotes/%s/line_items', $id), $params, $opts);
+ }
+
+ /**
+ * Cancels the quote.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Quote
+ */
+ public function cancel($id, $params = null, $opts = null)
+ {
+ return $this->request('post', $this->buildPath('/v1/quotes/%s/cancel', $id), $params, $opts);
+ }
+
+ /**
+ * A quote models prices and services for a customer. Default options for
+ * <code>header</code>, <code>description</code>, <code>footer</code>, and
+ * <code>expires_at</code> can be set in the dashboard via the <a
+ * href="https://dashboard.stripe.com/settings/billing/quote">quote template</a>.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Quote
+ */
+ public function create($params = null, $opts = null)
+ {
+ return $this->request('post', '/v1/quotes', $params, $opts);
+ }
+
+ /**
+ * Finalizes the quote.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Quote
+ */
+ public function finalizeQuote($id, $params = null, $opts = null)
+ {
+ return $this->request('post', $this->buildPath('/v1/quotes/%s/finalize', $id), $params, $opts);
+ }
+
+ /**
+ * Retrieves the quote with the given ID.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Quote
+ */
+ public function retrieve($id, $params = null, $opts = null)
+ {
+ return $this->request('get', $this->buildPath('/v1/quotes/%s', $id), $params, $opts);
+ }
+
+ /**
+ * A quote models prices and services for a customer.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Quote
+ */
+ public function update($id, $params = null, $opts = null)
+ {
+ return $this->request('post', $this->buildPath('/v1/quotes/%s', $id), $params, $opts);
+ }
+
+ /**
+ * Download the PDF for a finalized quote.
+ *
+ * @param string $id
+ * @param callable $readBodyChunkCallable
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ */
+ public function pdf($id, $readBodyChunkCallable, $params = null, $opts = null)
+ {
+ $opts = \Stripe\Util\RequestOptions::parse($opts);
+ if (!isset($opts->apiBase)) {
+ $opts->apiBase = $this->getClient()->getFilesBase();
+ }
+ $this->requestStream('get', $this->buildPath('/v1/quotes/%s/pdf', $id), $readBodyChunkCallable, $params, $opts);
+ }
+}
diff --git a/vendor/stripe/stripe-php/lib/Service/Radar/EarlyFraudWarningService.php b/vendor/stripe/stripe-php/lib/Service/Radar/EarlyFraudWarningService.php
index 7b09734..1d358f5 100644
--- a/vendor/stripe/stripe-php/lib/Service/Radar/EarlyFraudWarningService.php
+++ b/vendor/stripe/stripe-php/lib/Service/Radar/EarlyFraudWarningService.php
@@ -1,43 +1,43 @@
-<?php
-
-// File generated from our OpenAPI spec
-
-namespace Stripe\Service\Radar;
-
-class EarlyFraudWarningService extends \Stripe\Service\AbstractService
-{
- /**
- * Returns a list of early fraud warnings.
- *
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Collection
- */
- public function all($params = null, $opts = null)
- {
- return $this->requestCollection('get', '/v1/radar/early_fraud_warnings', $params, $opts);
- }
-
- /**
- * Retrieves the details of an early fraud warning that has previously been
- * created.
- *
- * Please refer to the <a href="#early_fraud_warning_object">early fraud
- * warning</a> object reference for more details.
- *
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Radar\EarlyFraudWarning
- */
- public function retrieve($id, $params = null, $opts = null)
- {
- return $this->request('get', $this->buildPath('/v1/radar/early_fraud_warnings/%s', $id), $params, $opts);
- }
-}
+<?php
+
+// File generated from our OpenAPI spec
+
+namespace Stripe\Service\Radar;
+
+class EarlyFraudWarningService extends \Stripe\Service\AbstractService
+{
+ /**
+ * Returns a list of early fraud warnings.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\Radar\EarlyFraudWarning>
+ */
+ public function all($params = null, $opts = null)
+ {
+ return $this->requestCollection('get', '/v1/radar/early_fraud_warnings', $params, $opts);
+ }
+
+ /**
+ * Retrieves the details of an early fraud warning that has previously been
+ * created.
+ *
+ * Please refer to the <a href="#early_fraud_warning_object">early fraud
+ * warning</a> object reference for more details.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Radar\EarlyFraudWarning
+ */
+ public function retrieve($id, $params = null, $opts = null)
+ {
+ return $this->request('get', $this->buildPath('/v1/radar/early_fraud_warnings/%s', $id), $params, $opts);
+ }
+}
diff --git a/vendor/stripe/stripe-php/lib/Service/Radar/RadarServiceFactory.php b/vendor/stripe/stripe-php/lib/Service/Radar/RadarServiceFactory.php
index b093c67..157a767 100644
--- a/vendor/stripe/stripe-php/lib/Service/Radar/RadarServiceFactory.php
+++ b/vendor/stripe/stripe-php/lib/Service/Radar/RadarServiceFactory.php
@@ -1,29 +1,29 @@
-<?php
-
-// File generated from our OpenAPI spec
-
-namespace Stripe\Service\Radar;
-
-/**
- * Service factory class for API resources in the Radar namespace.
- *
- * @property EarlyFraudWarningService $earlyFraudWarnings
- * @property ValueListItemService $valueListItems
- * @property ValueListService $valueLists
- */
-class RadarServiceFactory extends \Stripe\Service\AbstractServiceFactory
-{
- /**
- * @var array<string, string>
- */
- private static $classMap = [
- 'earlyFraudWarnings' => EarlyFraudWarningService::class,
- 'valueListItems' => ValueListItemService::class,
- 'valueLists' => ValueListService::class,
- ];
-
- protected function getServiceClass($name)
- {
- return \array_key_exists($name, self::$classMap) ? self::$classMap[$name] : null;
- }
-}
+<?php
+
+// File generated from our OpenAPI spec
+
+namespace Stripe\Service\Radar;
+
+/**
+ * Service factory class for API resources in the Radar namespace.
+ *
+ * @property EarlyFraudWarningService $earlyFraudWarnings
+ * @property ValueListItemService $valueListItems
+ * @property ValueListService $valueLists
+ */
+class RadarServiceFactory extends \Stripe\Service\AbstractServiceFactory
+{
+ /**
+ * @var array<string, string>
+ */
+ private static $classMap = [
+ 'earlyFraudWarnings' => EarlyFraudWarningService::class,
+ 'valueListItems' => ValueListItemService::class,
+ 'valueLists' => ValueListService::class,
+ ];
+
+ protected function getServiceClass($name)
+ {
+ return \array_key_exists($name, self::$classMap) ? self::$classMap[$name] : null;
+ }
+}
diff --git a/vendor/stripe/stripe-php/lib/Service/Radar/ValueListItemService.php b/vendor/stripe/stripe-php/lib/Service/Radar/ValueListItemService.php
index 89eba2a..7177e28 100644
--- a/vendor/stripe/stripe-php/lib/Service/Radar/ValueListItemService.php
+++ b/vendor/stripe/stripe-php/lib/Service/Radar/ValueListItemService.php
@@ -1,74 +1,74 @@
-<?php
-
-// File generated from our OpenAPI spec
-
-namespace Stripe\Service\Radar;
-
-class ValueListItemService extends \Stripe\Service\AbstractService
-{
- /**
- * Returns a list of <code>ValueListItem</code> objects. The objects are sorted in
- * descending order by creation date, with the most recently created object
- * appearing first.
- *
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Collection
- */
- public function all($params = null, $opts = null)
- {
- return $this->requestCollection('get', '/v1/radar/value_list_items', $params, $opts);
- }
-
- /**
- * Creates a new <code>ValueListItem</code> object, which is added to the specified
- * parent value list.
- *
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Radar\ValueListItem
- */
- public function create($params = null, $opts = null)
- {
- return $this->request('post', '/v1/radar/value_list_items', $params, $opts);
- }
-
- /**
- * Deletes a <code>ValueListItem</code> object, removing it from its parent value
- * list.
- *
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Radar\ValueListItem
- */
- public function delete($id, $params = null, $opts = null)
- {
- return $this->request('delete', $this->buildPath('/v1/radar/value_list_items/%s', $id), $params, $opts);
- }
-
- /**
- * Retrieves a <code>ValueListItem</code> object.
- *
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Radar\ValueListItem
- */
- public function retrieve($id, $params = null, $opts = null)
- {
- return $this->request('get', $this->buildPath('/v1/radar/value_list_items/%s', $id), $params, $opts);
- }
-}
+<?php
+
+// File generated from our OpenAPI spec
+
+namespace Stripe\Service\Radar;
+
+class ValueListItemService extends \Stripe\Service\AbstractService
+{
+ /**
+ * Returns a list of <code>ValueListItem</code> objects. The objects are sorted in
+ * descending order by creation date, with the most recently created object
+ * appearing first.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\Radar\ValueListItem>
+ */
+ public function all($params = null, $opts = null)
+ {
+ return $this->requestCollection('get', '/v1/radar/value_list_items', $params, $opts);
+ }
+
+ /**
+ * Creates a new <code>ValueListItem</code> object, which is added to the specified
+ * parent value list.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Radar\ValueListItem
+ */
+ public function create($params = null, $opts = null)
+ {
+ return $this->request('post', '/v1/radar/value_list_items', $params, $opts);
+ }
+
+ /**
+ * Deletes a <code>ValueListItem</code> object, removing it from its parent value
+ * list.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Radar\ValueListItem
+ */
+ public function delete($id, $params = null, $opts = null)
+ {
+ return $this->request('delete', $this->buildPath('/v1/radar/value_list_items/%s', $id), $params, $opts);
+ }
+
+ /**
+ * Retrieves a <code>ValueListItem</code> object.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Radar\ValueListItem
+ */
+ public function retrieve($id, $params = null, $opts = null)
+ {
+ return $this->request('get', $this->buildPath('/v1/radar/value_list_items/%s', $id), $params, $opts);
+ }
+}
diff --git a/vendor/stripe/stripe-php/lib/Service/Radar/ValueListService.php b/vendor/stripe/stripe-php/lib/Service/Radar/ValueListService.php
index 64ac2ee..a6f0e12 100644
--- a/vendor/stripe/stripe-php/lib/Service/Radar/ValueListService.php
+++ b/vendor/stripe/stripe-php/lib/Service/Radar/ValueListService.php
@@ -1,93 +1,93 @@
-<?php
-
-// File generated from our OpenAPI spec
-
-namespace Stripe\Service\Radar;
-
-class ValueListService extends \Stripe\Service\AbstractService
-{
- /**
- * Returns a list of <code>ValueList</code> objects. The objects are sorted in
- * descending order by creation date, with the most recently created object
- * appearing first.
- *
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Collection
- */
- public function all($params = null, $opts = null)
- {
- return $this->requestCollection('get', '/v1/radar/value_lists', $params, $opts);
- }
-
- /**
- * Creates a new <code>ValueList</code> object, which can then be referenced in
- * rules.
- *
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Radar\ValueList
- */
- public function create($params = null, $opts = null)
- {
- return $this->request('post', '/v1/radar/value_lists', $params, $opts);
- }
-
- /**
- * Deletes a <code>ValueList</code> object, also deleting any items contained
- * within the value list. To be deleted, a value list must not be referenced in any
- * rules.
- *
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Radar\ValueList
- */
- public function delete($id, $params = null, $opts = null)
- {
- return $this->request('delete', $this->buildPath('/v1/radar/value_lists/%s', $id), $params, $opts);
- }
-
- /**
- * Retrieves a <code>ValueList</code> object.
- *
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Radar\ValueList
- */
- public function retrieve($id, $params = null, $opts = null)
- {
- return $this->request('get', $this->buildPath('/v1/radar/value_lists/%s', $id), $params, $opts);
- }
-
- /**
- * Updates a <code>ValueList</code> object by setting the values of the parameters
- * passed. Any parameters not provided will be left unchanged. Note that
- * <code>item_type</code> is immutable.
- *
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Radar\ValueList
- */
- public function update($id, $params = null, $opts = null)
- {
- return $this->request('post', $this->buildPath('/v1/radar/value_lists/%s', $id), $params, $opts);
- }
-}
+<?php
+
+// File generated from our OpenAPI spec
+
+namespace Stripe\Service\Radar;
+
+class ValueListService extends \Stripe\Service\AbstractService
+{
+ /**
+ * Returns a list of <code>ValueList</code> objects. The objects are sorted in
+ * descending order by creation date, with the most recently created object
+ * appearing first.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\Radar\ValueList>
+ */
+ public function all($params = null, $opts = null)
+ {
+ return $this->requestCollection('get', '/v1/radar/value_lists', $params, $opts);
+ }
+
+ /**
+ * Creates a new <code>ValueList</code> object, which can then be referenced in
+ * rules.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Radar\ValueList
+ */
+ public function create($params = null, $opts = null)
+ {
+ return $this->request('post', '/v1/radar/value_lists', $params, $opts);
+ }
+
+ /**
+ * Deletes a <code>ValueList</code> object, also deleting any items contained
+ * within the value list. To be deleted, a value list must not be referenced in any
+ * rules.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Radar\ValueList
+ */
+ public function delete($id, $params = null, $opts = null)
+ {
+ return $this->request('delete', $this->buildPath('/v1/radar/value_lists/%s', $id), $params, $opts);
+ }
+
+ /**
+ * Retrieves a <code>ValueList</code> object.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Radar\ValueList
+ */
+ public function retrieve($id, $params = null, $opts = null)
+ {
+ return $this->request('get', $this->buildPath('/v1/radar/value_lists/%s', $id), $params, $opts);
+ }
+
+ /**
+ * Updates a <code>ValueList</code> object by setting the values of the parameters
+ * passed. Any parameters not provided will be left unchanged. Note that
+ * <code>item_type</code> is immutable.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Radar\ValueList
+ */
+ public function update($id, $params = null, $opts = null)
+ {
+ return $this->request('post', $this->buildPath('/v1/radar/value_lists/%s', $id), $params, $opts);
+ }
+}
diff --git a/vendor/stripe/stripe-php/lib/Service/RefundService.php b/vendor/stripe/stripe-php/lib/Service/RefundService.php
index 49b4267..8744b8b 100644
--- a/vendor/stripe/stripe-php/lib/Service/RefundService.php
+++ b/vendor/stripe/stripe-php/lib/Service/RefundService.php
@@ -1,76 +1,95 @@
-<?php
-
-// File generated from our OpenAPI spec
-
-namespace Stripe\Service;
-
-class RefundService extends \Stripe\Service\AbstractService
-{
- /**
- * Returns a list of all refunds you’ve previously created. The refunds are
- * returned in sorted order, with the most recent refunds appearing first. For
- * convenience, the 10 most recent refunds are always available by default on the
- * charge object.
- *
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Collection
- */
- public function all($params = null, $opts = null)
- {
- return $this->requestCollection('get', '/v1/refunds', $params, $opts);
- }
-
- /**
- * Create a refund.
- *
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Refund
- */
- public function create($params = null, $opts = null)
- {
- return $this->request('post', '/v1/refunds', $params, $opts);
- }
-
- /**
- * Retrieves the details of an existing refund.
- *
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Refund
- */
- public function retrieve($id, $params = null, $opts = null)
- {
- return $this->request('get', $this->buildPath('/v1/refunds/%s', $id), $params, $opts);
- }
-
- /**
- * Updates the specified refund by setting the values of the parameters passed. Any
- * parameters not provided will be left unchanged.
- *
- * This request only accepts <code>metadata</code> as an argument.
- *
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Refund
- */
- public function update($id, $params = null, $opts = null)
- {
- return $this->request('post', $this->buildPath('/v1/refunds/%s', $id), $params, $opts);
- }
-}
+<?php
+
+// File generated from our OpenAPI spec
+
+namespace Stripe\Service;
+
+class RefundService extends \Stripe\Service\AbstractService
+{
+ /**
+ * Returns a list of all refunds you’ve previously created. The refunds are
+ * returned in sorted order, with the most recent refunds appearing first. For
+ * convenience, the 10 most recent refunds are always available by default on the
+ * charge object.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\Refund>
+ */
+ public function all($params = null, $opts = null)
+ {
+ return $this->requestCollection('get', '/v1/refunds', $params, $opts);
+ }
+
+ /**
+ * Cancels a refund with a status of <code>requires_action</code>.
+ *
+ * Refunds in other states cannot be canceled, and only refunds for payment methods
+ * that require customer action will enter the <code>requires_action</code> state.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Refund
+ */
+ public function cancel($id, $params = null, $opts = null)
+ {
+ return $this->request('post', $this->buildPath('/v1/refunds/%s/cancel', $id), $params, $opts);
+ }
+
+ /**
+ * Create a refund.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Refund
+ */
+ public function create($params = null, $opts = null)
+ {
+ return $this->request('post', '/v1/refunds', $params, $opts);
+ }
+
+ /**
+ * Retrieves the details of an existing refund.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Refund
+ */
+ public function retrieve($id, $params = null, $opts = null)
+ {
+ return $this->request('get', $this->buildPath('/v1/refunds/%s', $id), $params, $opts);
+ }
+
+ /**
+ * Updates the specified refund by setting the values of the parameters passed. Any
+ * parameters not provided will be left unchanged.
+ *
+ * This request only accepts <code>metadata</code> as an argument.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Refund
+ */
+ public function update($id, $params = null, $opts = null)
+ {
+ return $this->request('post', $this->buildPath('/v1/refunds/%s', $id), $params, $opts);
+ }
+}
diff --git a/vendor/stripe/stripe-php/lib/Service/Reporting/ReportRunService.php b/vendor/stripe/stripe-php/lib/Service/Reporting/ReportRunService.php
index 692420c..da01985 100644
--- a/vendor/stripe/stripe-php/lib/Service/Reporting/ReportRunService.php
+++ b/vendor/stripe/stripe-php/lib/Service/Reporting/ReportRunService.php
@@ -1,55 +1,55 @@
-<?php
-
-// File generated from our OpenAPI spec
-
-namespace Stripe\Service\Reporting;
-
-class ReportRunService extends \Stripe\Service\AbstractService
-{
- /**
- * Returns a list of Report Runs, with the most recent appearing first.
- *
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Collection
- */
- public function all($params = null, $opts = null)
- {
- return $this->requestCollection('get', '/v1/reporting/report_runs', $params, $opts);
- }
-
- /**
- * Creates a new object and begin running the report. (Certain report types require
- * a <a href="https://stripe.com/docs/keys#test-live-modes">live-mode API key</a>.).
- *
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Reporting\ReportRun
- */
- public function create($params = null, $opts = null)
- {
- return $this->request('post', '/v1/reporting/report_runs', $params, $opts);
- }
-
- /**
- * Retrieves the details of an existing Report Run.
- *
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Reporting\ReportRun
- */
- public function retrieve($id, $params = null, $opts = null)
- {
- return $this->request('get', $this->buildPath('/v1/reporting/report_runs/%s', $id), $params, $opts);
- }
-}
+<?php
+
+// File generated from our OpenAPI spec
+
+namespace Stripe\Service\Reporting;
+
+class ReportRunService extends \Stripe\Service\AbstractService
+{
+ /**
+ * Returns a list of Report Runs, with the most recent appearing first.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\Reporting\ReportRun>
+ */
+ public function all($params = null, $opts = null)
+ {
+ return $this->requestCollection('get', '/v1/reporting/report_runs', $params, $opts);
+ }
+
+ /**
+ * Creates a new object and begin running the report. (Certain report types require
+ * a <a href="https://stripe.com/docs/keys#test-live-modes">live-mode API key</a>.).
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Reporting\ReportRun
+ */
+ public function create($params = null, $opts = null)
+ {
+ return $this->request('post', '/v1/reporting/report_runs', $params, $opts);
+ }
+
+ /**
+ * Retrieves the details of an existing Report Run.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Reporting\ReportRun
+ */
+ public function retrieve($id, $params = null, $opts = null)
+ {
+ return $this->request('get', $this->buildPath('/v1/reporting/report_runs/%s', $id), $params, $opts);
+ }
+}
diff --git a/vendor/stripe/stripe-php/lib/Service/Reporting/ReportTypeService.php b/vendor/stripe/stripe-php/lib/Service/Reporting/ReportTypeService.php
index e1b4ea5..bb8c24c 100644
--- a/vendor/stripe/stripe-php/lib/Service/Reporting/ReportTypeService.php
+++ b/vendor/stripe/stripe-php/lib/Service/Reporting/ReportTypeService.php
@@ -1,40 +1,40 @@
-<?php
-
-// File generated from our OpenAPI spec
-
-namespace Stripe\Service\Reporting;
-
-class ReportTypeService extends \Stripe\Service\AbstractService
-{
- /**
- * Returns a full list of Report Types.
- *
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Collection
- */
- public function all($params = null, $opts = null)
- {
- return $this->requestCollection('get', '/v1/reporting/report_types', $params, $opts);
- }
-
- /**
- * Retrieves the details of a Report Type. (Certain report types require a <a
- * href="https://stripe.com/docs/keys#test-live-modes">live-mode API key</a>.).
- *
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Reporting\ReportType
- */
- public function retrieve($id, $params = null, $opts = null)
- {
- return $this->request('get', $this->buildPath('/v1/reporting/report_types/%s', $id), $params, $opts);
- }
-}
+<?php
+
+// File generated from our OpenAPI spec
+
+namespace Stripe\Service\Reporting;
+
+class ReportTypeService extends \Stripe\Service\AbstractService
+{
+ /**
+ * Returns a full list of Report Types.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\Reporting\ReportType>
+ */
+ public function all($params = null, $opts = null)
+ {
+ return $this->requestCollection('get', '/v1/reporting/report_types', $params, $opts);
+ }
+
+ /**
+ * Retrieves the details of a Report Type. (Certain report types require a <a
+ * href="https://stripe.com/docs/keys#test-live-modes">live-mode API key</a>.).
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Reporting\ReportType
+ */
+ public function retrieve($id, $params = null, $opts = null)
+ {
+ return $this->request('get', $this->buildPath('/v1/reporting/report_types/%s', $id), $params, $opts);
+ }
+}
diff --git a/vendor/stripe/stripe-php/lib/Service/Reporting/ReportingServiceFactory.php b/vendor/stripe/stripe-php/lib/Service/Reporting/ReportingServiceFactory.php
index 7832e91..72a6278 100644
--- a/vendor/stripe/stripe-php/lib/Service/Reporting/ReportingServiceFactory.php
+++ b/vendor/stripe/stripe-php/lib/Service/Reporting/ReportingServiceFactory.php
@@ -1,27 +1,27 @@
-<?php
-
-// File generated from our OpenAPI spec
-
-namespace Stripe\Service\Reporting;
-
-/**
- * Service factory class for API resources in the Reporting namespace.
- *
- * @property ReportRunService $reportRuns
- * @property ReportTypeService $reportTypes
- */
-class ReportingServiceFactory extends \Stripe\Service\AbstractServiceFactory
-{
- /**
- * @var array<string, string>
- */
- private static $classMap = [
- 'reportRuns' => ReportRunService::class,
- 'reportTypes' => ReportTypeService::class,
- ];
-
- protected function getServiceClass($name)
- {
- return \array_key_exists($name, self::$classMap) ? self::$classMap[$name] : null;
- }
-}
+<?php
+
+// File generated from our OpenAPI spec
+
+namespace Stripe\Service\Reporting;
+
+/**
+ * Service factory class for API resources in the Reporting namespace.
+ *
+ * @property ReportRunService $reportRuns
+ * @property ReportTypeService $reportTypes
+ */
+class ReportingServiceFactory extends \Stripe\Service\AbstractServiceFactory
+{
+ /**
+ * @var array<string, string>
+ */
+ private static $classMap = [
+ 'reportRuns' => ReportRunService::class,
+ 'reportTypes' => ReportTypeService::class,
+ ];
+
+ protected function getServiceClass($name)
+ {
+ return \array_key_exists($name, self::$classMap) ? self::$classMap[$name] : null;
+ }
+}
diff --git a/vendor/stripe/stripe-php/lib/Service/ReviewService.php b/vendor/stripe/stripe-php/lib/Service/ReviewService.php
index ea152f2..6762ec6 100644
--- a/vendor/stripe/stripe-php/lib/Service/ReviewService.php
+++ b/vendor/stripe/stripe-php/lib/Service/ReviewService.php
@@ -1,58 +1,58 @@
-<?php
-
-// File generated from our OpenAPI spec
-
-namespace Stripe\Service;
-
-class ReviewService extends \Stripe\Service\AbstractService
-{
- /**
- * Returns a list of <code>Review</code> objects that have <code>open</code> set to
- * <code>true</code>. The objects are sorted in descending order by creation date,
- * with the most recently created object appearing first.
- *
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Collection
- */
- public function all($params = null, $opts = null)
- {
- return $this->requestCollection('get', '/v1/reviews', $params, $opts);
- }
-
- /**
- * Approves a <code>Review</code> object, closing it and removing it from the list
- * of reviews.
- *
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Review
- */
- public function approve($id, $params = null, $opts = null)
- {
- return $this->request('post', $this->buildPath('/v1/reviews/%s/approve', $id), $params, $opts);
- }
-
- /**
- * Retrieves a <code>Review</code> object.
- *
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Review
- */
- public function retrieve($id, $params = null, $opts = null)
- {
- return $this->request('get', $this->buildPath('/v1/reviews/%s', $id), $params, $opts);
- }
-}
+<?php
+
+// File generated from our OpenAPI spec
+
+namespace Stripe\Service;
+
+class ReviewService extends \Stripe\Service\AbstractService
+{
+ /**
+ * Returns a list of <code>Review</code> objects that have <code>open</code> set to
+ * <code>true</code>. The objects are sorted in descending order by creation date,
+ * with the most recently created object appearing first.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\Review>
+ */
+ public function all($params = null, $opts = null)
+ {
+ return $this->requestCollection('get', '/v1/reviews', $params, $opts);
+ }
+
+ /**
+ * Approves a <code>Review</code> object, closing it and removing it from the list
+ * of reviews.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Review
+ */
+ public function approve($id, $params = null, $opts = null)
+ {
+ return $this->request('post', $this->buildPath('/v1/reviews/%s/approve', $id), $params, $opts);
+ }
+
+ /**
+ * Retrieves a <code>Review</code> object.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Review
+ */
+ public function retrieve($id, $params = null, $opts = null)
+ {
+ return $this->request('get', $this->buildPath('/v1/reviews/%s', $id), $params, $opts);
+ }
+}
diff --git a/vendor/stripe/stripe-php/lib/Service/SetupAttemptService.php b/vendor/stripe/stripe-php/lib/Service/SetupAttemptService.php
index 7376ea1..77484c5 100644
--- a/vendor/stripe/stripe-php/lib/Service/SetupAttemptService.php
+++ b/vendor/stripe/stripe-php/lib/Service/SetupAttemptService.php
@@ -1,23 +1,23 @@
-<?php
-
-// File generated from our OpenAPI spec
-
-namespace Stripe\Service;
-
-class SetupAttemptService extends \Stripe\Service\AbstractService
-{
- /**
- * Returns a list of SetupAttempts associated with a provided SetupIntent.
- *
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Collection
- */
- public function all($params = null, $opts = null)
- {
- return $this->requestCollection('get', '/v1/setup_attempts', $params, $opts);
- }
-}
+<?php
+
+// File generated from our OpenAPI spec
+
+namespace Stripe\Service;
+
+class SetupAttemptService extends \Stripe\Service\AbstractService
+{
+ /**
+ * Returns a list of SetupAttempts associated with a provided SetupIntent.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\SetupAttempt>
+ */
+ public function all($params = null, $opts = null)
+ {
+ return $this->requestCollection('get', '/v1/setup_attempts', $params, $opts);
+ }
+}
diff --git a/vendor/stripe/stripe-php/lib/Service/SetupIntentService.php b/vendor/stripe/stripe-php/lib/Service/SetupIntentService.php
index 3cbec50..9127c02 100644
--- a/vendor/stripe/stripe-php/lib/Service/SetupIntentService.php
+++ b/vendor/stripe/stripe-php/lib/Service/SetupIntentService.php
@@ -1,127 +1,143 @@
-<?php
-
-// File generated from our OpenAPI spec
-
-namespace Stripe\Service;
-
-class SetupIntentService extends \Stripe\Service\AbstractService
-{
- /**
- * Returns a list of SetupIntents.
- *
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Collection
- */
- public function all($params = null, $opts = null)
- {
- return $this->requestCollection('get', '/v1/setup_intents', $params, $opts);
- }
-
- /**
- * A SetupIntent object can be canceled when it is in one of these statuses:
- * <code>requires_payment_method</code>, <code>requires_confirmation</code>, or
- * <code>requires_action</code>.
- *
- * Once canceled, setup is abandoned and any operations on the SetupIntent will
- * fail with an error.
- *
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\SetupIntent
- */
- public function cancel($id, $params = null, $opts = null)
- {
- return $this->request('post', $this->buildPath('/v1/setup_intents/%s/cancel', $id), $params, $opts);
- }
-
- /**
- * Confirm that your customer intends to set up the current or provided payment
- * method. For example, you would confirm a SetupIntent when a customer hits the
- * “Save” button on a payment method management page on your website.
- *
- * If the selected payment method does not require any additional steps from the
- * customer, the SetupIntent will transition to the <code>succeeded</code> status.
- *
- * Otherwise, it will transition to the <code>requires_action</code> status and
- * suggest additional actions via <code>next_action</code>. If setup fails, the
- * SetupIntent will transition to the <code>requires_payment_method</code> status.
- *
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\SetupIntent
- */
- public function confirm($id, $params = null, $opts = null)
- {
- return $this->request('post', $this->buildPath('/v1/setup_intents/%s/confirm', $id), $params, $opts);
- }
-
- /**
- * Creates a SetupIntent object.
- *
- * After the SetupIntent is created, attach a payment method and <a
- * href="/docs/api/setup_intents/confirm">confirm</a> to collect any required
- * permissions to charge the payment method later.
- *
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\SetupIntent
- */
- public function create($params = null, $opts = null)
- {
- return $this->request('post', '/v1/setup_intents', $params, $opts);
- }
-
- /**
- * Retrieves the details of a SetupIntent that has previously been created.
- *
- * Client-side retrieval using a publishable key is allowed when the
- * <code>client_secret</code> is provided in the query string.
- *
- * When retrieved with a publishable key, only a subset of properties will be
- * returned. Please refer to the <a href="#setup_intent_object">SetupIntent</a>
- * object reference for more details.
- *
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\SetupIntent
- */
- public function retrieve($id, $params = null, $opts = null)
- {
- return $this->request('get', $this->buildPath('/v1/setup_intents/%s', $id), $params, $opts);
- }
-
- /**
- * Updates a SetupIntent object.
- *
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\SetupIntent
- */
- public function update($id, $params = null, $opts = null)
- {
- return $this->request('post', $this->buildPath('/v1/setup_intents/%s', $id), $params, $opts);
- }
-}
+<?php
+
+// File generated from our OpenAPI spec
+
+namespace Stripe\Service;
+
+class SetupIntentService extends \Stripe\Service\AbstractService
+{
+ /**
+ * Returns a list of SetupIntents.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\SetupIntent>
+ */
+ public function all($params = null, $opts = null)
+ {
+ return $this->requestCollection('get', '/v1/setup_intents', $params, $opts);
+ }
+
+ /**
+ * A SetupIntent object can be canceled when it is in one of these statuses:
+ * <code>requires_payment_method</code>, <code>requires_confirmation</code>, or
+ * <code>requires_action</code>.
+ *
+ * Once canceled, setup is abandoned and any operations on the SetupIntent will
+ * fail with an error.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\SetupIntent
+ */
+ public function cancel($id, $params = null, $opts = null)
+ {
+ return $this->request('post', $this->buildPath('/v1/setup_intents/%s/cancel', $id), $params, $opts);
+ }
+
+ /**
+ * Confirm that your customer intends to set up the current or provided payment
+ * method. For example, you would confirm a SetupIntent when a customer hits the
+ * “Save” button on a payment method management page on your website.
+ *
+ * If the selected payment method does not require any additional steps from the
+ * customer, the SetupIntent will transition to the <code>succeeded</code> status.
+ *
+ * Otherwise, it will transition to the <code>requires_action</code> status and
+ * suggest additional actions via <code>next_action</code>. If setup fails, the
+ * SetupIntent will transition to the <code>requires_payment_method</code> status.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\SetupIntent
+ */
+ public function confirm($id, $params = null, $opts = null)
+ {
+ return $this->request('post', $this->buildPath('/v1/setup_intents/%s/confirm', $id), $params, $opts);
+ }
+
+ /**
+ * Creates a SetupIntent object.
+ *
+ * After the SetupIntent is created, attach a payment method and <a
+ * href="/docs/api/setup_intents/confirm">confirm</a> to collect any required
+ * permissions to charge the payment method later.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\SetupIntent
+ */
+ public function create($params = null, $opts = null)
+ {
+ return $this->request('post', '/v1/setup_intents', $params, $opts);
+ }
+
+ /**
+ * Retrieves the details of a SetupIntent that has previously been created.
+ *
+ * Client-side retrieval using a publishable key is allowed when the
+ * <code>client_secret</code> is provided in the query string.
+ *
+ * When retrieved with a publishable key, only a subset of properties will be
+ * returned. Please refer to the <a href="#setup_intent_object">SetupIntent</a>
+ * object reference for more details.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\SetupIntent
+ */
+ public function retrieve($id, $params = null, $opts = null)
+ {
+ return $this->request('get', $this->buildPath('/v1/setup_intents/%s', $id), $params, $opts);
+ }
+
+ /**
+ * Updates a SetupIntent object.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\SetupIntent
+ */
+ public function update($id, $params = null, $opts = null)
+ {
+ return $this->request('post', $this->buildPath('/v1/setup_intents/%s', $id), $params, $opts);
+ }
+
+ /**
+ * Verifies microdeposits on a SetupIntent object.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\SetupIntent
+ */
+ public function verifyMicrodeposits($id, $params = null, $opts = null)
+ {
+ return $this->request('post', $this->buildPath('/v1/setup_intents/%s/verify_microdeposits', $id), $params, $opts);
+ }
+}
diff --git a/vendor/stripe/stripe-php/lib/Service/ShippingRateService.php b/vendor/stripe/stripe-php/lib/Service/ShippingRateService.php
new file mode 100644
index 0000000..e6b371b
--- /dev/null
+++ b/vendor/stripe/stripe-php/lib/Service/ShippingRateService.php
@@ -0,0 +1,70 @@
+<?php
+
+// File generated from our OpenAPI spec
+
+namespace Stripe\Service;
+
+class ShippingRateService extends \Stripe\Service\AbstractService
+{
+ /**
+ * Returns a list of your shipping rates.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\ShippingRate>
+ */
+ public function all($params = null, $opts = null)
+ {
+ return $this->requestCollection('get', '/v1/shipping_rates', $params, $opts);
+ }
+
+ /**
+ * Creates a new shipping rate object.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\ShippingRate
+ */
+ public function create($params = null, $opts = null)
+ {
+ return $this->request('post', '/v1/shipping_rates', $params, $opts);
+ }
+
+ /**
+ * Returns the shipping rate object with the given ID.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\ShippingRate
+ */
+ public function retrieve($id, $params = null, $opts = null)
+ {
+ return $this->request('get', $this->buildPath('/v1/shipping_rates/%s', $id), $params, $opts);
+ }
+
+ /**
+ * Updates an existing shipping rate object.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\ShippingRate
+ */
+ public function update($id, $params = null, $opts = null)
+ {
+ return $this->request('post', $this->buildPath('/v1/shipping_rates/%s', $id), $params, $opts);
+ }
+}
diff --git a/vendor/stripe/stripe-php/lib/Service/Sigma/ScheduledQueryRunService.php b/vendor/stripe/stripe-php/lib/Service/Sigma/ScheduledQueryRunService.php
index 9264175..f59b1e3 100644
--- a/vendor/stripe/stripe-php/lib/Service/Sigma/ScheduledQueryRunService.php
+++ b/vendor/stripe/stripe-php/lib/Service/Sigma/ScheduledQueryRunService.php
@@ -1,39 +1,39 @@
-<?php
-
-// File generated from our OpenAPI spec
-
-namespace Stripe\Service\Sigma;
-
-class ScheduledQueryRunService extends \Stripe\Service\AbstractService
-{
- /**
- * Returns a list of scheduled query runs.
- *
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Collection
- */
- public function all($params = null, $opts = null)
- {
- return $this->requestCollection('get', '/v1/sigma/scheduled_query_runs', $params, $opts);
- }
-
- /**
- * Retrieves the details of an scheduled query run.
- *
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Sigma\ScheduledQueryRun
- */
- public function retrieve($id, $params = null, $opts = null)
- {
- return $this->request('get', $this->buildPath('/v1/sigma/scheduled_query_runs/%s', $id), $params, $opts);
- }
-}
+<?php
+
+// File generated from our OpenAPI spec
+
+namespace Stripe\Service\Sigma;
+
+class ScheduledQueryRunService extends \Stripe\Service\AbstractService
+{
+ /**
+ * Returns a list of scheduled query runs.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\Sigma\ScheduledQueryRun>
+ */
+ public function all($params = null, $opts = null)
+ {
+ return $this->requestCollection('get', '/v1/sigma/scheduled_query_runs', $params, $opts);
+ }
+
+ /**
+ * Retrieves the details of an scheduled query run.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Sigma\ScheduledQueryRun
+ */
+ public function retrieve($id, $params = null, $opts = null)
+ {
+ return $this->request('get', $this->buildPath('/v1/sigma/scheduled_query_runs/%s', $id), $params, $opts);
+ }
+}
diff --git a/vendor/stripe/stripe-php/lib/Service/Sigma/SigmaServiceFactory.php b/vendor/stripe/stripe-php/lib/Service/Sigma/SigmaServiceFactory.php
index 356750f..c9d83c3 100644
--- a/vendor/stripe/stripe-php/lib/Service/Sigma/SigmaServiceFactory.php
+++ b/vendor/stripe/stripe-php/lib/Service/Sigma/SigmaServiceFactory.php
@@ -1,25 +1,25 @@
-<?php
-
-// File generated from our OpenAPI spec
-
-namespace Stripe\Service\Sigma;
-
-/**
- * Service factory class for API resources in the Sigma namespace.
- *
- * @property ScheduledQueryRunService $scheduledQueryRuns
- */
-class SigmaServiceFactory extends \Stripe\Service\AbstractServiceFactory
-{
- /**
- * @var array<string, string>
- */
- private static $classMap = [
- 'scheduledQueryRuns' => ScheduledQueryRunService::class,
- ];
-
- protected function getServiceClass($name)
- {
- return \array_key_exists($name, self::$classMap) ? self::$classMap[$name] : null;
- }
-}
+<?php
+
+// File generated from our OpenAPI spec
+
+namespace Stripe\Service\Sigma;
+
+/**
+ * Service factory class for API resources in the Sigma namespace.
+ *
+ * @property ScheduledQueryRunService $scheduledQueryRuns
+ */
+class SigmaServiceFactory extends \Stripe\Service\AbstractServiceFactory
+{
+ /**
+ * @var array<string, string>
+ */
+ private static $classMap = [
+ 'scheduledQueryRuns' => ScheduledQueryRunService::class,
+ ];
+
+ protected function getServiceClass($name)
+ {
+ return \array_key_exists($name, self::$classMap) ? self::$classMap[$name] : null;
+ }
+}
diff --git a/vendor/stripe/stripe-php/lib/Service/SkuService.php b/vendor/stripe/stripe-php/lib/Service/SkuService.php
index 8934f20..feedcb1 100644
--- a/vendor/stripe/stripe-php/lib/Service/SkuService.php
+++ b/vendor/stripe/stripe-php/lib/Service/SkuService.php
@@ -1,95 +1,95 @@
-<?php
-
-// File generated from our OpenAPI spec
-
-namespace Stripe\Service;
-
-class SkuService extends \Stripe\Service\AbstractService
-{
- /**
- * Returns a list of your SKUs. The SKUs are returned sorted by creation date, with
- * the most recently created SKUs appearing first.
- *
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Collection
- */
- public function all($params = null, $opts = null)
- {
- return $this->requestCollection('get', '/v1/skus', $params, $opts);
- }
-
- /**
- * Creates a new SKU associated with a product.
- *
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\SKU
- */
- public function create($params = null, $opts = null)
- {
- return $this->request('post', '/v1/skus', $params, $opts);
- }
-
- /**
- * Delete a SKU. Deleting a SKU is only possible until it has been used in an
- * order.
- *
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\SKU
- */
- public function delete($id, $params = null, $opts = null)
- {
- return $this->request('delete', $this->buildPath('/v1/skus/%s', $id), $params, $opts);
- }
-
- /**
- * Retrieves the details of an existing SKU. Supply the unique SKU identifier from
- * either a SKU creation request or from the product, and Stripe will return the
- * corresponding SKU information.
- *
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\SKU
- */
- public function retrieve($id, $params = null, $opts = null)
- {
- return $this->request('get', $this->buildPath('/v1/skus/%s', $id), $params, $opts);
- }
-
- /**
- * Updates the specific SKU by setting the values of the parameters passed. Any
- * parameters not provided will be left unchanged.
- *
- * Note that a SKU’s <code>attributes</code> are not editable. Instead, you would
- * need to deactivate the existing SKU and create a new one with the new attribute
- * values.
- *
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\SKU
- */
- public function update($id, $params = null, $opts = null)
- {
- return $this->request('post', $this->buildPath('/v1/skus/%s', $id), $params, $opts);
- }
-}
+<?php
+
+// File generated from our OpenAPI spec
+
+namespace Stripe\Service;
+
+class SkuService extends \Stripe\Service\AbstractService
+{
+ /**
+ * Returns a list of your SKUs. The SKUs are returned sorted by creation date, with
+ * the most recently created SKUs appearing first.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\SKU>
+ */
+ public function all($params = null, $opts = null)
+ {
+ return $this->requestCollection('get', '/v1/skus', $params, $opts);
+ }
+
+ /**
+ * Creates a new SKU associated with a product.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\SKU
+ */
+ public function create($params = null, $opts = null)
+ {
+ return $this->request('post', '/v1/skus', $params, $opts);
+ }
+
+ /**
+ * Delete a SKU. Deleting a SKU is only possible until it has been used in an
+ * order.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\SKU
+ */
+ public function delete($id, $params = null, $opts = null)
+ {
+ return $this->request('delete', $this->buildPath('/v1/skus/%s', $id), $params, $opts);
+ }
+
+ /**
+ * Retrieves the details of an existing SKU. Supply the unique SKU identifier from
+ * either a SKU creation request or from the product, and Stripe will return the
+ * corresponding SKU information.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\SKU
+ */
+ public function retrieve($id, $params = null, $opts = null)
+ {
+ return $this->request('get', $this->buildPath('/v1/skus/%s', $id), $params, $opts);
+ }
+
+ /**
+ * Updates the specific SKU by setting the values of the parameters passed. Any
+ * parameters not provided will be left unchanged.
+ *
+ * Note that a SKU’s <code>attributes</code> are not editable. Instead, you would
+ * need to deactivate the existing SKU and create a new one with the new attribute
+ * values.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\SKU
+ */
+ public function update($id, $params = null, $opts = null)
+ {
+ return $this->request('post', $this->buildPath('/v1/skus/%s', $id), $params, $opts);
+ }
+}
diff --git a/vendor/stripe/stripe-php/lib/Service/SourceService.php b/vendor/stripe/stripe-php/lib/Service/SourceService.php
index c6cc059..dcf7788 100644
--- a/vendor/stripe/stripe-php/lib/Service/SourceService.php
+++ b/vendor/stripe/stripe-php/lib/Service/SourceService.php
@@ -1,110 +1,110 @@
-<?php
-
-// File generated from our OpenAPI spec
-
-namespace Stripe\Service;
-
-class SourceService extends \Stripe\Service\AbstractService
-{
- /**
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Source
- */
- public function allTransactions($id, $params = null, $opts = null)
- {
- return $this->request('get', $this->buildPath('/v1/sources/%s/source_transactions', $id), $params, $opts);
- }
-
- /**
- * Creates a new source object.
- *
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Source
- */
- public function create($params = null, $opts = null)
- {
- return $this->request('post', '/v1/sources', $params, $opts);
- }
-
- /**
- * Delete a specified source for a given customer.
- *
- * @param string $parentId
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Source
- */
- public function detach($parentId, $id, $params = null, $opts = null)
- {
- return $this->request('delete', $this->buildPath('/v1/customers/%s/sources/%s', $parentId, $id), $params, $opts);
- }
-
- /**
- * Retrieves an existing source object. Supply the unique source ID from a source
- * creation request and Stripe will return the corresponding up-to-date source
- * object information.
- *
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Source
- */
- public function retrieve($id, $params = null, $opts = null)
- {
- return $this->request('get', $this->buildPath('/v1/sources/%s', $id), $params, $opts);
- }
-
- /**
- * Updates the specified source by setting the values of the parameters passed. Any
- * parameters not provided will be left unchanged.
- *
- * This request accepts the <code>metadata</code> and <code>owner</code> as
- * arguments. It is also possible to update type specific information for selected
- * payment methods. Please refer to our <a href="/docs/sources">payment method
- * guides</a> for more detail.
- *
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Source
- */
- public function update($id, $params = null, $opts = null)
- {
- return $this->request('post', $this->buildPath('/v1/sources/%s', $id), $params, $opts);
- }
-
- /**
- * Verify a given source.
- *
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Source
- */
- public function verify($id, $params = null, $opts = null)
- {
- return $this->request('post', $this->buildPath('/v1/sources/%s/verify', $id), $params, $opts);
- }
-}
+<?php
+
+// File generated from our OpenAPI spec
+
+namespace Stripe\Service;
+
+class SourceService extends \Stripe\Service\AbstractService
+{
+ /**
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Source
+ */
+ public function allTransactions($id, $params = null, $opts = null)
+ {
+ return $this->request('get', $this->buildPath('/v1/sources/%s/source_transactions', $id), $params, $opts);
+ }
+
+ /**
+ * Creates a new source object.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Source
+ */
+ public function create($params = null, $opts = null)
+ {
+ return $this->request('post', '/v1/sources', $params, $opts);
+ }
+
+ /**
+ * Delete a specified source for a given customer.
+ *
+ * @param string $parentId
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Source
+ */
+ public function detach($parentId, $id, $params = null, $opts = null)
+ {
+ return $this->request('delete', $this->buildPath('/v1/customers/%s/sources/%s', $parentId, $id), $params, $opts);
+ }
+
+ /**
+ * Retrieves an existing source object. Supply the unique source ID from a source
+ * creation request and Stripe will return the corresponding up-to-date source
+ * object information.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Source
+ */
+ public function retrieve($id, $params = null, $opts = null)
+ {
+ return $this->request('get', $this->buildPath('/v1/sources/%s', $id), $params, $opts);
+ }
+
+ /**
+ * Updates the specified source by setting the values of the parameters passed. Any
+ * parameters not provided will be left unchanged.
+ *
+ * This request accepts the <code>metadata</code> and <code>owner</code> as
+ * arguments. It is also possible to update type specific information for selected
+ * payment methods. Please refer to our <a href="/docs/sources">payment method
+ * guides</a> for more detail.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Source
+ */
+ public function update($id, $params = null, $opts = null)
+ {
+ return $this->request('post', $this->buildPath('/v1/sources/%s', $id), $params, $opts);
+ }
+
+ /**
+ * Verify a given source.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Source
+ */
+ public function verify($id, $params = null, $opts = null)
+ {
+ return $this->request('post', $this->buildPath('/v1/sources/%s/verify', $id), $params, $opts);
+ }
+}
diff --git a/vendor/stripe/stripe-php/lib/Service/SubscriptionItemService.php b/vendor/stripe/stripe-php/lib/Service/SubscriptionItemService.php
index 3b2aa2b..d0a76e3 100644
--- a/vendor/stripe/stripe-php/lib/Service/SubscriptionItemService.php
+++ b/vendor/stripe/stripe-php/lib/Service/SubscriptionItemService.php
@@ -1,151 +1,151 @@
-<?php
-
-// File generated from our OpenAPI spec
-
-namespace Stripe\Service;
-
-class SubscriptionItemService extends \Stripe\Service\AbstractService
-{
- /**
- * Returns a list of your subscription items for a given subscription.
- *
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Collection
- */
- public function all($params = null, $opts = null)
- {
- return $this->requestCollection('get', '/v1/subscription_items', $params, $opts);
- }
-
- /**
- * For the specified subscription item, returns a list of summary objects. Each
- * object in the list provides usage information that’s been summarized from
- * multiple usage records and over a subscription billing period (e.g., 15 usage
- * records in the month of September).
- *
- * The list is sorted in reverse-chronological order (newest first). The first list
- * item represents the most current usage period that hasn’t ended yet. Since new
- * usage records can still be added, the returned summary information for the
- * subscription item’s ID should be seen as unstable until the subscription billing
- * period ends.
- *
- * @param string $parentId
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Collection
- */
- public function allUsageRecordSummaries($parentId, $params = null, $opts = null)
- {
- return $this->requestCollection('get', $this->buildPath('/v1/subscription_items/%s/usage_record_summaries', $parentId), $params, $opts);
- }
-
- /**
- * Adds a new item to an existing subscription. No existing items will be changed
- * or replaced.
- *
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\SubscriptionItem
- */
- public function create($params = null, $opts = null)
- {
- return $this->request('post', '/v1/subscription_items', $params, $opts);
- }
-
- /**
- * Creates a usage record for a specified subscription item and date, and fills it
- * with a quantity.
- *
- * Usage records provide <code>quantity</code> information that Stripe uses to
- * track how much a customer is using your service. With usage information and the
- * pricing model set up by the <a
- * href="https://stripe.com/docs/billing/subscriptions/metered-billing">metered
- * billing</a> plan, Stripe helps you send accurate invoices to your customers.
- *
- * The default calculation for usage is to add up all the <code>quantity</code>
- * values of the usage records within a billing period. You can change this default
- * behavior with the billing plan’s <code>aggregate_usage</code> <a
- * href="/docs/api/plans/create#create_plan-aggregate_usage">parameter</a>. When
- * there is more than one usage record with the same timestamp, Stripe adds the
- * <code>quantity</code> values together. In most cases, this is the desired
- * resolution, however, you can change this behavior with the <code>action</code>
- * parameter.
- *
- * The default pricing model for metered billing is <a
- * href="/docs/api/plans/object#plan_object-billing_scheme">per-unit pricing</a>.
- * For finer granularity, you can configure metered billing to have a <a
- * href="https://stripe.com/docs/billing/subscriptions/tiers">tiered pricing</a>
- * model.
- *
- * @param string $parentId
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\UsageRecord
- */
- public function createUsageRecord($parentId, $params = null, $opts = null)
- {
- return $this->request('post', $this->buildPath('/v1/subscription_items/%s/usage_records', $parentId), $params, $opts);
- }
-
- /**
- * Deletes an item from the subscription. Removing a subscription item from a
- * subscription will not cancel the subscription.
- *
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\SubscriptionItem
- */
- public function delete($id, $params = null, $opts = null)
- {
- return $this->request('delete', $this->buildPath('/v1/subscription_items/%s', $id), $params, $opts);
- }
-
- /**
- * Retrieves the subscription item with the given ID.
- *
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\SubscriptionItem
- */
- public function retrieve($id, $params = null, $opts = null)
- {
- return $this->request('get', $this->buildPath('/v1/subscription_items/%s', $id), $params, $opts);
- }
-
- /**
- * Updates the plan or quantity of an item on a current subscription.
- *
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\SubscriptionItem
- */
- public function update($id, $params = null, $opts = null)
- {
- return $this->request('post', $this->buildPath('/v1/subscription_items/%s', $id), $params, $opts);
- }
-}
+<?php
+
+// File generated from our OpenAPI spec
+
+namespace Stripe\Service;
+
+class SubscriptionItemService extends \Stripe\Service\AbstractService
+{
+ /**
+ * Returns a list of your subscription items for a given subscription.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\SubscriptionItem>
+ */
+ public function all($params = null, $opts = null)
+ {
+ return $this->requestCollection('get', '/v1/subscription_items', $params, $opts);
+ }
+
+ /**
+ * For the specified subscription item, returns a list of summary objects. Each
+ * object in the list provides usage information that’s been summarized from
+ * multiple usage records and over a subscription billing period (e.g., 15 usage
+ * records in the month of September).
+ *
+ * The list is sorted in reverse-chronological order (newest first). The first list
+ * item represents the most current usage period that hasn’t ended yet. Since new
+ * usage records can still be added, the returned summary information for the
+ * subscription item’s ID should be seen as unstable until the subscription billing
+ * period ends.
+ *
+ * @param string $parentId
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\UsageRecordSummary>
+ */
+ public function allUsageRecordSummaries($parentId, $params = null, $opts = null)
+ {
+ return $this->requestCollection('get', $this->buildPath('/v1/subscription_items/%s/usage_record_summaries', $parentId), $params, $opts);
+ }
+
+ /**
+ * Adds a new item to an existing subscription. No existing items will be changed
+ * or replaced.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\SubscriptionItem
+ */
+ public function create($params = null, $opts = null)
+ {
+ return $this->request('post', '/v1/subscription_items', $params, $opts);
+ }
+
+ /**
+ * Creates a usage record for a specified subscription item and date, and fills it
+ * with a quantity.
+ *
+ * Usage records provide <code>quantity</code> information that Stripe uses to
+ * track how much a customer is using your service. With usage information and the
+ * pricing model set up by the <a
+ * href="https://stripe.com/docs/billing/subscriptions/metered-billing">metered
+ * billing</a> plan, Stripe helps you send accurate invoices to your customers.
+ *
+ * The default calculation for usage is to add up all the <code>quantity</code>
+ * values of the usage records within a billing period. You can change this default
+ * behavior with the billing plan’s <code>aggregate_usage</code> <a
+ * href="/docs/api/plans/create#create_plan-aggregate_usage">parameter</a>. When
+ * there is more than one usage record with the same timestamp, Stripe adds the
+ * <code>quantity</code> values together. In most cases, this is the desired
+ * resolution, however, you can change this behavior with the <code>action</code>
+ * parameter.
+ *
+ * The default pricing model for metered billing is <a
+ * href="/docs/api/plans/object#plan_object-billing_scheme">per-unit pricing</a>.
+ * For finer granularity, you can configure metered billing to have a <a
+ * href="https://stripe.com/docs/billing/subscriptions/tiers">tiered pricing</a>
+ * model.
+ *
+ * @param string $parentId
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\UsageRecord
+ */
+ public function createUsageRecord($parentId, $params = null, $opts = null)
+ {
+ return $this->request('post', $this->buildPath('/v1/subscription_items/%s/usage_records', $parentId), $params, $opts);
+ }
+
+ /**
+ * Deletes an item from the subscription. Removing a subscription item from a
+ * subscription will not cancel the subscription.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\SubscriptionItem
+ */
+ public function delete($id, $params = null, $opts = null)
+ {
+ return $this->request('delete', $this->buildPath('/v1/subscription_items/%s', $id), $params, $opts);
+ }
+
+ /**
+ * Retrieves the subscription item with the given ID.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\SubscriptionItem
+ */
+ public function retrieve($id, $params = null, $opts = null)
+ {
+ return $this->request('get', $this->buildPath('/v1/subscription_items/%s', $id), $params, $opts);
+ }
+
+ /**
+ * Updates the plan or quantity of an item on a current subscription.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\SubscriptionItem
+ */
+ public function update($id, $params = null, $opts = null)
+ {
+ return $this->request('post', $this->buildPath('/v1/subscription_items/%s', $id), $params, $opts);
+ }
+}
diff --git a/vendor/stripe/stripe-php/lib/Service/SubscriptionScheduleService.php b/vendor/stripe/stripe-php/lib/Service/SubscriptionScheduleService.php
index 9eed460..5a3ad6e 100644
--- a/vendor/stripe/stripe-php/lib/Service/SubscriptionScheduleService.php
+++ b/vendor/stripe/stripe-php/lib/Service/SubscriptionScheduleService.php
@@ -1,113 +1,113 @@
-<?php
-
-// File generated from our OpenAPI spec
-
-namespace Stripe\Service;
-
-class SubscriptionScheduleService extends \Stripe\Service\AbstractService
-{
- /**
- * Retrieves the list of your subscription schedules.
- *
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Collection
- */
- public function all($params = null, $opts = null)
- {
- return $this->requestCollection('get', '/v1/subscription_schedules', $params, $opts);
- }
-
- /**
- * Cancels a subscription schedule and its associated subscription immediately (if
- * the subscription schedule has an active subscription). A subscription schedule
- * can only be canceled if its status is <code>not_started</code> or
- * <code>active</code>.
- *
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\SubscriptionSchedule
- */
- public function cancel($id, $params = null, $opts = null)
- {
- return $this->request('post', $this->buildPath('/v1/subscription_schedules/%s/cancel', $id), $params, $opts);
- }
-
- /**
- * Creates a new subscription schedule object. Each customer can have up to 500
- * active or scheduled subscriptions.
- *
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\SubscriptionSchedule
- */
- public function create($params = null, $opts = null)
- {
- return $this->request('post', '/v1/subscription_schedules', $params, $opts);
- }
-
- /**
- * Releases the subscription schedule immediately, which will stop scheduling of
- * its phases, but leave any existing subscription in place. A schedule can only be
- * released if its status is <code>not_started</code> or <code>active</code>. If
- * the subscription schedule is currently associated with a subscription, releasing
- * it will remove its <code>subscription</code> property and set the subscription’s
- * ID to the <code>released_subscription</code> property.
- *
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\SubscriptionSchedule
- */
- public function release($id, $params = null, $opts = null)
- {
- return $this->request('post', $this->buildPath('/v1/subscription_schedules/%s/release', $id), $params, $opts);
- }
-
- /**
- * Retrieves the details of an existing subscription schedule. You only need to
- * supply the unique subscription schedule identifier that was returned upon
- * subscription schedule creation.
- *
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\SubscriptionSchedule
- */
- public function retrieve($id, $params = null, $opts = null)
- {
- return $this->request('get', $this->buildPath('/v1/subscription_schedules/%s', $id), $params, $opts);
- }
-
- /**
- * Updates an existing subscription schedule.
- *
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\SubscriptionSchedule
- */
- public function update($id, $params = null, $opts = null)
- {
- return $this->request('post', $this->buildPath('/v1/subscription_schedules/%s', $id), $params, $opts);
- }
-}
+<?php
+
+// File generated from our OpenAPI spec
+
+namespace Stripe\Service;
+
+class SubscriptionScheduleService extends \Stripe\Service\AbstractService
+{
+ /**
+ * Retrieves the list of your subscription schedules.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\SubscriptionSchedule>
+ */
+ public function all($params = null, $opts = null)
+ {
+ return $this->requestCollection('get', '/v1/subscription_schedules', $params, $opts);
+ }
+
+ /**
+ * Cancels a subscription schedule and its associated subscription immediately (if
+ * the subscription schedule has an active subscription). A subscription schedule
+ * can only be canceled if its status is <code>not_started</code> or
+ * <code>active</code>.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\SubscriptionSchedule
+ */
+ public function cancel($id, $params = null, $opts = null)
+ {
+ return $this->request('post', $this->buildPath('/v1/subscription_schedules/%s/cancel', $id), $params, $opts);
+ }
+
+ /**
+ * Creates a new subscription schedule object. Each customer can have up to 500
+ * active or scheduled subscriptions.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\SubscriptionSchedule
+ */
+ public function create($params = null, $opts = null)
+ {
+ return $this->request('post', '/v1/subscription_schedules', $params, $opts);
+ }
+
+ /**
+ * Releases the subscription schedule immediately, which will stop scheduling of
+ * its phases, but leave any existing subscription in place. A schedule can only be
+ * released if its status is <code>not_started</code> or <code>active</code>. If
+ * the subscription schedule is currently associated with a subscription, releasing
+ * it will remove its <code>subscription</code> property and set the subscription’s
+ * ID to the <code>released_subscription</code> property.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\SubscriptionSchedule
+ */
+ public function release($id, $params = null, $opts = null)
+ {
+ return $this->request('post', $this->buildPath('/v1/subscription_schedules/%s/release', $id), $params, $opts);
+ }
+
+ /**
+ * Retrieves the details of an existing subscription schedule. You only need to
+ * supply the unique subscription schedule identifier that was returned upon
+ * subscription schedule creation.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\SubscriptionSchedule
+ */
+ public function retrieve($id, $params = null, $opts = null)
+ {
+ return $this->request('get', $this->buildPath('/v1/subscription_schedules/%s', $id), $params, $opts);
+ }
+
+ /**
+ * Updates an existing subscription schedule.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\SubscriptionSchedule
+ */
+ public function update($id, $params = null, $opts = null)
+ {
+ return $this->request('post', $this->buildPath('/v1/subscription_schedules/%s', $id), $params, $opts);
+ }
+}
diff --git a/vendor/stripe/stripe-php/lib/Service/SubscriptionService.php b/vendor/stripe/stripe-php/lib/Service/SubscriptionService.php
index f3ac768..dd7f266 100644
--- a/vendor/stripe/stripe-php/lib/Service/SubscriptionService.php
+++ b/vendor/stripe/stripe-php/lib/Service/SubscriptionService.php
@@ -1,124 +1,155 @@
-<?php
-
-// File generated from our OpenAPI spec
-
-namespace Stripe\Service;
-
-class SubscriptionService extends \Stripe\Service\AbstractService
-{
- /**
- * By default, returns a list of subscriptions that have not been canceled. In
- * order to list canceled subscriptions, specify <code>status=canceled</code>.
- *
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Collection
- */
- public function all($params = null, $opts = null)
- {
- return $this->requestCollection('get', '/v1/subscriptions', $params, $opts);
- }
-
- /**
- * Cancels a customer’s subscription immediately. The customer will not be charged
- * again for the subscription.
- *
- * Note, however, that any pending invoice items that you’ve created will still be
- * charged for at the end of the period, unless manually <a
- * href="#delete_invoiceitem">deleted</a>. If you’ve set the subscription to cancel
- * at the end of the period, any pending prorations will also be left in place and
- * collected at the end of the period. But if the subscription is set to cancel
- * immediately, pending prorations will be removed.
- *
- * By default, upon subscription cancellation, Stripe will stop automatic
- * collection of all finalized invoices for the customer. This is intended to
- * prevent unexpected payment attempts after the customer has canceled a
- * subscription. However, you can resume automatic collection of the invoices
- * manually after subscription cancellation to have us proceed. Or, you could check
- * for unpaid invoices before allowing the customer to cancel the subscription at
- * all.
- *
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Subscription
- */
- public function cancel($id, $params = null, $opts = null)
- {
- return $this->request('delete', $this->buildPath('/v1/subscriptions/%s', $id), $params, $opts);
- }
-
- /**
- * Creates a new subscription on an existing customer. Each customer can have up to
- * 500 active or scheduled subscriptions.
- *
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Subscription
- */
- public function create($params = null, $opts = null)
- {
- return $this->request('post', '/v1/subscriptions', $params, $opts);
- }
-
- /**
- * Removes the currently applied discount on a subscription.
- *
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Subscription
- */
- public function deleteDiscount($id, $params = null, $opts = null)
- {
- return $this->request('delete', $this->buildPath('/v1/subscriptions/%s/discount', $id), $params, $opts);
- }
-
- /**
- * Retrieves the subscription with the given ID.
- *
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Subscription
- */
- public function retrieve($id, $params = null, $opts = null)
- {
- return $this->request('get', $this->buildPath('/v1/subscriptions/%s', $id), $params, $opts);
- }
-
- /**
- * Updates an existing subscription on a customer to match the specified
- * parameters. When changing plans or quantities, we will optionally prorate the
- * price we charge next month to make up for any price changes. To preview how the
- * proration will be calculated, use the <a href="#upcoming_invoice">upcoming
- * invoice</a> endpoint.
- *
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Subscription
- */
- public function update($id, $params = null, $opts = null)
- {
- return $this->request('post', $this->buildPath('/v1/subscriptions/%s', $id), $params, $opts);
- }
-}
+<?php
+
+// File generated from our OpenAPI spec
+
+namespace Stripe\Service;
+
+class SubscriptionService extends \Stripe\Service\AbstractService
+{
+ /**
+ * By default, returns a list of subscriptions that have not been canceled. In
+ * order to list canceled subscriptions, specify <code>status=canceled</code>.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\Subscription>
+ */
+ public function all($params = null, $opts = null)
+ {
+ return $this->requestCollection('get', '/v1/subscriptions', $params, $opts);
+ }
+
+ /**
+ * Cancels a customer’s subscription immediately. The customer will not be charged
+ * again for the subscription.
+ *
+ * Note, however, that any pending invoice items that you’ve created will still be
+ * charged for at the end of the period, unless manually <a
+ * href="#delete_invoiceitem">deleted</a>. If you’ve set the subscription to cancel
+ * at the end of the period, any pending prorations will also be left in place and
+ * collected at the end of the period. But if the subscription is set to cancel
+ * immediately, pending prorations will be removed.
+ *
+ * By default, upon subscription cancellation, Stripe will stop automatic
+ * collection of all finalized invoices for the customer. This is intended to
+ * prevent unexpected payment attempts after the customer has canceled a
+ * subscription. However, you can resume automatic collection of the invoices
+ * manually after subscription cancellation to have us proceed. Or, you could check
+ * for unpaid invoices before allowing the customer to cancel the subscription at
+ * all.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Subscription
+ */
+ public function cancel($id, $params = null, $opts = null)
+ {
+ return $this->request('delete', $this->buildPath('/v1/subscriptions/%s', $id), $params, $opts);
+ }
+
+ /**
+ * Creates a new subscription on an existing customer. Each customer can have up to
+ * 500 active or scheduled subscriptions.
+ *
+ * When you create a subscription with
+ * <code>collection_method=charge_automatically</code>, the first invoice is
+ * finalized as part of the request. The <code>payment_behavior</code> parameter
+ * determines the exact behavior of the initial payment.
+ *
+ * To start subscriptions where the first invoice always begins in a
+ * <code>draft</code> status, use <a
+ * href="/docs/billing/subscriptions/subscription-schedules#managing">subscription
+ * schedules</a> instead. Schedules provide the flexibility to model more complex
+ * billing configurations that change over time.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Subscription
+ */
+ public function create($params = null, $opts = null)
+ {
+ return $this->request('post', '/v1/subscriptions', $params, $opts);
+ }
+
+ /**
+ * Removes the currently applied discount on a subscription.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Subscription
+ */
+ public function deleteDiscount($id, $params = null, $opts = null)
+ {
+ return $this->request('delete', $this->buildPath('/v1/subscriptions/%s/discount', $id), $params, $opts);
+ }
+
+ /**
+ * Retrieves the subscription with the given ID.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Subscription
+ */
+ public function retrieve($id, $params = null, $opts = null)
+ {
+ return $this->request('get', $this->buildPath('/v1/subscriptions/%s', $id), $params, $opts);
+ }
+
+ /**
+ * Search for subscriptions you’ve previously created using Stripe’s <a
+ * href="/docs/search#search-query-language">Search Query Language</a>. Don’t use
+ * search in read-after-write flows where strict consistency is necessary. Under
+ * normal operating conditions, data is searchable in less than a minute.
+ * Occasionally, propagation of new or updated data can be up to an hour behind
+ * during outages. Search functionality is not available to merchants in India.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\SearchResult<\Stripe\Subscription>
+ */
+ public function search($params = null, $opts = null)
+ {
+ return $this->requestSearchResult('get', '/v1/subscriptions/search', $params, $opts);
+ }
+
+ /**
+ * Updates an existing subscription on a customer to match the specified
+ * parameters. When changing plans or quantities, we will optionally prorate the
+ * price we charge next month to make up for any price changes. To preview how the
+ * proration will be calculated, use the <a href="#upcoming_invoice">upcoming
+ * invoice</a> endpoint.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Subscription
+ */
+ public function update($id, $params = null, $opts = null)
+ {
+ return $this->request('post', $this->buildPath('/v1/subscriptions/%s', $id), $params, $opts);
+ }
+}
diff --git a/vendor/stripe/stripe-php/lib/Service/TaxCodeService.php b/vendor/stripe/stripe-php/lib/Service/TaxCodeService.php
index 007b771..e892b4e 100644
--- a/vendor/stripe/stripe-php/lib/Service/TaxCodeService.php
+++ b/vendor/stripe/stripe-php/lib/Service/TaxCodeService.php
@@ -1,41 +1,41 @@
-<?php
-
-// File generated from our OpenAPI spec
-
-namespace Stripe\Service;
-
-class TaxCodeService extends \Stripe\Service\AbstractService
-{
- /**
- * A list of <a href="https://stripe.com/docs/tax/tax-codes">all tax codes
- * available</a> to add to Products in order to allow specific tax calculations.
- *
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Collection
- */
- public function all($params = null, $opts = null)
- {
- return $this->requestCollection('get', '/v1/tax_codes', $params, $opts);
- }
-
- /**
- * Retrieves the details of an existing tax code. Supply the unique tax code ID and
- * Stripe will return the corresponding tax code information.
- *
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\TaxCode
- */
- public function retrieve($id, $params = null, $opts = null)
- {
- return $this->request('get', $this->buildPath('/v1/tax_codes/%s', $id), $params, $opts);
- }
-}
+<?php
+
+// File generated from our OpenAPI spec
+
+namespace Stripe\Service;
+
+class TaxCodeService extends \Stripe\Service\AbstractService
+{
+ /**
+ * A list of <a href="https://stripe.com/docs/tax/tax-categories">all tax codes
+ * available</a> to add to Products in order to allow specific tax calculations.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\TaxCode>
+ */
+ public function all($params = null, $opts = null)
+ {
+ return $this->requestCollection('get', '/v1/tax_codes', $params, $opts);
+ }
+
+ /**
+ * Retrieves the details of an existing tax code. Supply the unique tax code ID and
+ * Stripe will return the corresponding tax code information.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\TaxCode
+ */
+ public function retrieve($id, $params = null, $opts = null)
+ {
+ return $this->request('get', $this->buildPath('/v1/tax_codes/%s', $id), $params, $opts);
+ }
+}
diff --git a/vendor/stripe/stripe-php/lib/Service/TaxRateService.php b/vendor/stripe/stripe-php/lib/Service/TaxRateService.php
index 7cee1fe..0978e77 100644
--- a/vendor/stripe/stripe-php/lib/Service/TaxRateService.php
+++ b/vendor/stripe/stripe-php/lib/Service/TaxRateService.php
@@ -1,71 +1,71 @@
-<?php
-
-// File generated from our OpenAPI spec
-
-namespace Stripe\Service;
-
-class TaxRateService extends \Stripe\Service\AbstractService
-{
- /**
- * Returns a list of your tax rates. Tax rates are returned sorted by creation
- * date, with the most recently created tax rates appearing first.
- *
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Collection
- */
- public function all($params = null, $opts = null)
- {
- return $this->requestCollection('get', '/v1/tax_rates', $params, $opts);
- }
-
- /**
- * Creates a new tax rate.
- *
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\TaxRate
- */
- public function create($params = null, $opts = null)
- {
- return $this->request('post', '/v1/tax_rates', $params, $opts);
- }
-
- /**
- * Retrieves a tax rate with the given ID.
- *
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\TaxRate
- */
- public function retrieve($id, $params = null, $opts = null)
- {
- return $this->request('get', $this->buildPath('/v1/tax_rates/%s', $id), $params, $opts);
- }
-
- /**
- * Updates an existing tax rate.
- *
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\TaxRate
- */
- public function update($id, $params = null, $opts = null)
- {
- return $this->request('post', $this->buildPath('/v1/tax_rates/%s', $id), $params, $opts);
- }
-}
+<?php
+
+// File generated from our OpenAPI spec
+
+namespace Stripe\Service;
+
+class TaxRateService extends \Stripe\Service\AbstractService
+{
+ /**
+ * Returns a list of your tax rates. Tax rates are returned sorted by creation
+ * date, with the most recently created tax rates appearing first.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\TaxRate>
+ */
+ public function all($params = null, $opts = null)
+ {
+ return $this->requestCollection('get', '/v1/tax_rates', $params, $opts);
+ }
+
+ /**
+ * Creates a new tax rate.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\TaxRate
+ */
+ public function create($params = null, $opts = null)
+ {
+ return $this->request('post', '/v1/tax_rates', $params, $opts);
+ }
+
+ /**
+ * Retrieves a tax rate with the given ID.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\TaxRate
+ */
+ public function retrieve($id, $params = null, $opts = null)
+ {
+ return $this->request('get', $this->buildPath('/v1/tax_rates/%s', $id), $params, $opts);
+ }
+
+ /**
+ * Updates an existing tax rate.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\TaxRate
+ */
+ public function update($id, $params = null, $opts = null)
+ {
+ return $this->request('post', $this->buildPath('/v1/tax_rates/%s', $id), $params, $opts);
+ }
+}
diff --git a/vendor/stripe/stripe-php/lib/Service/Terminal/ConfigurationService.php b/vendor/stripe/stripe-php/lib/Service/Terminal/ConfigurationService.php
new file mode 100644
index 0000000..733d3cc
--- /dev/null
+++ b/vendor/stripe/stripe-php/lib/Service/Terminal/ConfigurationService.php
@@ -0,0 +1,86 @@
+<?php
+
+// File generated from our OpenAPI spec
+
+namespace Stripe\Service\Terminal;
+
+class ConfigurationService extends \Stripe\Service\AbstractService
+{
+ /**
+ * Returns a list of <code>Configuration</code> objects.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\Terminal\Configuration>
+ */
+ public function all($params = null, $opts = null)
+ {
+ return $this->requestCollection('get', '/v1/terminal/configurations', $params, $opts);
+ }
+
+ /**
+ * Creates a new <code>Configuration</code> object.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Terminal\Configuration
+ */
+ public function create($params = null, $opts = null)
+ {
+ return $this->request('post', '/v1/terminal/configurations', $params, $opts);
+ }
+
+ /**
+ * Deletes a <code>Configuration</code> object.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Terminal\Configuration
+ */
+ public function delete($id, $params = null, $opts = null)
+ {
+ return $this->request('delete', $this->buildPath('/v1/terminal/configurations/%s', $id), $params, $opts);
+ }
+
+ /**
+ * Retrieves a <code>Configuration</code> object.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Terminal\Configuration
+ */
+ public function retrieve($id, $params = null, $opts = null)
+ {
+ return $this->request('get', $this->buildPath('/v1/terminal/configurations/%s', $id), $params, $opts);
+ }
+
+ /**
+ * Updates a new <code>Configuration</code> object.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Terminal\Configuration
+ */
+ public function update($id, $params = null, $opts = null)
+ {
+ return $this->request('post', $this->buildPath('/v1/terminal/configurations/%s', $id), $params, $opts);
+ }
+}
diff --git a/vendor/stripe/stripe-php/lib/Service/Terminal/ConnectionTokenService.php b/vendor/stripe/stripe-php/lib/Service/Terminal/ConnectionTokenService.php
index 7b25b23..db2ef9a 100644
--- a/vendor/stripe/stripe-php/lib/Service/Terminal/ConnectionTokenService.php
+++ b/vendor/stripe/stripe-php/lib/Service/Terminal/ConnectionTokenService.php
@@ -1,25 +1,25 @@
-<?php
-
-// File generated from our OpenAPI spec
-
-namespace Stripe\Service\Terminal;
-
-class ConnectionTokenService extends \Stripe\Service\AbstractService
-{
- /**
- * To connect to a reader the Stripe Terminal SDK needs to retrieve a short-lived
- * connection token from Stripe, proxied through your server. On your backend, add
- * an endpoint that creates and returns a connection token.
- *
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Terminal\ConnectionToken
- */
- public function create($params = null, $opts = null)
- {
- return $this->request('post', '/v1/terminal/connection_tokens', $params, $opts);
- }
-}
+<?php
+
+// File generated from our OpenAPI spec
+
+namespace Stripe\Service\Terminal;
+
+class ConnectionTokenService extends \Stripe\Service\AbstractService
+{
+ /**
+ * To connect to a reader the Stripe Terminal SDK needs to retrieve a short-lived
+ * connection token from Stripe, proxied through your server. On your backend, add
+ * an endpoint that creates and returns a connection token.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Terminal\ConnectionToken
+ */
+ public function create($params = null, $opts = null)
+ {
+ return $this->request('post', '/v1/terminal/connection_tokens', $params, $opts);
+ }
+}
diff --git a/vendor/stripe/stripe-php/lib/Service/Terminal/LocationService.php b/vendor/stripe/stripe-php/lib/Service/Terminal/LocationService.php
index 8adc7a5..456a5a7 100644
--- a/vendor/stripe/stripe-php/lib/Service/Terminal/LocationService.php
+++ b/vendor/stripe/stripe-php/lib/Service/Terminal/LocationService.php
@@ -1,87 +1,89 @@
-<?php
-
-// File generated from our OpenAPI spec
-
-namespace Stripe\Service\Terminal;
-
-class LocationService extends \Stripe\Service\AbstractService
-{
- /**
- * Returns a list of <code>Location</code> objects.
- *
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Collection
- */
- public function all($params = null, $opts = null)
- {
- return $this->requestCollection('get', '/v1/terminal/locations', $params, $opts);
- }
-
- /**
- * Creates a new <code>Location</code> object.
- *
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Terminal\Location
- */
- public function create($params = null, $opts = null)
- {
- return $this->request('post', '/v1/terminal/locations', $params, $opts);
- }
-
- /**
- * Deletes a <code>Location</code> object.
- *
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Terminal\Location
- */
- public function delete($id, $params = null, $opts = null)
- {
- return $this->request('delete', $this->buildPath('/v1/terminal/locations/%s', $id), $params, $opts);
- }
-
- /**
- * Retrieves a <code>Location</code> object.
- *
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Terminal\Location
- */
- public function retrieve($id, $params = null, $opts = null)
- {
- return $this->request('get', $this->buildPath('/v1/terminal/locations/%s', $id), $params, $opts);
- }
-
- /**
- * Updates a <code>Location</code> object by setting the values of the parameters
- * passed. Any parameters not provided will be left unchanged.
- *
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Terminal\Location
- */
- public function update($id, $params = null, $opts = null)
- {
- return $this->request('post', $this->buildPath('/v1/terminal/locations/%s', $id), $params, $opts);
- }
-}
+<?php
+
+// File generated from our OpenAPI spec
+
+namespace Stripe\Service\Terminal;
+
+class LocationService extends \Stripe\Service\AbstractService
+{
+ /**
+ * Returns a list of <code>Location</code> objects.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\Terminal\Location>
+ */
+ public function all($params = null, $opts = null)
+ {
+ return $this->requestCollection('get', '/v1/terminal/locations', $params, $opts);
+ }
+
+ /**
+ * Creates a new <code>Location</code> object. For further details, including which
+ * address fields are required in each country, see the <a
+ * href="/docs/terminal/fleet/locations">Manage locations</a> guide.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Terminal\Location
+ */
+ public function create($params = null, $opts = null)
+ {
+ return $this->request('post', '/v1/terminal/locations', $params, $opts);
+ }
+
+ /**
+ * Deletes a <code>Location</code> object.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Terminal\Location
+ */
+ public function delete($id, $params = null, $opts = null)
+ {
+ return $this->request('delete', $this->buildPath('/v1/terminal/locations/%s', $id), $params, $opts);
+ }
+
+ /**
+ * Retrieves a <code>Location</code> object.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Terminal\Location
+ */
+ public function retrieve($id, $params = null, $opts = null)
+ {
+ return $this->request('get', $this->buildPath('/v1/terminal/locations/%s', $id), $params, $opts);
+ }
+
+ /**
+ * Updates a <code>Location</code> object by setting the values of the parameters
+ * passed. Any parameters not provided will be left unchanged.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Terminal\Location
+ */
+ public function update($id, $params = null, $opts = null)
+ {
+ return $this->request('post', $this->buildPath('/v1/terminal/locations/%s', $id), $params, $opts);
+ }
+}
diff --git a/vendor/stripe/stripe-php/lib/Service/Terminal/ReaderService.php b/vendor/stripe/stripe-php/lib/Service/Terminal/ReaderService.php
index 765015c..2f228f2 100644
--- a/vendor/stripe/stripe-php/lib/Service/Terminal/ReaderService.php
+++ b/vendor/stripe/stripe-php/lib/Service/Terminal/ReaderService.php
@@ -1,87 +1,151 @@
-<?php
-
-// File generated from our OpenAPI spec
-
-namespace Stripe\Service\Terminal;
-
-class ReaderService extends \Stripe\Service\AbstractService
-{
- /**
- * Returns a list of <code>Reader</code> objects.
- *
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Collection
- */
- public function all($params = null, $opts = null)
- {
- return $this->requestCollection('get', '/v1/terminal/readers', $params, $opts);
- }
-
- /**
- * Creates a new <code>Reader</code> object.
- *
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Terminal\Reader
- */
- public function create($params = null, $opts = null)
- {
- return $this->request('post', '/v1/terminal/readers', $params, $opts);
- }
-
- /**
- * Deletes a <code>Reader</code> object.
- *
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Terminal\Reader
- */
- public function delete($id, $params = null, $opts = null)
- {
- return $this->request('delete', $this->buildPath('/v1/terminal/readers/%s', $id), $params, $opts);
- }
-
- /**
- * Retrieves a <code>Reader</code> object.
- *
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Terminal\Reader
- */
- public function retrieve($id, $params = null, $opts = null)
- {
- return $this->request('get', $this->buildPath('/v1/terminal/readers/%s', $id), $params, $opts);
- }
-
- /**
- * Updates a <code>Reader</code> object by setting the values of the parameters
- * passed. Any parameters not provided will be left unchanged.
- *
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Terminal\Reader
- */
- public function update($id, $params = null, $opts = null)
- {
- return $this->request('post', $this->buildPath('/v1/terminal/readers/%s', $id), $params, $opts);
- }
-}
+<?php
+
+// File generated from our OpenAPI spec
+
+namespace Stripe\Service\Terminal;
+
+class ReaderService extends \Stripe\Service\AbstractService
+{
+ /**
+ * Returns a list of <code>Reader</code> objects.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\Terminal\Reader>
+ */
+ public function all($params = null, $opts = null)
+ {
+ return $this->requestCollection('get', '/v1/terminal/readers', $params, $opts);
+ }
+
+ /**
+ * Cancels the current reader action.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Terminal\Reader
+ */
+ public function cancelAction($id, $params = null, $opts = null)
+ {
+ return $this->request('post', $this->buildPath('/v1/terminal/readers/%s/cancel_action', $id), $params, $opts);
+ }
+
+ /**
+ * Creates a new <code>Reader</code> object.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Terminal\Reader
+ */
+ public function create($params = null, $opts = null)
+ {
+ return $this->request('post', '/v1/terminal/readers', $params, $opts);
+ }
+
+ /**
+ * Deletes a <code>Reader</code> object.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Terminal\Reader
+ */
+ public function delete($id, $params = null, $opts = null)
+ {
+ return $this->request('delete', $this->buildPath('/v1/terminal/readers/%s', $id), $params, $opts);
+ }
+
+ /**
+ * Initiates a payment flow on a Reader.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Terminal\Reader
+ */
+ public function processPaymentIntent($id, $params = null, $opts = null)
+ {
+ return $this->request('post', $this->buildPath('/v1/terminal/readers/%s/process_payment_intent', $id), $params, $opts);
+ }
+
+ /**
+ * Initiates a setup intent flow on a Reader.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Terminal\Reader
+ */
+ public function processSetupIntent($id, $params = null, $opts = null)
+ {
+ return $this->request('post', $this->buildPath('/v1/terminal/readers/%s/process_setup_intent', $id), $params, $opts);
+ }
+
+ /**
+ * Retrieves a <code>Reader</code> object.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Terminal\Reader
+ */
+ public function retrieve($id, $params = null, $opts = null)
+ {
+ return $this->request('get', $this->buildPath('/v1/terminal/readers/%s', $id), $params, $opts);
+ }
+
+ /**
+ * Sets reader display to show cart details.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Terminal\Reader
+ */
+ public function setReaderDisplay($id, $params = null, $opts = null)
+ {
+ return $this->request('post', $this->buildPath('/v1/terminal/readers/%s/set_reader_display', $id), $params, $opts);
+ }
+
+ /**
+ * Updates a <code>Reader</code> object by setting the values of the parameters
+ * passed. Any parameters not provided will be left unchanged.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Terminal\Reader
+ */
+ public function update($id, $params = null, $opts = null)
+ {
+ return $this->request('post', $this->buildPath('/v1/terminal/readers/%s', $id), $params, $opts);
+ }
+}
diff --git a/vendor/stripe/stripe-php/lib/Service/Terminal/TerminalServiceFactory.php b/vendor/stripe/stripe-php/lib/Service/Terminal/TerminalServiceFactory.php
index c70ac87..13ab144 100644
--- a/vendor/stripe/stripe-php/lib/Service/Terminal/TerminalServiceFactory.php
+++ b/vendor/stripe/stripe-php/lib/Service/Terminal/TerminalServiceFactory.php
@@ -1,29 +1,31 @@
-<?php
-
-// File generated from our OpenAPI spec
-
-namespace Stripe\Service\Terminal;
-
-/**
- * Service factory class for API resources in the Terminal namespace.
- *
- * @property ConnectionTokenService $connectionTokens
- * @property LocationService $locations
- * @property ReaderService $readers
- */
-class TerminalServiceFactory extends \Stripe\Service\AbstractServiceFactory
-{
- /**
- * @var array<string, string>
- */
- private static $classMap = [
- 'connectionTokens' => ConnectionTokenService::class,
- 'locations' => LocationService::class,
- 'readers' => ReaderService::class,
- ];
-
- protected function getServiceClass($name)
- {
- return \array_key_exists($name, self::$classMap) ? self::$classMap[$name] : null;
- }
-}
+<?php
+
+// File generated from our OpenAPI spec
+
+namespace Stripe\Service\Terminal;
+
+/**
+ * Service factory class for API resources in the Terminal namespace.
+ *
+ * @property ConfigurationService $configurations
+ * @property ConnectionTokenService $connectionTokens
+ * @property LocationService $locations
+ * @property ReaderService $readers
+ */
+class TerminalServiceFactory extends \Stripe\Service\AbstractServiceFactory
+{
+ /**
+ * @var array<string, string>
+ */
+ private static $classMap = [
+ 'configurations' => ConfigurationService::class,
+ 'connectionTokens' => ConnectionTokenService::class,
+ 'locations' => LocationService::class,
+ 'readers' => ReaderService::class,
+ ];
+
+ protected function getServiceClass($name)
+ {
+ return \array_key_exists($name, self::$classMap) ? self::$classMap[$name] : null;
+ }
+}
diff --git a/vendor/stripe/stripe-php/lib/Service/TestHelpers/RefundService.php b/vendor/stripe/stripe-php/lib/Service/TestHelpers/RefundService.php
new file mode 100644
index 0000000..4b558c6
--- /dev/null
+++ b/vendor/stripe/stripe-php/lib/Service/TestHelpers/RefundService.php
@@ -0,0 +1,24 @@
+<?php
+
+// File generated from our OpenAPI spec
+
+namespace Stripe\Service\TestHelpers;
+
+class RefundService extends \Stripe\Service\AbstractService
+{
+ /**
+ * Expire a refund with a status of <code>requires_action</code>.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Refund
+ */
+ public function expire($id, $params = null, $opts = null)
+ {
+ return $this->request('post', $this->buildPath('/v1/test_helpers/refunds/%s/expire', $id), $params, $opts);
+ }
+}
diff --git a/vendor/stripe/stripe-php/lib/Service/TestHelpers/Terminal/ReaderService.php b/vendor/stripe/stripe-php/lib/Service/TestHelpers/Terminal/ReaderService.php
new file mode 100644
index 0000000..b04ed23
--- /dev/null
+++ b/vendor/stripe/stripe-php/lib/Service/TestHelpers/Terminal/ReaderService.php
@@ -0,0 +1,25 @@
+<?php
+
+// File generated from our OpenAPI spec
+
+namespace Stripe\Service\TestHelpers\Terminal;
+
+class ReaderService extends \Stripe\Service\AbstractService
+{
+ /**
+ * Presents a payment method on a simulated reader. Can be used to simulate
+ * accepting a payment, saving a card or refunding a transaction.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Terminal\Reader
+ */
+ public function presentPaymentMethod($id, $params = null, $opts = null)
+ {
+ return $this->request('post', $this->buildPath('/v1/test_helpers/terminal/readers/%s/present_payment_method', $id), $params, $opts);
+ }
+}
diff --git a/vendor/stripe/stripe-php/lib/Service/TestHelpers/Terminal/TerminalServiceFactory.php b/vendor/stripe/stripe-php/lib/Service/TestHelpers/Terminal/TerminalServiceFactory.php
new file mode 100644
index 0000000..fb6a772
--- /dev/null
+++ b/vendor/stripe/stripe-php/lib/Service/TestHelpers/Terminal/TerminalServiceFactory.php
@@ -0,0 +1,25 @@
+<?php
+
+// File generated from our OpenAPI spec
+
+namespace Stripe\Service\TestHelpers\Terminal;
+
+/**
+ * Service factory class for API resources in the Terminal namespace.
+ *
+ * @property ReaderService $readers
+ */
+class TerminalServiceFactory extends \Stripe\Service\AbstractServiceFactory
+{
+ /**
+ * @var array<string, string>
+ */
+ private static $classMap = [
+ 'readers' => ReaderService::class,
+ ];
+
+ protected function getServiceClass($name)
+ {
+ return \array_key_exists($name, self::$classMap) ? self::$classMap[$name] : null;
+ }
+}
diff --git a/vendor/stripe/stripe-php/lib/Service/TestHelpers/TestClockService.php b/vendor/stripe/stripe-php/lib/Service/TestHelpers/TestClockService.php
new file mode 100644
index 0000000..f65eee9
--- /dev/null
+++ b/vendor/stripe/stripe-php/lib/Service/TestHelpers/TestClockService.php
@@ -0,0 +1,87 @@
+<?php
+
+// File generated from our OpenAPI spec
+
+namespace Stripe\Service\TestHelpers;
+
+class TestClockService extends \Stripe\Service\AbstractService
+{
+ /**
+ * Starts advancing a test clock to a specified time in the future. Advancement is
+ * done when status changes to <code>Ready</code>.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\TestHelpers\TestClock
+ */
+ public function advance($id, $params = null, $opts = null)
+ {
+ return $this->request('post', $this->buildPath('/v1/test_helpers/test_clocks/%s/advance', $id), $params, $opts);
+ }
+
+ /**
+ * Returns a list of your test clocks.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\TestHelpers\TestClock>
+ */
+ public function all($params = null, $opts = null)
+ {
+ return $this->requestCollection('get', '/v1/test_helpers/test_clocks', $params, $opts);
+ }
+
+ /**
+ * Creates a new test clock that can be attached to new customers and quotes.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\TestHelpers\TestClock
+ */
+ public function create($params = null, $opts = null)
+ {
+ return $this->request('post', '/v1/test_helpers/test_clocks', $params, $opts);
+ }
+
+ /**
+ * Deletes a test clock.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\TestHelpers\TestClock
+ */
+ public function delete($id, $params = null, $opts = null)
+ {
+ return $this->request('delete', $this->buildPath('/v1/test_helpers/test_clocks/%s', $id), $params, $opts);
+ }
+
+ /**
+ * Retrieves a test clock.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\TestHelpers\TestClock
+ */
+ public function retrieve($id, $params = null, $opts = null)
+ {
+ return $this->request('get', $this->buildPath('/v1/test_helpers/test_clocks/%s', $id), $params, $opts);
+ }
+}
diff --git a/vendor/stripe/stripe-php/lib/Service/TestHelpers/TestHelpersServiceFactory.php b/vendor/stripe/stripe-php/lib/Service/TestHelpers/TestHelpersServiceFactory.php
new file mode 100644
index 0000000..27438a7
--- /dev/null
+++ b/vendor/stripe/stripe-php/lib/Service/TestHelpers/TestHelpersServiceFactory.php
@@ -0,0 +1,29 @@
+<?php
+
+// File generated from our OpenAPI spec
+
+namespace Stripe\Service\TestHelpers;
+
+/**
+ * Service factory class for API resources in the TestHelpers namespace.
+ *
+ * @property RefundService $refunds
+ * @property Terminal\TerminalServiceFactory $terminal
+ * @property TestClockService $testClocks
+ */
+class TestHelpersServiceFactory extends \Stripe\Service\AbstractServiceFactory
+{
+ /**
+ * @var array<string, string>
+ */
+ private static $classMap = [
+ 'refunds' => RefundService::class,
+ 'terminal' => Terminal\TerminalServiceFactory::class,
+ 'testClocks' => TestClockService::class,
+ ];
+
+ protected function getServiceClass($name)
+ {
+ return \array_key_exists($name, self::$classMap) ? self::$classMap[$name] : null;
+ }
+}
diff --git a/vendor/stripe/stripe-php/lib/Service/TokenService.php b/vendor/stripe/stripe-php/lib/Service/TokenService.php
index 1c72759..be8adfd 100644
--- a/vendor/stripe/stripe-php/lib/Service/TokenService.php
+++ b/vendor/stripe/stripe-php/lib/Service/TokenService.php
@@ -1,42 +1,42 @@
-<?php
-
-// File generated from our OpenAPI spec
-
-namespace Stripe\Service;
-
-class TokenService extends \Stripe\Service\AbstractService
-{
- /**
- * Creates a single-use token that represents a bank account’s details. This token
- * can be used with any API method in place of a bank account dictionary. This
- * token can be used only once, by attaching it to a <a href="#accounts">Custom
- * account</a>.
- *
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Token
- */
- public function create($params = null, $opts = null)
- {
- return $this->request('post', '/v1/tokens', $params, $opts);
- }
-
- /**
- * Retrieves the token with the given ID.
- *
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Token
- */
- public function retrieve($id, $params = null, $opts = null)
- {
- return $this->request('get', $this->buildPath('/v1/tokens/%s', $id), $params, $opts);
- }
-}
+<?php
+
+// File generated from our OpenAPI spec
+
+namespace Stripe\Service;
+
+class TokenService extends \Stripe\Service\AbstractService
+{
+ /**
+ * Creates a single-use token that represents a bank account’s details. This token
+ * can be used with any API method in place of a bank account dictionary. This
+ * token can be used only once, by attaching it to a <a href="#accounts">Custom
+ * account</a>.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Token
+ */
+ public function create($params = null, $opts = null)
+ {
+ return $this->request('post', '/v1/tokens', $params, $opts);
+ }
+
+ /**
+ * Retrieves the token with the given ID.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Token
+ */
+ public function retrieve($id, $params = null, $opts = null)
+ {
+ return $this->request('get', $this->buildPath('/v1/tokens/%s', $id), $params, $opts);
+ }
+}
diff --git a/vendor/stripe/stripe-php/lib/Service/TopupService.php b/vendor/stripe/stripe-php/lib/Service/TopupService.php
index 059dc20..038abdc 100644
--- a/vendor/stripe/stripe-php/lib/Service/TopupService.php
+++ b/vendor/stripe/stripe-php/lib/Service/TopupService.php
@@ -1,89 +1,89 @@
-<?php
-
-// File generated from our OpenAPI spec
-
-namespace Stripe\Service;
-
-class TopupService extends \Stripe\Service\AbstractService
-{
- /**
- * Returns a list of top-ups.
- *
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Collection
- */
- public function all($params = null, $opts = null)
- {
- return $this->requestCollection('get', '/v1/topups', $params, $opts);
- }
-
- /**
- * Cancels a top-up. Only pending top-ups can be canceled.
- *
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Topup
- */
- public function cancel($id, $params = null, $opts = null)
- {
- return $this->request('post', $this->buildPath('/v1/topups/%s/cancel', $id), $params, $opts);
- }
-
- /**
- * Top up the balance of an account.
- *
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Topup
- */
- public function create($params = null, $opts = null)
- {
- return $this->request('post', '/v1/topups', $params, $opts);
- }
-
- /**
- * Retrieves the details of a top-up that has previously been created. Supply the
- * unique top-up ID that was returned from your previous request, and Stripe will
- * return the corresponding top-up information.
- *
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Topup
- */
- public function retrieve($id, $params = null, $opts = null)
- {
- return $this->request('get', $this->buildPath('/v1/topups/%s', $id), $params, $opts);
- }
-
- /**
- * Updates the metadata of a top-up. Other top-up details are not editable by
- * design.
- *
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Topup
- */
- public function update($id, $params = null, $opts = null)
- {
- return $this->request('post', $this->buildPath('/v1/topups/%s', $id), $params, $opts);
- }
-}
+<?php
+
+// File generated from our OpenAPI spec
+
+namespace Stripe\Service;
+
+class TopupService extends \Stripe\Service\AbstractService
+{
+ /**
+ * Returns a list of top-ups.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\Topup>
+ */
+ public function all($params = null, $opts = null)
+ {
+ return $this->requestCollection('get', '/v1/topups', $params, $opts);
+ }
+
+ /**
+ * Cancels a top-up. Only pending top-ups can be canceled.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Topup
+ */
+ public function cancel($id, $params = null, $opts = null)
+ {
+ return $this->request('post', $this->buildPath('/v1/topups/%s/cancel', $id), $params, $opts);
+ }
+
+ /**
+ * Top up the balance of an account.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Topup
+ */
+ public function create($params = null, $opts = null)
+ {
+ return $this->request('post', '/v1/topups', $params, $opts);
+ }
+
+ /**
+ * Retrieves the details of a top-up that has previously been created. Supply the
+ * unique top-up ID that was returned from your previous request, and Stripe will
+ * return the corresponding top-up information.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Topup
+ */
+ public function retrieve($id, $params = null, $opts = null)
+ {
+ return $this->request('get', $this->buildPath('/v1/topups/%s', $id), $params, $opts);
+ }
+
+ /**
+ * Updates the metadata of a top-up. Other top-up details are not editable by
+ * design.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Topup
+ */
+ public function update($id, $params = null, $opts = null)
+ {
+ return $this->request('post', $this->buildPath('/v1/topups/%s', $id), $params, $opts);
+ }
+}
diff --git a/vendor/stripe/stripe-php/lib/Service/TransferService.php b/vendor/stripe/stripe-php/lib/Service/TransferService.php
index 150bbf7..85664db 100644
--- a/vendor/stripe/stripe-php/lib/Service/TransferService.php
+++ b/vendor/stripe/stripe-php/lib/Service/TransferService.php
@@ -1,175 +1,175 @@
-<?php
-
-// File generated from our OpenAPI spec
-
-namespace Stripe\Service;
-
-class TransferService extends \Stripe\Service\AbstractService
-{
- /**
- * Returns a list of existing transfers sent to connected accounts. The transfers
- * are returned in sorted order, with the most recently created transfers appearing
- * first.
- *
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Collection
- */
- public function all($params = null, $opts = null)
- {
- return $this->requestCollection('get', '/v1/transfers', $params, $opts);
- }
-
- /**
- * You can see a list of the reversals belonging to a specific transfer. Note that
- * the 10 most recent reversals are always available by default on the transfer
- * object. If you need more than those 10, you can use this API method and the
- * <code>limit</code> and <code>starting_after</code> parameters to page through
- * additional reversals.
- *
- * @param string $parentId
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Collection
- */
- public function allReversals($parentId, $params = null, $opts = null)
- {
- return $this->requestCollection('get', $this->buildPath('/v1/transfers/%s/reversals', $parentId), $params, $opts);
- }
-
- /**
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Transfer
- */
- public function cancel($id, $params = null, $opts = null)
- {
- return $this->request('post', $this->buildPath('/v1/transfers/%s/cancel', $id), $params, $opts);
- }
-
- /**
- * To send funds from your Stripe account to a connected account, you create a new
- * transfer object. Your <a href="#balance">Stripe balance</a> must be able to
- * cover the transfer amount, or you’ll receive an “Insufficient Funds” error.
- *
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Transfer
- */
- public function create($params = null, $opts = null)
- {
- return $this->request('post', '/v1/transfers', $params, $opts);
- }
-
- /**
- * When you create a new reversal, you must specify a transfer to create it on.
- *
- * When reversing transfers, you can optionally reverse part of the transfer. You
- * can do so as many times as you wish until the entire transfer has been reversed.
- *
- * Once entirely reversed, a transfer can’t be reversed again. This method will
- * return an error when called on an already-reversed transfer, or when trying to
- * reverse more money than is left on a transfer.
- *
- * @param string $parentId
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\TransferReversal
- */
- public function createReversal($parentId, $params = null, $opts = null)
- {
- return $this->request('post', $this->buildPath('/v1/transfers/%s/reversals', $parentId), $params, $opts);
- }
-
- /**
- * Retrieves the details of an existing transfer. Supply the unique transfer ID
- * from either a transfer creation request or the transfer list, and Stripe will
- * return the corresponding transfer information.
- *
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Transfer
- */
- public function retrieve($id, $params = null, $opts = null)
- {
- return $this->request('get', $this->buildPath('/v1/transfers/%s', $id), $params, $opts);
- }
-
- /**
- * By default, you can see the 10 most recent reversals stored directly on the
- * transfer object, but you can also retrieve details about a specific reversal
- * stored on the transfer.
- *
- * @param string $parentId
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\TransferReversal
- */
- public function retrieveReversal($parentId, $id, $params = null, $opts = null)
- {
- return $this->request('get', $this->buildPath('/v1/transfers/%s/reversals/%s', $parentId, $id), $params, $opts);
- }
-
- /**
- * Updates the specified transfer by setting the values of the parameters passed.
- * Any parameters not provided will be left unchanged.
- *
- * This request accepts only metadata as an argument.
- *
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Transfer
- */
- public function update($id, $params = null, $opts = null)
- {
- return $this->request('post', $this->buildPath('/v1/transfers/%s', $id), $params, $opts);
- }
-
- /**
- * Updates the specified reversal by setting the values of the parameters passed.
- * Any parameters not provided will be left unchanged.
- *
- * This request only accepts metadata and description as arguments.
- *
- * @param string $parentId
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\TransferReversal
- */
- public function updateReversal($parentId, $id, $params = null, $opts = null)
- {
- return $this->request('post', $this->buildPath('/v1/transfers/%s/reversals/%s', $parentId, $id), $params, $opts);
- }
-}
+<?php
+
+// File generated from our OpenAPI spec
+
+namespace Stripe\Service;
+
+class TransferService extends \Stripe\Service\AbstractService
+{
+ /**
+ * Returns a list of existing transfers sent to connected accounts. The transfers
+ * are returned in sorted order, with the most recently created transfers appearing
+ * first.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\Transfer>
+ */
+ public function all($params = null, $opts = null)
+ {
+ return $this->requestCollection('get', '/v1/transfers', $params, $opts);
+ }
+
+ /**
+ * You can see a list of the reversals belonging to a specific transfer. Note that
+ * the 10 most recent reversals are always available by default on the transfer
+ * object. If you need more than those 10, you can use this API method and the
+ * <code>limit</code> and <code>starting_after</code> parameters to page through
+ * additional reversals.
+ *
+ * @param string $parentId
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\TransferReversal>
+ */
+ public function allReversals($parentId, $params = null, $opts = null)
+ {
+ return $this->requestCollection('get', $this->buildPath('/v1/transfers/%s/reversals', $parentId), $params, $opts);
+ }
+
+ /**
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Transfer
+ */
+ public function cancel($id, $params = null, $opts = null)
+ {
+ return $this->request('post', $this->buildPath('/v1/transfers/%s/cancel', $id), $params, $opts);
+ }
+
+ /**
+ * To send funds from your Stripe account to a connected account, you create a new
+ * transfer object. Your <a href="#balance">Stripe balance</a> must be able to
+ * cover the transfer amount, or you’ll receive an “Insufficient Funds” error.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Transfer
+ */
+ public function create($params = null, $opts = null)
+ {
+ return $this->request('post', '/v1/transfers', $params, $opts);
+ }
+
+ /**
+ * When you create a new reversal, you must specify a transfer to create it on.
+ *
+ * When reversing transfers, you can optionally reverse part of the transfer. You
+ * can do so as many times as you wish until the entire transfer has been reversed.
+ *
+ * Once entirely reversed, a transfer can’t be reversed again. This method will
+ * return an error when called on an already-reversed transfer, or when trying to
+ * reverse more money than is left on a transfer.
+ *
+ * @param string $parentId
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\TransferReversal
+ */
+ public function createReversal($parentId, $params = null, $opts = null)
+ {
+ return $this->request('post', $this->buildPath('/v1/transfers/%s/reversals', $parentId), $params, $opts);
+ }
+
+ /**
+ * Retrieves the details of an existing transfer. Supply the unique transfer ID
+ * from either a transfer creation request or the transfer list, and Stripe will
+ * return the corresponding transfer information.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Transfer
+ */
+ public function retrieve($id, $params = null, $opts = null)
+ {
+ return $this->request('get', $this->buildPath('/v1/transfers/%s', $id), $params, $opts);
+ }
+
+ /**
+ * By default, you can see the 10 most recent reversals stored directly on the
+ * transfer object, but you can also retrieve details about a specific reversal
+ * stored on the transfer.
+ *
+ * @param string $parentId
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\TransferReversal
+ */
+ public function retrieveReversal($parentId, $id, $params = null, $opts = null)
+ {
+ return $this->request('get', $this->buildPath('/v1/transfers/%s/reversals/%s', $parentId, $id), $params, $opts);
+ }
+
+ /**
+ * Updates the specified transfer by setting the values of the parameters passed.
+ * Any parameters not provided will be left unchanged.
+ *
+ * This request accepts only metadata as an argument.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Transfer
+ */
+ public function update($id, $params = null, $opts = null)
+ {
+ return $this->request('post', $this->buildPath('/v1/transfers/%s', $id), $params, $opts);
+ }
+
+ /**
+ * Updates the specified reversal by setting the values of the parameters passed.
+ * Any parameters not provided will be left unchanged.
+ *
+ * This request only accepts metadata and description as arguments.
+ *
+ * @param string $parentId
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\TransferReversal
+ */
+ public function updateReversal($parentId, $id, $params = null, $opts = null)
+ {
+ return $this->request('post', $this->buildPath('/v1/transfers/%s/reversals/%s', $parentId, $id), $params, $opts);
+ }
+}
diff --git a/vendor/stripe/stripe-php/lib/Service/WebhookEndpointService.php b/vendor/stripe/stripe-php/lib/Service/WebhookEndpointService.php
index 01e6422..e3ad21d 100644
--- a/vendor/stripe/stripe-php/lib/Service/WebhookEndpointService.php
+++ b/vendor/stripe/stripe-php/lib/Service/WebhookEndpointService.php
@@ -1,97 +1,97 @@
-<?php
-
-// File generated from our OpenAPI spec
-
-namespace Stripe\Service;
-
-class WebhookEndpointService extends \Stripe\Service\AbstractService
-{
- /**
- * Returns a list of your webhook endpoints.
- *
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\Collection
- */
- public function all($params = null, $opts = null)
- {
- return $this->requestCollection('get', '/v1/webhook_endpoints', $params, $opts);
- }
-
- /**
- * A webhook endpoint must have a <code>url</code> and a list of
- * <code>enabled_events</code>. You may optionally specify the Boolean
- * <code>connect</code> parameter. If set to true, then a Connect webhook endpoint
- * that notifies the specified <code>url</code> about events from all connected
- * accounts is created; otherwise an account webhook endpoint that notifies the
- * specified <code>url</code> only about events from your account is created. You
- * can also create webhook endpoints in the <a
- * href="https://dashboard.stripe.com/account/webhooks">webhooks settings</a>
- * section of the Dashboard.
- *
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\WebhookEndpoint
- */
- public function create($params = null, $opts = null)
- {
- return $this->request('post', '/v1/webhook_endpoints', $params, $opts);
- }
-
- /**
- * You can also delete webhook endpoints via the <a
- * href="https://dashboard.stripe.com/account/webhooks">webhook endpoint
- * management</a> page of the Stripe dashboard.
- *
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\WebhookEndpoint
- */
- public function delete($id, $params = null, $opts = null)
- {
- return $this->request('delete', $this->buildPath('/v1/webhook_endpoints/%s', $id), $params, $opts);
- }
-
- /**
- * Retrieves the webhook endpoint with the given ID.
- *
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\WebhookEndpoint
- */
- public function retrieve($id, $params = null, $opts = null)
- {
- return $this->request('get', $this->buildPath('/v1/webhook_endpoints/%s', $id), $params, $opts);
- }
-
- /**
- * Updates the webhook endpoint. You may edit the <code>url</code>, the list of
- * <code>enabled_events</code>, and the status of your endpoint.
- *
- * @param string $id
- * @param null|array $params
- * @param null|array|\Stripe\Util\RequestOptions $opts
- *
- * @throws \Stripe\Exception\ApiErrorException if the request fails
- *
- * @return \Stripe\WebhookEndpoint
- */
- public function update($id, $params = null, $opts = null)
- {
- return $this->request('post', $this->buildPath('/v1/webhook_endpoints/%s', $id), $params, $opts);
- }
-}
+<?php
+
+// File generated from our OpenAPI spec
+
+namespace Stripe\Service;
+
+class WebhookEndpointService extends \Stripe\Service\AbstractService
+{
+ /**
+ * Returns a list of your webhook endpoints.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Collection<\Stripe\WebhookEndpoint>
+ */
+ public function all($params = null, $opts = null)
+ {
+ return $this->requestCollection('get', '/v1/webhook_endpoints', $params, $opts);
+ }
+
+ /**
+ * A webhook endpoint must have a <code>url</code> and a list of
+ * <code>enabled_events</code>. You may optionally specify the Boolean
+ * <code>connect</code> parameter. If set to true, then a Connect webhook endpoint
+ * that notifies the specified <code>url</code> about events from all connected
+ * accounts is created; otherwise an account webhook endpoint that notifies the
+ * specified <code>url</code> only about events from your account is created. You
+ * can also create webhook endpoints in the <a
+ * href="https://dashboard.stripe.com/account/webhooks">webhooks settings</a>
+ * section of the Dashboard.
+ *
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\WebhookEndpoint
+ */
+ public function create($params = null, $opts = null)
+ {
+ return $this->request('post', '/v1/webhook_endpoints', $params, $opts);
+ }
+
+ /**
+ * You can also delete webhook endpoints via the <a
+ * href="https://dashboard.stripe.com/account/webhooks">webhook endpoint
+ * management</a> page of the Stripe dashboard.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\WebhookEndpoint
+ */
+ public function delete($id, $params = null, $opts = null)
+ {
+ return $this->request('delete', $this->buildPath('/v1/webhook_endpoints/%s', $id), $params, $opts);
+ }
+
+ /**
+ * Retrieves the webhook endpoint with the given ID.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\WebhookEndpoint
+ */
+ public function retrieve($id, $params = null, $opts = null)
+ {
+ return $this->request('get', $this->buildPath('/v1/webhook_endpoints/%s', $id), $params, $opts);
+ }
+
+ /**
+ * Updates the webhook endpoint. You may edit the <code>url</code>, the list of
+ * <code>enabled_events</code>, and the status of your endpoint.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\WebhookEndpoint
+ */
+ public function update($id, $params = null, $opts = null)
+ {
+ return $this->request('post', $this->buildPath('/v1/webhook_endpoints/%s', $id), $params, $opts);
+ }
+}