From ceab5eb76f40f1465b0b3a5935b8d1a737ac2baa Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Thu, 18 Jun 2026 03:46:04 +0000 Subject: [PATCH 1/8] Update generated code for v2315 and dbdc3899df7b4f258f74613c02cf8ed4b80b519a --- CODEGEN_VERSION | 2 +- init.php | 30 +- ...nagerCapabilityStatusUpdatedEventData.php} | 2 +- ...eyManagerCapabilityStatusUpdatedEvent.php} | 8 +- ...abilityStatusUpdatedEventNotification.php} | 6 +- ...ConfigurationMoneyManagerUpdatedEvent.php} | 4 +- ...nMoneyManagerUpdatedEventNotification.php} | 6 +- ...MoneyManagementDebitDisputeFailedEvent.php | 31 + ...entDebitDisputeFailedEventNotification.php | 38 + ...eyManagementDebitDisputeSubmittedEvent.php | 31 + ...DebitDisputeSubmittedEventNotification.php | 38 + ...eyManagementDebitDisputeSucceededEvent.php | 31 + ...DebitDisputeSucceededEventNotification.php | 38 + ...agementOutboundPaymentUnderReviewEvent.php | 31 + ...undPaymentUnderReviewEventNotification.php | 38 + ...gementOutboundTransferUnderReviewEvent.php | 31 + ...ndTransferUnderReviewEventNotification.php | 38 + lib/Service/V2/Billing/ContractService.php | 2 +- lib/Service/V2/Core/AccountService.php | 6865 +++++++++++------ lib/Service/V2/Core/AccountTokenService.php | 2 +- lib/Service/V2/Core/BatchJobService.php | 2 +- lib/Service/V2/Core/CoreServiceFactory.php | 2 + lib/Service/V2/Core/Health/AlertService.php | 245 + .../V2/Core/Health/Alerts/HistoryService.php | 130 + .../V2/Core/Health/HealthServiceFactory.php | 25 + .../V2/Core/Vault/UsBankAccountService.php | 4 +- .../FinancialAccountService.php | 2 +- .../MoneyManagementServiceFactory.php | 4 + .../OutboundPaymentService.php | 2 +- .../OutboundTransferService.php | 2 +- .../MoneyManagement/PayoutIntentService.php | 94 + .../TestHelpers/FinancialAddressService.php | 30 + .../TestHelpers/TestHelpersServiceFactory.php | 25 + lib/StripeEventNotificationHandler.php | 109 +- lib/Util/EventNotificationTypes.php | 9 +- lib/Util/EventTypes.php | 9 +- lib/Util/ObjectTypes.php | 4 + lib/V2/Billing/MeterEvent.php | 4 +- lib/V2/Billing/MeterEventAdjustment.php | 2 +- lib/V2/Commerce/ProductCatalogImport.php | 4 + lib/V2/Core/Account.php | 745 +- lib/V2/Core/BatchJob.php | 1 - lib/V2/Core/Health/Alert.php | 152 + lib/V2/Core/Health/AlertHistoryEntry.php | 140 + lib/V2/MoneyManagement/FinancialAddress.php | 2 +- .../FinancialAddressDebitSimulation.php | 17 + lib/V2/MoneyManagement/OutboundPayment.php | 6 +- lib/V2/MoneyManagement/OutboundTransfer.php | 4 +- lib/V2/MoneyManagement/PayoutIntent.php | 36 + lib/V2/MoneyManagement/ReceivedCredit.php | 2 +- lib/V2/MoneyManagement/ReceivedDebit.php | 4 +- tests/Stripe/GeneratedExamplesTest.php | 425 +- 52 files changed, 7146 insertions(+), 2368 deletions(-) rename lib/EventData/{V2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEventData.php => V2CoreAccountIncludingConfigurationMoneyManagerCapabilityStatusUpdatedEventData.php} (60%) rename lib/Events/{V2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEvent.php => V2CoreAccountIncludingConfigurationMoneyManagerCapabilityStatusUpdatedEvent.php} (75%) rename lib/Events/{V2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEventNotification.php => V2CoreAccountIncludingConfigurationMoneyManagerCapabilityStatusUpdatedEventNotification.php} (71%) rename lib/Events/{V2CoreAccountIncludingConfigurationStorerUpdatedEvent.php => V2CoreAccountIncludingConfigurationMoneyManagerUpdatedEvent.php} (83%) rename lib/Events/{V2CoreAccountIncludingConfigurationStorerUpdatedEventNotification.php => V2CoreAccountIncludingConfigurationMoneyManagerUpdatedEventNotification.php} (75%) create mode 100644 lib/Events/V2MoneyManagementDebitDisputeFailedEvent.php create mode 100644 lib/Events/V2MoneyManagementDebitDisputeFailedEventNotification.php create mode 100644 lib/Events/V2MoneyManagementDebitDisputeSubmittedEvent.php create mode 100644 lib/Events/V2MoneyManagementDebitDisputeSubmittedEventNotification.php create mode 100644 lib/Events/V2MoneyManagementDebitDisputeSucceededEvent.php create mode 100644 lib/Events/V2MoneyManagementDebitDisputeSucceededEventNotification.php create mode 100644 lib/Events/V2MoneyManagementOutboundPaymentUnderReviewEvent.php create mode 100644 lib/Events/V2MoneyManagementOutboundPaymentUnderReviewEventNotification.php create mode 100644 lib/Events/V2MoneyManagementOutboundTransferUnderReviewEvent.php create mode 100644 lib/Events/V2MoneyManagementOutboundTransferUnderReviewEventNotification.php create mode 100644 lib/Service/V2/Core/Health/AlertService.php create mode 100644 lib/Service/V2/Core/Health/Alerts/HistoryService.php create mode 100644 lib/Service/V2/Core/Health/HealthServiceFactory.php create mode 100644 lib/Service/V2/MoneyManagement/PayoutIntentService.php create mode 100644 lib/Service/V2/MoneyManagement/TestHelpers/FinancialAddressService.php create mode 100644 lib/Service/V2/MoneyManagement/TestHelpers/TestHelpersServiceFactory.php create mode 100644 lib/V2/Core/Health/Alert.php create mode 100644 lib/V2/Core/Health/AlertHistoryEntry.php create mode 100644 lib/V2/MoneyManagement/FinancialAddressDebitSimulation.php create mode 100644 lib/V2/MoneyManagement/PayoutIntent.php diff --git a/CODEGEN_VERSION b/CODEGEN_VERSION index bce7797ff..298265bf2 100644 --- a/CODEGEN_VERSION +++ b/CODEGEN_VERSION @@ -1 +1 @@ -161b2a6978a9cd8c0c376d83ae012fd5a7da2fe1 \ No newline at end of file +dbdc3899df7b4f258f74613c02cf8ed4b80b519a \ No newline at end of file diff --git a/init.php b/init.php index 07a741a21..61254fdad 100644 --- a/init.php +++ b/init.php @@ -172,8 +172,8 @@ require __DIR__ . '/lib/EventData/V2CoreAccountIncludingConfigurationCardCreatorCapabilityStatusUpdatedEventData.php'; require __DIR__ . '/lib/EventData/V2CoreAccountIncludingConfigurationCustomerCapabilityStatusUpdatedEventData.php'; require __DIR__ . '/lib/EventData/V2CoreAccountIncludingConfigurationMerchantCapabilityStatusUpdatedEventData.php'; +require __DIR__ . '/lib/EventData/V2CoreAccountIncludingConfigurationMoneyManagerCapabilityStatusUpdatedEventData.php'; require __DIR__ . '/lib/EventData/V2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEventData.php'; -require __DIR__ . '/lib/EventData/V2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEventData.php'; require __DIR__ . '/lib/EventData/V2CoreAccountLinkReturnedEventData.php'; require __DIR__ . '/lib/EventData/V2CoreAccountPersonCreatedEventData.php'; require __DIR__ . '/lib/EventData/V2CoreAccountPersonDeletedEventData.php'; @@ -740,14 +740,14 @@ require __DIR__ . '/lib/Events/V2CoreAccountIncludingConfigurationMerchantCapabilityStatusUpdatedEventNotification.php'; require __DIR__ . '/lib/Events/V2CoreAccountIncludingConfigurationMerchantUpdatedEvent.php'; require __DIR__ . '/lib/Events/V2CoreAccountIncludingConfigurationMerchantUpdatedEventNotification.php'; +require __DIR__ . '/lib/Events/V2CoreAccountIncludingConfigurationMoneyManagerCapabilityStatusUpdatedEvent.php'; +require __DIR__ . '/lib/Events/V2CoreAccountIncludingConfigurationMoneyManagerCapabilityStatusUpdatedEventNotification.php'; +require __DIR__ . '/lib/Events/V2CoreAccountIncludingConfigurationMoneyManagerUpdatedEvent.php'; +require __DIR__ . '/lib/Events/V2CoreAccountIncludingConfigurationMoneyManagerUpdatedEventNotification.php'; require __DIR__ . '/lib/Events/V2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEvent.php'; require __DIR__ . '/lib/Events/V2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEventNotification.php'; require __DIR__ . '/lib/Events/V2CoreAccountIncludingConfigurationRecipientUpdatedEvent.php'; require __DIR__ . '/lib/Events/V2CoreAccountIncludingConfigurationRecipientUpdatedEventNotification.php'; -require __DIR__ . '/lib/Events/V2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEvent.php'; -require __DIR__ . '/lib/Events/V2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEventNotification.php'; -require __DIR__ . '/lib/Events/V2CoreAccountIncludingConfigurationStorerUpdatedEvent.php'; -require __DIR__ . '/lib/Events/V2CoreAccountIncludingConfigurationStorerUpdatedEventNotification.php'; require __DIR__ . '/lib/Events/V2CoreAccountIncludingDefaultsUpdatedEvent.php'; require __DIR__ . '/lib/Events/V2CoreAccountIncludingDefaultsUpdatedEventNotification.php'; require __DIR__ . '/lib/Events/V2CoreAccountIncludingFutureRequirementsUpdatedEvent.php'; @@ -908,6 +908,12 @@ require __DIR__ . '/lib/Events/V2IamStripeAccessGrantUpdatedEventNotification.php'; require __DIR__ . '/lib/Events/V2MoneyManagementAdjustmentCreatedEvent.php'; require __DIR__ . '/lib/Events/V2MoneyManagementAdjustmentCreatedEventNotification.php'; +require __DIR__ . '/lib/Events/V2MoneyManagementDebitDisputeFailedEvent.php'; +require __DIR__ . '/lib/Events/V2MoneyManagementDebitDisputeFailedEventNotification.php'; +require __DIR__ . '/lib/Events/V2MoneyManagementDebitDisputeSubmittedEvent.php'; +require __DIR__ . '/lib/Events/V2MoneyManagementDebitDisputeSubmittedEventNotification.php'; +require __DIR__ . '/lib/Events/V2MoneyManagementDebitDisputeSucceededEvent.php'; +require __DIR__ . '/lib/Events/V2MoneyManagementDebitDisputeSucceededEventNotification.php'; require __DIR__ . '/lib/Events/V2MoneyManagementFinancialAccountCreatedEvent.php'; require __DIR__ . '/lib/Events/V2MoneyManagementFinancialAccountCreatedEventNotification.php'; require __DIR__ . '/lib/Events/V2MoneyManagementFinancialAccountStatementCreatedEvent.php'; @@ -942,6 +948,8 @@ require __DIR__ . '/lib/Events/V2MoneyManagementOutboundPaymentPostedEventNotification.php'; require __DIR__ . '/lib/Events/V2MoneyManagementOutboundPaymentReturnedEvent.php'; require __DIR__ . '/lib/Events/V2MoneyManagementOutboundPaymentReturnedEventNotification.php'; +require __DIR__ . '/lib/Events/V2MoneyManagementOutboundPaymentUnderReviewEvent.php'; +require __DIR__ . '/lib/Events/V2MoneyManagementOutboundPaymentUnderReviewEventNotification.php'; require __DIR__ . '/lib/Events/V2MoneyManagementOutboundPaymentUpdatedEvent.php'; require __DIR__ . '/lib/Events/V2MoneyManagementOutboundPaymentUpdatedEventNotification.php'; require __DIR__ . '/lib/Events/V2MoneyManagementOutboundTransferCanceledEvent.php'; @@ -954,6 +962,8 @@ require __DIR__ . '/lib/Events/V2MoneyManagementOutboundTransferPostedEventNotification.php'; require __DIR__ . '/lib/Events/V2MoneyManagementOutboundTransferReturnedEvent.php'; require __DIR__ . '/lib/Events/V2MoneyManagementOutboundTransferReturnedEventNotification.php'; +require __DIR__ . '/lib/Events/V2MoneyManagementOutboundTransferUnderReviewEvent.php'; +require __DIR__ . '/lib/Events/V2MoneyManagementOutboundTransferUnderReviewEventNotification.php'; require __DIR__ . '/lib/Events/V2MoneyManagementOutboundTransferUpdatedEvent.php'; require __DIR__ . '/lib/Events/V2MoneyManagementOutboundTransferUpdatedEventNotification.php'; require __DIR__ . '/lib/Events/V2MoneyManagementPayoutMethodCreatedEvent.php'; @@ -1404,6 +1414,9 @@ require __DIR__ . '/lib/Service/V2/Core/EventService.php'; require __DIR__ . '/lib/Service/V2/Core/FeeBatchService.php'; require __DIR__ . '/lib/Service/V2/Core/FeeEntryService.php'; +require __DIR__ . '/lib/Service/V2/Core/Health/AlertService.php'; +require __DIR__ . '/lib/Service/V2/Core/Health/Alerts/HistoryService.php'; +require __DIR__ . '/lib/Service/V2/Core/Health/HealthServiceFactory.php'; require __DIR__ . '/lib/Service/V2/Core/Vault/GbBankAccountService.php'; require __DIR__ . '/lib/Service/V2/Core/Vault/UsBankAccountService.php'; require __DIR__ . '/lib/Service/V2/Core/Vault/VaultServiceFactory.php'; @@ -1430,11 +1443,14 @@ require __DIR__ . '/lib/Service/V2/MoneyManagement/OutboundPaymentService.php'; require __DIR__ . '/lib/Service/V2/MoneyManagement/OutboundSetupIntentService.php'; require __DIR__ . '/lib/Service/V2/MoneyManagement/OutboundTransferService.php'; +require __DIR__ . '/lib/Service/V2/MoneyManagement/PayoutIntentService.php'; require __DIR__ . '/lib/Service/V2/MoneyManagement/PayoutMethodService.php'; require __DIR__ . '/lib/Service/V2/MoneyManagement/PayoutMethodsBankAccountSpecService.php'; require __DIR__ . '/lib/Service/V2/MoneyManagement/ReceivedCreditService.php'; require __DIR__ . '/lib/Service/V2/MoneyManagement/ReceivedDebitService.php'; require __DIR__ . '/lib/Service/V2/MoneyManagement/RecipientVerificationService.php'; +require __DIR__ . '/lib/Service/V2/MoneyManagement/TestHelpers/FinancialAddressService.php'; +require __DIR__ . '/lib/Service/V2/MoneyManagement/TestHelpers/TestHelpersServiceFactory.php'; require __DIR__ . '/lib/Service/V2/MoneyManagement/TransactionEntryService.php'; require __DIR__ . '/lib/Service/V2/MoneyManagement/TransactionService.php'; require __DIR__ . '/lib/Service/V2/Network/BusinessProfileService.php'; @@ -1550,6 +1566,8 @@ require __DIR__ . '/lib/V2/Core/EventDestination.php'; require __DIR__ . '/lib/V2/Core/FeeBatch.php'; require __DIR__ . '/lib/V2/Core/FeeEntry.php'; +require __DIR__ . '/lib/V2/Core/Health/Alert.php'; +require __DIR__ . '/lib/V2/Core/Health/AlertHistoryEntry.php'; require __DIR__ . '/lib/V2/Core/Vault/GbBankAccount.php'; require __DIR__ . '/lib/V2/Core/Vault/UsBankAccount.php'; require __DIR__ . '/lib/V2/Data/Analytics/MetricQueryResult.php'; @@ -1567,11 +1585,13 @@ require __DIR__ . '/lib/V2/MoneyManagement/FinancialAccount.php'; require __DIR__ . '/lib/V2/MoneyManagement/FinancialAccountStatement.php'; require __DIR__ . '/lib/V2/MoneyManagement/FinancialAddress.php'; +require __DIR__ . '/lib/V2/MoneyManagement/FinancialAddressDebitSimulation.php'; require __DIR__ . '/lib/V2/MoneyManagement/InboundTransfer.php'; require __DIR__ . '/lib/V2/MoneyManagement/OutboundPayment.php'; require __DIR__ . '/lib/V2/MoneyManagement/OutboundPaymentQuote.php'; require __DIR__ . '/lib/V2/MoneyManagement/OutboundSetupIntent.php'; require __DIR__ . '/lib/V2/MoneyManagement/OutboundTransfer.php'; +require __DIR__ . '/lib/V2/MoneyManagement/PayoutIntent.php'; require __DIR__ . '/lib/V2/MoneyManagement/PayoutMethod.php'; require __DIR__ . '/lib/V2/MoneyManagement/PayoutMethodsBankAccountSpec.php'; require __DIR__ . '/lib/V2/MoneyManagement/ReceivedCredit.php'; diff --git a/lib/EventData/V2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEventData.php b/lib/EventData/V2CoreAccountIncludingConfigurationMoneyManagerCapabilityStatusUpdatedEventData.php similarity index 60% rename from lib/EventData/V2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEventData.php rename to lib/EventData/V2CoreAccountIncludingConfigurationMoneyManagerCapabilityStatusUpdatedEventData.php index ec10ec476..19380c72a 100644 --- a/lib/EventData/V2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEventData.php +++ b/lib/EventData/V2CoreAccountIncludingConfigurationMoneyManagerCapabilityStatusUpdatedEventData.php @@ -7,4 +7,4 @@ /** * @property string $updated_capability Open Enum. The capability which had its status updated. */ -class V2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEventData extends \Stripe\StripeObject {} +class V2CoreAccountIncludingConfigurationMoneyManagerCapabilityStatusUpdatedEventData extends \Stripe\StripeObject {} diff --git a/lib/Events/V2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEvent.php b/lib/Events/V2CoreAccountIncludingConfigurationMoneyManagerCapabilityStatusUpdatedEvent.php similarity index 75% rename from lib/Events/V2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEvent.php rename to lib/Events/V2CoreAccountIncludingConfigurationMoneyManagerCapabilityStatusUpdatedEvent.php index 052f7b198..e35aa38cb 100644 --- a/lib/Events/V2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEvent.php +++ b/lib/Events/V2CoreAccountIncludingConfigurationMoneyManagerCapabilityStatusUpdatedEvent.php @@ -6,11 +6,11 @@ /** * @property \Stripe\RelatedObject $related_object Object containing the reference to API resource relevant to the event - * @property \Stripe\EventData\V2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEventData $data data associated with the event + * @property \Stripe\EventData\V2CoreAccountIncludingConfigurationMoneyManagerCapabilityStatusUpdatedEventData $data data associated with the event */ -class V2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEvent extends \Stripe\V2\Core\Event +class V2CoreAccountIncludingConfigurationMoneyManagerCapabilityStatusUpdatedEvent extends \Stripe\V2\Core\Event { - const LOOKUP_TYPE = 'v2.core.account[configuration.storer].capability_status_updated'; + const LOOKUP_TYPE = 'v2.core.account[configuration.money_manager].capability_status_updated'; /** * Retrieves the related object from the API. Make an API request on every call. @@ -34,7 +34,7 @@ public static function constructFrom($values, $opts = null, $apiMode = 'v2') { $evt = parent::constructFrom($values, $opts, $apiMode); if (null !== $evt->data) { - $evt->data = \Stripe\EventData\V2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEventData::constructFrom($evt->data, $opts, $apiMode); + $evt->data = \Stripe\EventData\V2CoreAccountIncludingConfigurationMoneyManagerCapabilityStatusUpdatedEventData::constructFrom($evt->data, $opts, $apiMode); } return $evt; diff --git a/lib/Events/V2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEventNotification.php b/lib/Events/V2CoreAccountIncludingConfigurationMoneyManagerCapabilityStatusUpdatedEventNotification.php similarity index 71% rename from lib/Events/V2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEventNotification.php rename to lib/Events/V2CoreAccountIncludingConfigurationMoneyManagerCapabilityStatusUpdatedEventNotification.php index e6b080dff..b401186d0 100644 --- a/lib/Events/V2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEventNotification.php +++ b/lib/Events/V2CoreAccountIncludingConfigurationMoneyManagerCapabilityStatusUpdatedEventNotification.php @@ -7,15 +7,15 @@ /** * @property \Stripe\RelatedObject $related_object Object containing the reference to API resource relevant to the event */ -class V2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEventNotification extends \Stripe\V2\Core\EventNotification +class V2CoreAccountIncludingConfigurationMoneyManagerCapabilityStatusUpdatedEventNotification extends \Stripe\V2\Core\EventNotification { - const LOOKUP_TYPE = 'v2.core.account[configuration.storer].capability_status_updated'; + const LOOKUP_TYPE = 'v2.core.account[configuration.money_manager].capability_status_updated'; public $related_object; /** * Retrieves the full event object from the API. Make an API request on every call. * - * @return V2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEvent + * @return V2CoreAccountIncludingConfigurationMoneyManagerCapabilityStatusUpdatedEvent * * @throws \Stripe\Exception\ApiErrorException if the request fails */ diff --git a/lib/Events/V2CoreAccountIncludingConfigurationStorerUpdatedEvent.php b/lib/Events/V2CoreAccountIncludingConfigurationMoneyManagerUpdatedEvent.php similarity index 83% rename from lib/Events/V2CoreAccountIncludingConfigurationStorerUpdatedEvent.php rename to lib/Events/V2CoreAccountIncludingConfigurationMoneyManagerUpdatedEvent.php index 23b7b77d3..99909e11e 100644 --- a/lib/Events/V2CoreAccountIncludingConfigurationStorerUpdatedEvent.php +++ b/lib/Events/V2CoreAccountIncludingConfigurationMoneyManagerUpdatedEvent.php @@ -7,9 +7,9 @@ /** * @property \Stripe\RelatedObject $related_object Object containing the reference to API resource relevant to the event */ -class V2CoreAccountIncludingConfigurationStorerUpdatedEvent extends \Stripe\V2\Core\Event +class V2CoreAccountIncludingConfigurationMoneyManagerUpdatedEvent extends \Stripe\V2\Core\Event { - const LOOKUP_TYPE = 'v2.core.account[configuration.storer].updated'; + const LOOKUP_TYPE = 'v2.core.account[configuration.money_manager].updated'; /** * Retrieves the related object from the API. Make an API request on every call. diff --git a/lib/Events/V2CoreAccountIncludingConfigurationStorerUpdatedEventNotification.php b/lib/Events/V2CoreAccountIncludingConfigurationMoneyManagerUpdatedEventNotification.php similarity index 75% rename from lib/Events/V2CoreAccountIncludingConfigurationStorerUpdatedEventNotification.php rename to lib/Events/V2CoreAccountIncludingConfigurationMoneyManagerUpdatedEventNotification.php index 51d830489..292ab1f9a 100644 --- a/lib/Events/V2CoreAccountIncludingConfigurationStorerUpdatedEventNotification.php +++ b/lib/Events/V2CoreAccountIncludingConfigurationMoneyManagerUpdatedEventNotification.php @@ -7,15 +7,15 @@ /** * @property \Stripe\RelatedObject $related_object Object containing the reference to API resource relevant to the event */ -class V2CoreAccountIncludingConfigurationStorerUpdatedEventNotification extends \Stripe\V2\Core\EventNotification +class V2CoreAccountIncludingConfigurationMoneyManagerUpdatedEventNotification extends \Stripe\V2\Core\EventNotification { - const LOOKUP_TYPE = 'v2.core.account[configuration.storer].updated'; + const LOOKUP_TYPE = 'v2.core.account[configuration.money_manager].updated'; public $related_object; /** * Retrieves the full event object from the API. Make an API request on every call. * - * @return V2CoreAccountIncludingConfigurationStorerUpdatedEvent + * @return V2CoreAccountIncludingConfigurationMoneyManagerUpdatedEvent * * @throws \Stripe\Exception\ApiErrorException if the request fails */ diff --git a/lib/Events/V2MoneyManagementDebitDisputeFailedEvent.php b/lib/Events/V2MoneyManagementDebitDisputeFailedEvent.php new file mode 100644 index 000000000..b31b58158 --- /dev/null +++ b/lib/Events/V2MoneyManagementDebitDisputeFailedEvent.php @@ -0,0 +1,31 @@ +related_object->url); + list($object, $options) = $this->_request('get', $this->related_object->url, [], [ + 'stripe_context' => $this->context, + 'headers' => ['Stripe-Request-Trigger' => 'event=' . $this->id], + ], [], $apiMode); + + return \Stripe\Util\Util::convertToStripeObject($object, $options, $apiMode); + } +} diff --git a/lib/Events/V2MoneyManagementDebitDisputeFailedEventNotification.php b/lib/Events/V2MoneyManagementDebitDisputeFailedEventNotification.php new file mode 100644 index 000000000..ab2ee365c --- /dev/null +++ b/lib/Events/V2MoneyManagementDebitDisputeFailedEventNotification.php @@ -0,0 +1,38 @@ +related_object->url); + list($object, $options) = $this->_request('get', $this->related_object->url, [], [ + 'stripe_context' => $this->context, + 'headers' => ['Stripe-Request-Trigger' => 'event=' . $this->id], + ], [], $apiMode); + + return \Stripe\Util\Util::convertToStripeObject($object, $options, $apiMode); + } +} diff --git a/lib/Events/V2MoneyManagementDebitDisputeSubmittedEventNotification.php b/lib/Events/V2MoneyManagementDebitDisputeSubmittedEventNotification.php new file mode 100644 index 000000000..41bf5db15 --- /dev/null +++ b/lib/Events/V2MoneyManagementDebitDisputeSubmittedEventNotification.php @@ -0,0 +1,38 @@ +related_object->url); + list($object, $options) = $this->_request('get', $this->related_object->url, [], [ + 'stripe_context' => $this->context, + 'headers' => ['Stripe-Request-Trigger' => 'event=' . $this->id], + ], [], $apiMode); + + return \Stripe\Util\Util::convertToStripeObject($object, $options, $apiMode); + } +} diff --git a/lib/Events/V2MoneyManagementDebitDisputeSucceededEventNotification.php b/lib/Events/V2MoneyManagementDebitDisputeSucceededEventNotification.php new file mode 100644 index 000000000..f314144c1 --- /dev/null +++ b/lib/Events/V2MoneyManagementDebitDisputeSucceededEventNotification.php @@ -0,0 +1,38 @@ +related_object->url); + list($object, $options) = $this->_request('get', $this->related_object->url, [], [ + 'stripe_context' => $this->context, + 'headers' => ['Stripe-Request-Trigger' => 'event=' . $this->id], + ], [], $apiMode); + + return \Stripe\Util\Util::convertToStripeObject($object, $options, $apiMode); + } +} diff --git a/lib/Events/V2MoneyManagementOutboundPaymentUnderReviewEventNotification.php b/lib/Events/V2MoneyManagementOutboundPaymentUnderReviewEventNotification.php new file mode 100644 index 000000000..5a9d4b33a --- /dev/null +++ b/lib/Events/V2MoneyManagementOutboundPaymentUnderReviewEventNotification.php @@ -0,0 +1,38 @@ +related_object->url); + list($object, $options) = $this->_request('get', $this->related_object->url, [], [ + 'stripe_context' => $this->context, + 'headers' => ['Stripe-Request-Trigger' => 'event=' . $this->id], + ], [], $apiMode); + + return \Stripe\Util\Util::convertToStripeObject($object, $options, $apiMode); + } +} diff --git a/lib/Events/V2MoneyManagementOutboundTransferUnderReviewEventNotification.php b/lib/Events/V2MoneyManagementOutboundTransferUnderReviewEventNotification.php new file mode 100644 index 000000000..f90b79702 --- /dev/null +++ b/lib/Events/V2MoneyManagementOutboundTransferUnderReviewEventNotification.php @@ -0,0 +1,38 @@ +, overrides: array{ends_at: array{timestamp: string}, service_action?: array{add?: array{credit_grant?: array{amount: array{monetary?: \Stripe\StripeObject, type: string}, applicability_config: array{scope: array{billable_items?: string[], price_type?: string}}, category?: string, expiry_config: array{type: string}, name: string, priority?: int}, service_interval: string, service_interval_count: int, type: string}, replace?: array{credit_grant?: array{amount: array{monetary?: \Stripe\StripeObject, type: string}, applicability_config: array{scope: array{billable_items?: string[], price_type?: string}}, category?: string, expiry_config: array{type: string}, name: string, priority?: int}, id?: string, lookup_key?: string, service_interval: string, service_interval_count: int, type: string}, type: string}, starts_at: array{timestamp: string}, type: string}[], pricing: array{}, starts_at: array{timestamp: string}}[], contract_number: string, currency: string, include?: string[], license_quantity_actions: array{effective_at: array{timestamp?: string, type: string}, license_pricing_id?: string, license_pricing_lookup_key?: string, license_pricing_type: string, pricing_line?: string, set?: array{quantity: int}, type: string}[], metadata?: array, one_time_fees?: array{bill_schedule: array{bill_at: array{timestamp?: string, type: string}, value: int}[], billable_item_type: string, product_details?: array{product: string}}[], pricing_lines: array{ends_at: array{timestamp?: string, type: string}, lookup_key?: string, metadata?: array, pricing: array{price_details?: array{price: string, quantity?: int}, type: string}, starts_at: array{timestamp?: string, type: string}}[], pricing_overrides: array{ends_at: array{timestamp?: string, type: string}, lookup_key?: string, multiplier?: array{criteria: array{billable_item_ids: string[], billable_item_lookup_keys: string[], billable_item_types: string[], metadata_conditions: array{all_of: array{key: string, value: string}[]}[], rate_card_ids: string[], type: string}[], factor: string}, overwrite_price?: array{price: string, tiering_mode?: string, tiers?: array{flat_amount?: string, unit_amount?: string, up_to_decimal?: string, up_to_inf?: string}[], unit_amount?: string}, priority: int, starts_at: array{timestamp?: string, type: string}, type: string}[]} $params + * @param null|array{billing_settings?: array{contract_billing_details?: array{bill_settings_details?: array{calculation?: array{tax?: array{type: string}}, invoice?: array{time_until_due?: array{interval: string, interval_count: int}}}, billing_profile_details: array{customer: string, default_payment_method?: string}, collection_settings_details: array{collection_method: string, payment_method_configuration?: string}}}, contract_lines: array{ends_at: array{timestamp: string}, metadata?: array, overrides: array{ends_at: array{timestamp: string}, service_action?: array{add?: array{credit_grant?: array{amount: array{monetary?: \Stripe\StripeObject, type: string}, applicability_config: array{scope: array{billable_items?: string[], price_type?: string}}, category?: string, expiry_config: array{type: string}, name: string, priority?: int}, service_interval: string, service_interval_count: int, type: string}, replace?: array{credit_grant?: array{amount: array{monetary?: \Stripe\StripeObject, type: string}, applicability_config: array{scope: array{billable_items?: string[], price_type?: string}}, category?: string, expiry_config: array{type: string}, name: string, priority?: int}, id?: string, lookup_key?: string, service_interval: string, service_interval_count: int, type: string}, type: string}, starts_at: array{timestamp: string}, type: string}[], pricing: array{}, starts_at: array{timestamp: string}}[], contract_number: string, currency: string, include?: string[], license_quantity_actions: array{effective_at: array{timestamp?: string, type: string}, license_pricing_id?: string, license_pricing_lookup_key?: string, license_pricing_type: string, pricing_line?: string, set?: array{quantity: int}, type: string}[], metadata?: array, one_time_fees?: array{bill_schedule: array{bill_at: array{timestamp?: string, type: string}, value: int}[], billable_item_type: string, product_details?: array{product: string}}[], pricing_lines: array{ends_at: array{timestamp?: string, type: string}, lookup_key?: string, metadata?: array, pricing: array{price_details?: array{price: string, quantity?: int}, type: string}, starts_at: array{timestamp?: string, type: string}}[], pricing_overrides: array{ends_at: array{timestamp?: string, type: string}, lookup_key?: string, multiplier?: array{criteria?: array{billable_item_ids: string[], billable_item_lookup_keys: string[], billable_item_types: string[], metadata_conditions: array{all_of: array{key: string, value: string}[]}[], rate_card_ids: string[], type: string}[], factor: string}, overwrite_price?: array{price: string, tiering_mode?: string, tiers?: array{flat_amount?: string, unit_amount?: string, up_to_decimal?: string, up_to_inf?: string}[], unit_amount?: string}, priority: int, starts_at: array{timestamp?: string, type: string}, type: string}[]} $params * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @return \Stripe\V2\Billing\Contract diff --git a/lib/Service/V2/Core/AccountService.php b/lib/Service/V2/Core/AccountService.php index fb4b8ba9e..e582f0ae9 100644 --- a/lib/Service/V2/Core/AccountService.php +++ b/lib/Service/V2/Core/AccountService.php @@ -1281,6 +1281,27 @@ public function all($params = null, $opts = null) ], ], ], + 'sunbit_payments' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], + ], + ], + ], 'swish_payments' => [ 'kind' => 'object', 'fields' => [ @@ -1369,207 +1390,192 @@ public function all($params = null, $opts = null) ], ], ], - 'recipient' => [ + 'money_manager' => [ 'kind' => 'object', 'fields' => [ 'capabilities' => [ 'kind' => 'object', 'fields' => [ - 'bank_accounts' => [ + 'business_storage' => [ 'kind' => 'object', 'fields' => [ - 'instant' => [ + 'inbound' => [ 'kind' => 'object', 'fields' => [ - 'protections' => [ + 'aud' => [ 'kind' => 'object', 'fields' => [ - 'psp_migration' => [ + 'protections' => [ 'kind' => 'object', 'fields' => [ - 'expires_at' => [ - 'kind' => 'int64_string', - ], - 'requested_at' => [ - 'kind' => 'int64_string', + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], ], ], ], ], ], - ], - ], - 'local' => [ - 'kind' => 'object', - 'fields' => [ - 'protections' => [ + 'cad' => [ 'kind' => 'object', 'fields' => [ - 'psp_migration' => [ + 'protections' => [ 'kind' => 'object', 'fields' => [ - 'expires_at' => [ - 'kind' => 'int64_string', - ], - 'requested_at' => [ - 'kind' => 'int64_string', + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], ], ], ], ], ], - ], - ], - 'wire' => [ - 'kind' => 'object', - 'fields' => [ - 'protections' => [ + 'eur' => [ 'kind' => 'object', 'fields' => [ - 'psp_migration' => [ + 'protections' => [ 'kind' => 'object', 'fields' => [ - 'expires_at' => [ - 'kind' => 'int64_string', - ], - 'requested_at' => [ - 'kind' => 'int64_string', + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], ], ], ], ], ], - ], - ], - ], - ], - 'cards' => [ - 'kind' => 'object', - 'fields' => [ - 'protections' => [ - 'kind' => 'object', - 'fields' => [ - 'psp_migration' => [ + 'gbp' => [ 'kind' => 'object', 'fields' => [ - 'expires_at' => [ - 'kind' => 'int64_string', - ], - 'requested_at' => [ - 'kind' => 'int64_string', + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], ], ], ], - ], - ], - ], - ], - 'crypto_wallets' => [ - 'kind' => 'object', - 'fields' => [ - 'protections' => [ - 'kind' => 'object', - 'fields' => [ - 'psp_migration' => [ + 'usd' => [ 'kind' => 'object', 'fields' => [ - 'expires_at' => [ - 'kind' => 'int64_string', - ], - 'requested_at' => [ - 'kind' => 'int64_string', + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], ], ], ], - ], - ], - ], - ], - 'paper_checks' => [ - 'kind' => 'object', - 'fields' => [ - 'protections' => [ - 'kind' => 'object', - 'fields' => [ - 'psp_migration' => [ + 'usdc' => [ 'kind' => 'object', 'fields' => [ - 'expires_at' => [ - 'kind' => 'int64_string', - ], - 'requested_at' => [ - 'kind' => 'int64_string', + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], ], ], ], ], ], - ], - ], - 'stripe_balance' => [ - 'kind' => 'object', - 'fields' => [ - 'payouts' => [ + 'outbound' => [ 'kind' => 'object', 'fields' => [ - 'protections' => [ + 'aud' => [ 'kind' => 'object', 'fields' => [ - 'psp_migration' => [ + 'protections' => [ 'kind' => 'object', 'fields' => [ - 'expires_at' => [ - 'kind' => 'int64_string', - ], - 'requested_at' => [ - 'kind' => 'int64_string', + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], ], ], ], ], ], - ], - ], - 'stripe_transfers' => [ - 'kind' => 'object', - 'fields' => [ - 'protections' => [ + 'cad' => [ 'kind' => 'object', 'fields' => [ - 'psp_migration' => [ + 'protections' => [ 'kind' => 'object', 'fields' => [ - 'expires_at' => [ - 'kind' => 'int64_string', - ], - 'requested_at' => [ - 'kind' => 'int64_string', + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], ], ], ], ], ], - ], - ], - ], - ], - ], - ], - ], - ], - 'storer' => [ - 'kind' => 'object', - 'fields' => [ - 'capabilities' => [ - 'kind' => 'object', - 'fields' => [ - 'consumer' => [ - 'kind' => 'object', - 'fields' => [ - 'holds_currencies' => [ - 'kind' => 'object', - 'fields' => [ - 'usd' => [ + 'eur' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -1590,16 +1596,178 @@ public function all($params = null, $opts = null) ], ], ], - ], - ], - ], - ], - 'financial_addresses' => [ - 'kind' => 'object', - 'fields' => [ - 'bank_accounts' => [ - 'kind' => 'object', - 'fields' => [ + 'gbp' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], + ], + ], + ], + 'usd' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], + ], + ], + ], + 'usdc' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'consumer_storage' => [ + 'kind' => 'object', + 'fields' => [ + 'inbound' => [ + 'kind' => 'object', + 'fields' => [ + 'usd' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], + ], + ], + ], + 'usdc' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'outbound' => [ + 'kind' => 'object', + 'fields' => [ + 'usd' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], + ], + ], + ], + 'usdc' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'inbound_transfers' => [ + 'kind' => 'object', + 'fields' => [ + 'bank_accounts' => [ + 'kind' => 'object', + 'fields' => [ 'protections' => [ 'kind' => 'object', 'fields' => [ @@ -1618,7 +1786,12 @@ public function all($params = null, $opts = null) ], ], ], - 'crypto_wallets' => [ + ], + ], + 'outbound_payments' => [ + 'kind' => 'object', + 'fields' => [ + 'bank_accounts' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -1639,12 +1812,7 @@ public function all($params = null, $opts = null) ], ], ], - ], - ], - 'holds_currencies' => [ - 'kind' => 'object', - 'fields' => [ - 'eur' => [ + 'cards' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -1665,7 +1833,7 @@ public function all($params = null, $opts = null) ], ], ], - 'gbp' => [ + 'crypto_wallets' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -1686,7 +1854,7 @@ public function all($params = null, $opts = null) ], ], ], - 'usd' => [ + 'financial_accounts' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -1707,7 +1875,7 @@ public function all($params = null, $opts = null) ], ], ], - 'usdc' => [ + 'paper_checks' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -1730,7 +1898,7 @@ public function all($params = null, $opts = null) ], ], ], - 'inbound_transfers' => [ + 'outbound_transfers' => [ 'kind' => 'object', 'fields' => [ 'bank_accounts' => [ @@ -1754,12 +1922,7 @@ public function all($params = null, $opts = null) ], ], ], - ], - ], - 'outbound_payments' => [ - 'kind' => 'object', - 'fields' => [ - 'bank_accounts' => [ + 'crypto_wallets' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -1780,7 +1943,7 @@ public function all($params = null, $opts = null) ], ], ], - 'cards' => [ + 'financial_accounts' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -1801,7 +1964,12 @@ public function all($params = null, $opts = null) ], ], ], - 'crypto_wallets' => [ + ], + ], + 'received_credits' => [ + 'kind' => 'object', + 'fields' => [ + 'bank_accounts' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -1822,7 +1990,7 @@ public function all($params = null, $opts = null) ], ], ], - 'financial_accounts' => [ + 'crypto_wallets' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -1843,7 +2011,12 @@ public function all($params = null, $opts = null) ], ], ], - 'paper_checks' => [ + ], + ], + 'received_debits' => [ + 'kind' => 'object', + 'fields' => [ + 'bank_accounts' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -1866,10 +2039,20 @@ public function all($params = null, $opts = null) ], ], ], - 'outbound_transfers' => [ + ], + ], + ], + ], + 'recipient' => [ + 'kind' => 'object', + 'fields' => [ + 'capabilities' => [ + 'kind' => 'object', + 'fields' => [ + 'bank_accounts' => [ 'kind' => 'object', 'fields' => [ - 'bank_accounts' => [ + 'ach' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -1890,7 +2073,7 @@ public function all($params = null, $opts = null) ], ], ], - 'crypto_wallets' => [ + 'becs' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -1911,7 +2094,7 @@ public function all($params = null, $opts = null) ], ], ], - 'financial_accounts' => [ + 'eft' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -1932,109 +2115,210 @@ public function all($params = null, $opts = null) ], ], ], - ], - ], - ], - ], - ], - ], - ], - ], - 'identity' => [ - 'kind' => 'object', - 'fields' => [ - 'individual' => [ - 'kind' => 'object', - 'fields' => [ - 'relationship' => [ - 'kind' => 'object', - 'fields' => [ - 'percent_ownership' => [ - 'kind' => 'decimal_string', - ], - ], - ], - ], - ], - ], - ], - ], - ], - ], - ], - ], - ]); - } - - /** - * Removes access to the Account and its associated resources. Closed Accounts can - * no longer be operated on, but limited information can still be retrieved through - * the API in order to be able to track their history. - * - * @param string $id - * @param null|array{applied_configurations?: string[]} $params - * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts - * - * @return \Stripe\V2\Core\Account - * - * @throws \Stripe\Exception\RateLimitException - */ - public function close($id, $params = null, $opts = null) - { - return $this->request('post', $this->buildPath('/v2/core/accounts/%s/close', $id), $params, $opts, [ - 'response_schema' => [ - 'kind' => 'object', - 'fields' => [ - 'configuration' => [ - 'kind' => 'object', - 'fields' => [ - 'card_creator' => [ - 'kind' => 'object', - 'fields' => [ - 'capabilities' => [ - 'kind' => 'object', - 'fields' => [ - 'commercial' => [ - 'kind' => 'object', - 'fields' => [ - 'celtic' => [ - 'kind' => 'object', - 'fields' => [ - 'charge_card' => [ - 'kind' => 'object', - 'fields' => [ - 'protections' => [ - 'kind' => 'object', - 'fields' => [ - 'psp_migration' => [ - 'kind' => 'object', - 'fields' => [ - 'expires_at' => [ - 'kind' => 'int64_string', + 'fedwire' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], ], - 'requested_at' => [ - 'kind' => 'int64_string', + ], + ], + ], + ], + ], + 'fps' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], ], ], ], ], ], ], - ], - 'spend_card' => [ - 'kind' => 'object', - 'fields' => [ - 'protections' => [ - 'kind' => 'object', - 'fields' => [ - 'psp_migration' => [ - 'kind' => 'object', - 'fields' => [ - 'expires_at' => [ - 'kind' => 'int64_string', + 'instant' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], ], - 'requested_at' => [ - 'kind' => 'int64_string', + ], + ], + ], + ], + ], + 'local' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], + ], + ], + ], + 'npp' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], + ], + ], + ], + 'rtp' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], + ], + ], + ], + 'sepa_credit' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], + ], + ], + ], + 'sepa_instant' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], + ], + ], + ], + 'swift' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], + ], + ], + ], + 'wire' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], ], ], ], @@ -2043,169 +2327,911 @@ public function close($id, $params = null, $opts = null) ], ], ], + 'cards' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], + ], + ], + ], + 'crypto_wallets' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], + ], + ], + ], + 'paper_checks' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], + ], + ], + ], + 'stripe_balance' => [ + 'kind' => 'object', + 'fields' => [ + 'payouts' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], + ], + ], + ], + 'stripe_transfers' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'identity' => [ + 'kind' => 'object', + 'fields' => [ + 'individual' => [ + 'kind' => 'object', + 'fields' => [ + 'relationship' => [ + 'kind' => 'object', + 'fields' => [ + 'percent_ownership' => [ + 'kind' => 'decimal_string', + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + ]); + } + + /** + * Removes access to the Account and its associated resources. Closed Accounts can + * no longer be operated on, but limited information can still be retrieved through + * the API in order to be able to track their history. + * + * @param string $id + * @param null|array{applied_configurations?: string[]} $params + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts + * + * @return \Stripe\V2\Core\Account + * + * @throws \Stripe\Exception\RateLimitException + */ + public function close($id, $params = null, $opts = null) + { + return $this->request('post', $this->buildPath('/v2/core/accounts/%s/close', $id), $params, $opts, [ + 'response_schema' => [ + 'kind' => 'object', + 'fields' => [ + 'configuration' => [ + 'kind' => 'object', + 'fields' => [ + 'card_creator' => [ + 'kind' => 'object', + 'fields' => [ + 'capabilities' => [ + 'kind' => 'object', + 'fields' => [ + 'commercial' => [ + 'kind' => 'object', + 'fields' => [ + 'celtic' => [ + 'kind' => 'object', + 'fields' => [ + 'charge_card' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], + ], + ], + ], + 'spend_card' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'cross_river_bank' => [ + 'kind' => 'object', + 'fields' => [ + 'charge_card' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], + ], + ], + ], + 'prepaid_card' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], + ], + ], + ], + 'spend_card' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'fifth_third' => [ + 'kind' => 'object', + 'fields' => [ + 'charge_card' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'lead' => [ + 'kind' => 'object', + 'fields' => [ + 'prepaid_card' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'stripe' => [ + 'kind' => 'object', + 'fields' => [ + 'charge_card' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], + ], + ], + ], + 'prepaid_card' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'consumer' => [ + 'kind' => 'object', + 'fields' => [ + 'celtic' => [ + 'kind' => 'object', + 'fields' => [ + 'revolving_credit_card' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'cross_river_bank' => [ + 'kind' => 'object', + 'fields' => [ + 'prepaid_card' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'lead' => [ + 'kind' => 'object', + 'fields' => [ + 'debit_card' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], + ], + ], + ], + 'prepaid_card' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'customer' => [ + 'kind' => 'object', + 'fields' => [ + 'capabilities' => [ + 'kind' => 'object', + 'fields' => [ + 'automatic_indirect_tax' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'merchant' => [ + 'kind' => 'object', + 'fields' => [ + 'capabilities' => [ + 'kind' => 'object', + 'fields' => [ + 'ach_debit_payments' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], + ], + ], + ], + 'acss_debit_payments' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], + ], + ], + ], + 'affirm_payments' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], + ], + ], + ], + 'afterpay_clearpay_payments' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], + ], + ], + ], + 'alma_payments' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], + ], + ], + ], + 'amazon_pay_payments' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], + ], + ], + ], + 'au_becs_debit_payments' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], + ], + ], + ], + 'bacs_debit_payments' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], + ], + ], + ], + 'bancontact_payments' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], + ], + ], + ], + 'blik_payments' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], + ], + ], + ], + 'boleto_payments' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], + ], + ], + ], + 'card_payments' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], ], - 'cross_river_bank' => [ + ], + ], + 'cartes_bancaires_payments' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ 'kind' => 'object', 'fields' => [ - 'charge_card' => [ + 'psp_migration' => [ 'kind' => 'object', 'fields' => [ - 'protections' => [ - 'kind' => 'object', - 'fields' => [ - 'psp_migration' => [ - 'kind' => 'object', - 'fields' => [ - 'expires_at' => [ - 'kind' => 'int64_string', - ], - 'requested_at' => [ - 'kind' => 'int64_string', - ], - ], - ], - ], + 'expires_at' => [ + 'kind' => 'int64_string', ], - ], - ], - 'prepaid_card' => [ - 'kind' => 'object', - 'fields' => [ - 'protections' => [ - 'kind' => 'object', - 'fields' => [ - 'psp_migration' => [ - 'kind' => 'object', - 'fields' => [ - 'expires_at' => [ - 'kind' => 'int64_string', - ], - 'requested_at' => [ - 'kind' => 'int64_string', - ], - ], - ], - ], + 'requested_at' => [ + 'kind' => 'int64_string', ], ], ], - 'spend_card' => [ + ], + ], + ], + ], + 'cashapp_payments' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ 'kind' => 'object', 'fields' => [ - 'protections' => [ - 'kind' => 'object', - 'fields' => [ - 'psp_migration' => [ - 'kind' => 'object', - 'fields' => [ - 'expires_at' => [ - 'kind' => 'int64_string', - ], - 'requested_at' => [ - 'kind' => 'int64_string', - ], - ], - ], - ], + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', ], ], ], ], ], - 'fifth_third' => [ + ], + ], + 'eps_payments' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ 'kind' => 'object', 'fields' => [ - 'charge_card' => [ + 'psp_migration' => [ 'kind' => 'object', 'fields' => [ - 'protections' => [ - 'kind' => 'object', - 'fields' => [ - 'psp_migration' => [ - 'kind' => 'object', - 'fields' => [ - 'expires_at' => [ - 'kind' => 'int64_string', - ], - 'requested_at' => [ - 'kind' => 'int64_string', - ], - ], - ], - ], + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', ], ], ], ], ], - 'lead' => [ + ], + ], + 'fpx_payments' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ 'kind' => 'object', 'fields' => [ - 'prepaid_card' => [ + 'psp_migration' => [ 'kind' => 'object', 'fields' => [ - 'protections' => [ - 'kind' => 'object', - 'fields' => [ - 'psp_migration' => [ - 'kind' => 'object', - 'fields' => [ - 'expires_at' => [ - 'kind' => 'int64_string', - ], - 'requested_at' => [ - 'kind' => 'int64_string', - ], - ], - ], - ], + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', ], ], ], ], ], - 'stripe' => [ + ], + ], + 'gb_bank_transfer_payments' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ 'kind' => 'object', 'fields' => [ - 'charge_card' => [ + 'psp_migration' => [ 'kind' => 'object', 'fields' => [ - 'protections' => [ - 'kind' => 'object', - 'fields' => [ - 'psp_migration' => [ - 'kind' => 'object', - 'fields' => [ - 'expires_at' => [ - 'kind' => 'int64_string', - ], - 'requested_at' => [ - 'kind' => 'int64_string', - ], - ], - ], - ], + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', ], ], ], - 'prepaid_card' => [ + ], + ], + ], + ], + 'grabpay_payments' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ 'kind' => 'object', 'fields' => [ - 'protections' => [ - 'kind' => 'object', - 'fields' => [ - 'psp_migration' => [ - 'kind' => 'object', - 'fields' => [ - 'expires_at' => [ - 'kind' => 'int64_string', - ], - 'requested_at' => [ - 'kind' => 'int64_string', - ], - ], - ], - ], + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', ], ], ], @@ -2213,103 +3239,83 @@ public function close($id, $params = null, $opts = null) ], ], ], - 'consumer' => [ + 'ideal_payments' => [ 'kind' => 'object', 'fields' => [ - 'celtic' => [ + 'protections' => [ 'kind' => 'object', 'fields' => [ - 'revolving_credit_card' => [ + 'psp_migration' => [ 'kind' => 'object', 'fields' => [ - 'protections' => [ - 'kind' => 'object', - 'fields' => [ - 'psp_migration' => [ - 'kind' => 'object', - 'fields' => [ - 'expires_at' => [ - 'kind' => 'int64_string', - ], - 'requested_at' => [ - 'kind' => 'int64_string', - ], - ], - ], - ], + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', ], ], ], ], ], - 'cross_river_bank' => [ + ], + ], + 'jcb_payments' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ 'kind' => 'object', 'fields' => [ - 'prepaid_card' => [ + 'psp_migration' => [ 'kind' => 'object', 'fields' => [ - 'protections' => [ - 'kind' => 'object', - 'fields' => [ - 'psp_migration' => [ - 'kind' => 'object', - 'fields' => [ - 'expires_at' => [ - 'kind' => 'int64_string', - ], - 'requested_at' => [ - 'kind' => 'int64_string', - ], - ], - ], - ], + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', ], ], ], ], ], - 'lead' => [ + ], + ], + 'jp_bank_transfer_payments' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ 'kind' => 'object', 'fields' => [ - 'debit_card' => [ + 'psp_migration' => [ 'kind' => 'object', 'fields' => [ - 'protections' => [ - 'kind' => 'object', - 'fields' => [ - 'psp_migration' => [ - 'kind' => 'object', - 'fields' => [ - 'expires_at' => [ - 'kind' => 'int64_string', - ], - 'requested_at' => [ - 'kind' => 'int64_string', - ], - ], - ], - ], + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', ], ], ], - 'prepaid_card' => [ + ], + ], + ], + ], + 'kakao_pay_payments' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ 'kind' => 'object', 'fields' => [ - 'protections' => [ - 'kind' => 'object', - 'fields' => [ - 'psp_migration' => [ - 'kind' => 'object', - 'fields' => [ - 'expires_at' => [ - 'kind' => 'int64_string', - ], - 'requested_at' => [ - 'kind' => 'int64_string', - ], - ], - ], - ], + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', ], ], ], @@ -2317,17 +3323,7 @@ public function close($id, $params = null, $opts = null) ], ], ], - ], - ], - ], - ], - 'customer' => [ - 'kind' => 'object', - 'fields' => [ - 'capabilities' => [ - 'kind' => 'object', - 'fields' => [ - 'automatic_indirect_tax' => [ + 'klarna_payments' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -2348,17 +3344,7 @@ public function close($id, $params = null, $opts = null) ], ], ], - ], - ], - ], - ], - 'merchant' => [ - 'kind' => 'object', - 'fields' => [ - 'capabilities' => [ - 'kind' => 'object', - 'fields' => [ - 'ach_debit_payments' => [ + 'konbini_payments' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -2379,7 +3365,7 @@ public function close($id, $params = null, $opts = null) ], ], ], - 'acss_debit_payments' => [ + 'kr_card_payments' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -2400,7 +3386,7 @@ public function close($id, $params = null, $opts = null) ], ], ], - 'affirm_payments' => [ + 'link_payments' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -2421,7 +3407,7 @@ public function close($id, $params = null, $opts = null) ], ], ], - 'afterpay_clearpay_payments' => [ + 'mobilepay_payments' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -2442,7 +3428,7 @@ public function close($id, $params = null, $opts = null) ], ], ], - 'alma_payments' => [ + 'multibanco_payments' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -2463,7 +3449,7 @@ public function close($id, $params = null, $opts = null) ], ], ], - 'amazon_pay_payments' => [ + 'mx_bank_transfer_payments' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -2484,7 +3470,7 @@ public function close($id, $params = null, $opts = null) ], ], ], - 'au_becs_debit_payments' => [ + 'naver_pay_payments' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -2505,7 +3491,7 @@ public function close($id, $params = null, $opts = null) ], ], ], - 'bacs_debit_payments' => [ + 'oxxo_payments' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -2526,7 +3512,7 @@ public function close($id, $params = null, $opts = null) ], ], ], - 'bancontact_payments' => [ + 'p24_payments' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -2547,7 +3533,7 @@ public function close($id, $params = null, $opts = null) ], ], ], - 'blik_payments' => [ + 'pay_by_bank_payments' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -2568,7 +3554,7 @@ public function close($id, $params = null, $opts = null) ], ], ], - 'boleto_payments' => [ + 'payco_payments' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -2589,7 +3575,7 @@ public function close($id, $params = null, $opts = null) ], ], ], - 'card_payments' => [ + 'paynow_payments' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -2610,7 +3596,7 @@ public function close($id, $params = null, $opts = null) ], ], ], - 'cartes_bancaires_payments' => [ + 'promptpay_payments' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -2631,7 +3617,7 @@ public function close($id, $params = null, $opts = null) ], ], ], - 'cashapp_payments' => [ + 'revolut_pay_payments' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -2652,7 +3638,7 @@ public function close($id, $params = null, $opts = null) ], ], ], - 'eps_payments' => [ + 'samsung_pay_payments' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -2673,7 +3659,7 @@ public function close($id, $params = null, $opts = null) ], ], ], - 'fpx_payments' => [ + 'sepa_bank_transfer_payments' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -2694,7 +3680,7 @@ public function close($id, $params = null, $opts = null) ], ], ], - 'gb_bank_transfer_payments' => [ + 'sepa_debit_payments' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -2715,7 +3701,33 @@ public function close($id, $params = null, $opts = null) ], ], ], - 'grabpay_payments' => [ + 'stripe_balance' => [ + 'kind' => 'object', + 'fields' => [ + 'payouts' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'sunbit_payments' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -2736,7 +3748,7 @@ public function close($id, $params = null, $opts = null) ], ], ], - 'ideal_payments' => [ + 'swish_payments' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -2757,7 +3769,7 @@ public function close($id, $params = null, $opts = null) ], ], ], - 'jcb_payments' => [ + 'twint_payments' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -2778,7 +3790,7 @@ public function close($id, $params = null, $opts = null) ], ], ], - 'jp_bank_transfer_payments' => [ + 'us_bank_transfer_payments' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -2799,7 +3811,7 @@ public function close($id, $params = null, $opts = null) ], ], ], - 'kakao_pay_payments' => [ + 'zip_payments' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -2820,146 +3832,276 @@ public function close($id, $params = null, $opts = null) ], ], ], - 'klarna_payments' => [ + ], + ], + ], + ], + 'money_manager' => [ + 'kind' => 'object', + 'fields' => [ + 'capabilities' => [ + 'kind' => 'object', + 'fields' => [ + 'business_storage' => [ 'kind' => 'object', 'fields' => [ - 'protections' => [ + 'inbound' => [ 'kind' => 'object', 'fields' => [ - 'psp_migration' => [ + 'aud' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], + ], + ], + ], + 'cad' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], + ], + ], + ], + 'eur' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], + ], + ], + ], + 'gbp' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], + ], + ], + ], + 'usd' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], + ], + ], + ], + 'usdc' => [ 'kind' => 'object', 'fields' => [ - 'expires_at' => [ - 'kind' => 'int64_string', - ], - 'requested_at' => [ - 'kind' => 'int64_string', + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], ], ], ], ], ], - ], - ], - 'konbini_payments' => [ - 'kind' => 'object', - 'fields' => [ - 'protections' => [ + 'outbound' => [ 'kind' => 'object', 'fields' => [ - 'psp_migration' => [ + 'aud' => [ 'kind' => 'object', 'fields' => [ - 'expires_at' => [ - 'kind' => 'int64_string', - ], - 'requested_at' => [ - 'kind' => 'int64_string', + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], ], ], ], - ], - ], - ], - ], - 'kr_card_payments' => [ - 'kind' => 'object', - 'fields' => [ - 'protections' => [ - 'kind' => 'object', - 'fields' => [ - 'psp_migration' => [ + 'cad' => [ 'kind' => 'object', 'fields' => [ - 'expires_at' => [ - 'kind' => 'int64_string', - ], - 'requested_at' => [ - 'kind' => 'int64_string', + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], ], ], ], - ], - ], - ], - ], - 'link_payments' => [ - 'kind' => 'object', - 'fields' => [ - 'protections' => [ - 'kind' => 'object', - 'fields' => [ - 'psp_migration' => [ + 'eur' => [ 'kind' => 'object', 'fields' => [ - 'expires_at' => [ - 'kind' => 'int64_string', - ], - 'requested_at' => [ - 'kind' => 'int64_string', + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], ], ], ], - ], - ], - ], - ], - 'mobilepay_payments' => [ - 'kind' => 'object', - 'fields' => [ - 'protections' => [ - 'kind' => 'object', - 'fields' => [ - 'psp_migration' => [ + 'gbp' => [ 'kind' => 'object', 'fields' => [ - 'expires_at' => [ - 'kind' => 'int64_string', - ], - 'requested_at' => [ - 'kind' => 'int64_string', + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], ], ], ], - ], - ], - ], - ], - 'multibanco_payments' => [ - 'kind' => 'object', - 'fields' => [ - 'protections' => [ - 'kind' => 'object', - 'fields' => [ - 'psp_migration' => [ + 'usd' => [ 'kind' => 'object', 'fields' => [ - 'expires_at' => [ - 'kind' => 'int64_string', - ], - 'requested_at' => [ - 'kind' => 'int64_string', + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], ], ], ], - ], - ], - ], - ], - 'mx_bank_transfer_payments' => [ - 'kind' => 'object', - 'fields' => [ - 'protections' => [ - 'kind' => 'object', - 'fields' => [ - 'psp_migration' => [ + 'usdc' => [ 'kind' => 'object', 'fields' => [ - 'expires_at' => [ - 'kind' => 'int64_string', - ], - 'requested_at' => [ - 'kind' => 'int64_string', + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], ], ], ], @@ -2967,83 +4109,98 @@ public function close($id, $params = null, $opts = null) ], ], ], - 'naver_pay_payments' => [ + 'consumer_storage' => [ 'kind' => 'object', 'fields' => [ - 'protections' => [ + 'inbound' => [ 'kind' => 'object', 'fields' => [ - 'psp_migration' => [ + 'usd' => [ 'kind' => 'object', 'fields' => [ - 'expires_at' => [ - 'kind' => 'int64_string', - ], - 'requested_at' => [ - 'kind' => 'int64_string', + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], ], ], ], - ], - ], - ], - ], - 'oxxo_payments' => [ - 'kind' => 'object', - 'fields' => [ - 'protections' => [ - 'kind' => 'object', - 'fields' => [ - 'psp_migration' => [ + 'usdc' => [ 'kind' => 'object', 'fields' => [ - 'expires_at' => [ - 'kind' => 'int64_string', - ], - 'requested_at' => [ - 'kind' => 'int64_string', + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], ], ], ], ], ], - ], - ], - 'p24_payments' => [ - 'kind' => 'object', - 'fields' => [ - 'protections' => [ + 'outbound' => [ 'kind' => 'object', 'fields' => [ - 'psp_migration' => [ + 'usd' => [ 'kind' => 'object', 'fields' => [ - 'expires_at' => [ - 'kind' => 'int64_string', - ], - 'requested_at' => [ - 'kind' => 'int64_string', + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], ], ], ], - ], - ], - ], - ], - 'pay_by_bank_payments' => [ - 'kind' => 'object', - 'fields' => [ - 'protections' => [ - 'kind' => 'object', - 'fields' => [ - 'psp_migration' => [ + 'usdc' => [ 'kind' => 'object', 'fields' => [ - 'expires_at' => [ - 'kind' => 'int64_string', - ], - 'requested_at' => [ - 'kind' => 'int64_string', + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], ], ], ], @@ -3051,20 +4208,25 @@ public function close($id, $params = null, $opts = null) ], ], ], - 'payco_payments' => [ + 'inbound_transfers' => [ 'kind' => 'object', 'fields' => [ - 'protections' => [ + 'bank_accounts' => [ 'kind' => 'object', 'fields' => [ - 'psp_migration' => [ + 'protections' => [ 'kind' => 'object', 'fields' => [ - 'expires_at' => [ - 'kind' => 'int64_string', - ], - 'requested_at' => [ - 'kind' => 'int64_string', + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], ], ], ], @@ -3072,104 +4234,109 @@ public function close($id, $params = null, $opts = null) ], ], ], - 'paynow_payments' => [ + 'outbound_payments' => [ 'kind' => 'object', 'fields' => [ - 'protections' => [ + 'bank_accounts' => [ 'kind' => 'object', 'fields' => [ - 'psp_migration' => [ + 'protections' => [ 'kind' => 'object', 'fields' => [ - 'expires_at' => [ - 'kind' => 'int64_string', - ], - 'requested_at' => [ - 'kind' => 'int64_string', + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], ], ], ], ], ], - ], - ], - 'promptpay_payments' => [ - 'kind' => 'object', - 'fields' => [ - 'protections' => [ + 'cards' => [ 'kind' => 'object', 'fields' => [ - 'psp_migration' => [ + 'protections' => [ 'kind' => 'object', 'fields' => [ - 'expires_at' => [ - 'kind' => 'int64_string', - ], - 'requested_at' => [ - 'kind' => 'int64_string', + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], ], ], ], ], ], - ], - ], - 'revolut_pay_payments' => [ - 'kind' => 'object', - 'fields' => [ - 'protections' => [ + 'crypto_wallets' => [ 'kind' => 'object', 'fields' => [ - 'psp_migration' => [ + 'protections' => [ 'kind' => 'object', 'fields' => [ - 'expires_at' => [ - 'kind' => 'int64_string', - ], - 'requested_at' => [ - 'kind' => 'int64_string', + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], ], ], ], ], ], - ], - ], - 'samsung_pay_payments' => [ - 'kind' => 'object', - 'fields' => [ - 'protections' => [ + 'financial_accounts' => [ 'kind' => 'object', 'fields' => [ - 'psp_migration' => [ + 'protections' => [ 'kind' => 'object', 'fields' => [ - 'expires_at' => [ - 'kind' => 'int64_string', - ], - 'requested_at' => [ - 'kind' => 'int64_string', + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], ], ], ], ], ], - ], - ], - 'sepa_bank_transfer_payments' => [ - 'kind' => 'object', - 'fields' => [ - 'protections' => [ + 'paper_checks' => [ 'kind' => 'object', 'fields' => [ - 'psp_migration' => [ + 'protections' => [ 'kind' => 'object', 'fields' => [ - 'expires_at' => [ - 'kind' => 'int64_string', - ], - 'requested_at' => [ - 'kind' => 'int64_string', + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], ], ], ], @@ -3177,31 +4344,31 @@ public function close($id, $params = null, $opts = null) ], ], ], - 'sepa_debit_payments' => [ + 'outbound_transfers' => [ 'kind' => 'object', 'fields' => [ - 'protections' => [ + 'bank_accounts' => [ 'kind' => 'object', 'fields' => [ - 'psp_migration' => [ + 'protections' => [ 'kind' => 'object', 'fields' => [ - 'expires_at' => [ - 'kind' => 'int64_string', - ], - 'requested_at' => [ - 'kind' => 'int64_string', + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], ], ], ], ], ], - ], - ], - 'stripe_balance' => [ - 'kind' => 'object', - 'fields' => [ - 'payouts' => [ + 'crypto_wallets' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -3222,22 +4389,22 @@ public function close($id, $params = null, $opts = null) ], ], ], - ], - ], - 'swish_payments' => [ - 'kind' => 'object', - 'fields' => [ - 'protections' => [ + 'financial_accounts' => [ 'kind' => 'object', 'fields' => [ - 'psp_migration' => [ + 'protections' => [ 'kind' => 'object', 'fields' => [ - 'expires_at' => [ - 'kind' => 'int64_string', - ], - 'requested_at' => [ - 'kind' => 'int64_string', + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], ], ], ], @@ -3245,41 +4412,46 @@ public function close($id, $params = null, $opts = null) ], ], ], - 'twint_payments' => [ + 'received_credits' => [ 'kind' => 'object', 'fields' => [ - 'protections' => [ + 'bank_accounts' => [ 'kind' => 'object', 'fields' => [ - 'psp_migration' => [ + 'protections' => [ 'kind' => 'object', 'fields' => [ - 'expires_at' => [ - 'kind' => 'int64_string', - ], - 'requested_at' => [ - 'kind' => 'int64_string', + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], ], ], ], ], ], - ], - ], - 'us_bank_transfer_payments' => [ - 'kind' => 'object', - 'fields' => [ - 'protections' => [ + 'crypto_wallets' => [ 'kind' => 'object', 'fields' => [ - 'psp_migration' => [ + 'protections' => [ 'kind' => 'object', 'fields' => [ - 'expires_at' => [ - 'kind' => 'int64_string', - ], - 'requested_at' => [ - 'kind' => 'int64_string', + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], ], ], ], @@ -3287,20 +4459,25 @@ public function close($id, $params = null, $opts = null) ], ], ], - 'zip_payments' => [ + 'received_debits' => [ 'kind' => 'object', 'fields' => [ - 'protections' => [ + 'bank_accounts' => [ 'kind' => 'object', 'fields' => [ - 'psp_migration' => [ + 'protections' => [ 'kind' => 'object', 'fields' => [ - 'expires_at' => [ - 'kind' => 'int64_string', - ], - 'requested_at' => [ - 'kind' => 'int64_string', + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], ], ], ], @@ -3321,7 +4498,7 @@ public function close($id, $params = null, $opts = null) 'bank_accounts' => [ 'kind' => 'object', 'fields' => [ - 'instant' => [ + 'ach' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -3342,7 +4519,7 @@ public function close($id, $params = null, $opts = null) ], ], ], - 'local' => [ + 'becs' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -3363,7 +4540,7 @@ public function close($id, $params = null, $opts = null) ], ], ], - 'wire' => [ + 'eft' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -3384,75 +4561,28 @@ public function close($id, $params = null, $opts = null) ], ], ], - ], - ], - 'cards' => [ - 'kind' => 'object', - 'fields' => [ - 'protections' => [ - 'kind' => 'object', - 'fields' => [ - 'psp_migration' => [ - 'kind' => 'object', - 'fields' => [ - 'expires_at' => [ - 'kind' => 'int64_string', - ], - 'requested_at' => [ - 'kind' => 'int64_string', - ], - ], - ], - ], - ], - ], - ], - 'crypto_wallets' => [ - 'kind' => 'object', - 'fields' => [ - 'protections' => [ - 'kind' => 'object', - 'fields' => [ - 'psp_migration' => [ - 'kind' => 'object', - 'fields' => [ - 'expires_at' => [ - 'kind' => 'int64_string', - ], - 'requested_at' => [ - 'kind' => 'int64_string', - ], - ], - ], - ], - ], - ], - ], - 'paper_checks' => [ - 'kind' => 'object', - 'fields' => [ - 'protections' => [ + 'fedwire' => [ 'kind' => 'object', 'fields' => [ - 'psp_migration' => [ + 'protections' => [ 'kind' => 'object', 'fields' => [ - 'expires_at' => [ - 'kind' => 'int64_string', - ], - 'requested_at' => [ - 'kind' => 'int64_string', + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], ], ], ], ], ], - ], - ], - 'stripe_balance' => [ - 'kind' => 'object', - 'fields' => [ - 'payouts' => [ + 'fps' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -3473,7 +4603,7 @@ public function close($id, $params = null, $opts = null) ], ], ], - 'stripe_transfers' => [ + 'instant' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -3494,40 +4624,20 @@ public function close($id, $params = null, $opts = null) ], ], ], - ], - ], - ], - ], - ], - ], - 'storer' => [ - 'kind' => 'object', - 'fields' => [ - 'capabilities' => [ - 'kind' => 'object', - 'fields' => [ - 'consumer' => [ - 'kind' => 'object', - 'fields' => [ - 'holds_currencies' => [ + 'local' => [ 'kind' => 'object', 'fields' => [ - 'usd' => [ + 'protections' => [ 'kind' => 'object', 'fields' => [ - 'protections' => [ + 'psp_migration' => [ 'kind' => 'object', 'fields' => [ - 'psp_migration' => [ - 'kind' => 'object', - 'fields' => [ - 'expires_at' => [ - 'kind' => 'int64_string', - ], - 'requested_at' => [ - 'kind' => 'int64_string', - ], - ], + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', ], ], ], @@ -3535,12 +4645,7 @@ public function close($id, $params = null, $opts = null) ], ], ], - ], - ], - 'financial_addresses' => [ - 'kind' => 'object', - 'fields' => [ - 'bank_accounts' => [ + 'npp' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -3561,7 +4666,7 @@ public function close($id, $params = null, $opts = null) ], ], ], - 'crypto_wallets' => [ + 'rtp' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -3582,12 +4687,7 @@ public function close($id, $params = null, $opts = null) ], ], ], - ], - ], - 'holds_currencies' => [ - 'kind' => 'object', - 'fields' => [ - 'eur' => [ + 'sepa_credit' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -3608,7 +4708,7 @@ public function close($id, $params = null, $opts = null) ], ], ], - 'gbp' => [ + 'sepa_instant' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -3629,7 +4729,7 @@ public function close($id, $params = null, $opts = null) ], ], ], - 'usd' => [ + 'swift' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -3650,7 +4750,7 @@ public function close($id, $params = null, $opts = null) ], ], ], - 'usdc' => [ + 'wire' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -3673,25 +4773,20 @@ public function close($id, $params = null, $opts = null) ], ], ], - 'inbound_transfers' => [ + 'cards' => [ 'kind' => 'object', 'fields' => [ - 'bank_accounts' => [ + 'protections' => [ 'kind' => 'object', 'fields' => [ - 'protections' => [ + 'psp_migration' => [ 'kind' => 'object', 'fields' => [ - 'psp_migration' => [ - 'kind' => 'object', - 'fields' => [ - 'expires_at' => [ - 'kind' => 'int64_string', - ], - 'requested_at' => [ - 'kind' => 'int64_string', - ], - ], + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', ], ], ], @@ -3699,10 +4794,52 @@ public function close($id, $params = null, $opts = null) ], ], ], - 'outbound_payments' => [ + 'crypto_wallets' => [ 'kind' => 'object', 'fields' => [ - 'bank_accounts' => [ + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], + ], + ], + ], + 'paper_checks' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], + ], + ], + ], + 'stripe_balance' => [ + 'kind' => 'object', + 'fields' => [ + 'payouts' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -3723,7 +4860,7 @@ public function close($id, $params = null, $opts = null) ], ], ], - 'cards' => [ + 'stripe_transfers' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -3744,20 +4881,132 @@ public function close($id, $params = null, $opts = null) ], ], ], - 'crypto_wallets' => [ + ], + ], + ], + ], + ], + ], + ], + ], + 'identity' => [ + 'kind' => 'object', + 'fields' => [ + 'individual' => [ + 'kind' => 'object', + 'fields' => [ + 'relationship' => [ + 'kind' => 'object', + 'fields' => [ + 'percent_ownership' => [ + 'kind' => 'decimal_string', + ], + ], + ], + ], + ], + ], + ], + ], + ], + ]); + } + + /** + * Create an Account that represents a company, individual, or other entity that + * your business interacts with. Accounts contain identifying information about the + * entity, and configurations that store the features an account has access to. An + * account can be configured as any or all of the following configurations: + * Customer, Merchant and/or Recipient. + * + * @param null|array{account_token?: string, configuration?: array{card_creator?: array{capabilities?: array{commercial?: array{celtic?: array{charge_card?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}, spend_card?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}}, cross_river_bank?: array{charge_card?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}, prepaid_card?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}, spend_card?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}}, fifth_third?: array{charge_card?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}}, lead?: array{prepaid_card?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}}, stripe?: array{charge_card?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}, prepaid_card?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}}}, consumer?: array{celtic?: array{revolving_credit_card?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}}, cross_river_bank?: array{prepaid_card?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}}, lead?: array{debit_card?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}, prepaid_card?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}}}}}, customer?: array{automatic_indirect_tax?: array{exempt?: string, ip_address?: string, location_source?: string}, billing?: array{invoice?: array{custom_fields?: array{name: string, value: string}[], footer?: string, next_sequence?: int, prefix?: string, rendering?: array{amount_tax_display?: string, template?: string}}}, capabilities?: array{automatic_indirect_tax?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}}, shipping?: array{address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, name?: string, phone?: string}, test_clock?: string}, merchant?: array{bacs_debit_payments?: array{display_name?: string}, branding?: array{icon?: string, logo?: string, primary_color?: string, secondary_color?: string}, capabilities?: array{ach_debit_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}, acss_debit_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}, affirm_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}, afterpay_clearpay_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}, alma_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}, amazon_pay_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}, au_becs_debit_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}, bacs_debit_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}, bancontact_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}, blik_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}, boleto_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}, card_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}, cartes_bancaires_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}, cashapp_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}, eps_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}, fpx_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}, gb_bank_transfer_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}, grabpay_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}, ideal_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}, jcb_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}, jp_bank_transfer_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}, kakao_pay_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}, klarna_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}, konbini_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}, kr_card_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}, link_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}, mobilepay_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}, multibanco_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}, mx_bank_transfer_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}, naver_pay_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}, oxxo_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}, p24_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}, pay_by_bank_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}, payco_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}, paynow_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}, promptpay_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}, revolut_pay_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}, samsung_pay_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}, sepa_bank_transfer_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}, sepa_debit_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}, sunbit_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}, swish_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}, twint_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}, us_bank_transfer_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}, zip_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}}, card_payments?: array{decline_on?: array{avs_failure?: bool, cvc_failure?: bool}}, konbini_payments?: array{support?: array{email?: string, hours?: array{end_time?: string, start_time?: string}, phone?: string}}, mcc?: string, script_statement_descriptor?: array{kana?: array{descriptor?: string, prefix?: string}, kanji?: array{descriptor?: string, prefix?: string}}, smart_disputes?: array{auto_respond?: array{preference?: string}}, statement_descriptor?: array{descriptor?: string, prefix?: string}, support?: array{address?: array{city?: string, country: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}, email?: string, phone?: string, url?: string}}, money_manager?: array{capabilities?: array{business_storage?: array{inbound?: array{aud?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}, cad?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}, eur?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}, gbp?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}, usd?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}, usdc?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}}, outbound?: array{aud?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}, cad?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}, eur?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}, gbp?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}, usd?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}, usdc?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}}}, consumer_storage?: array{inbound?: array{usd?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}, usdc?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}}, outbound?: array{usd?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}, usdc?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}}}, inbound_transfers?: array{bank_accounts?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}}, outbound_payments?: array{bank_accounts?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}, cards?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}, crypto_wallets?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}, financial_accounts?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}, paper_checks?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}}, outbound_transfers?: array{bank_accounts?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}, crypto_wallets?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}, financial_accounts?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}}, received_credits?: array{bank_accounts?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}, crypto_wallets?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}}, received_debits?: array{bank_accounts?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}}}, high_risk_activities?: string[], high_risk_activities_description?: string, money_services_description?: string, operates_in_prohibited_countries?: bool, participates_in_regulated_activity?: bool, purpose_of_funds?: string, purpose_of_funds_description?: string, regulated_activity?: array{description?: string, license_number?: string, primary_regulatory_authority_country?: string, primary_regulatory_authority_name?: string}, source_of_funds?: string, source_of_funds_description?: string}, recipient?: array{capabilities?: array{bank_accounts?: array{ach?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}, becs?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}, eft?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}, fedwire?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}, fps?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}, instant?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}, local?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}, npp?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}, rtp?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}, sepa_credit?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}, sepa_instant?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}, swift?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}, wire?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}}, cards?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}, crypto_wallets?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}, paper_checks?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}, stripe_balance?: array{stripe_transfers?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}}}}}, contact_email?: string, contact_phone?: string, dashboard?: string, defaults?: array{currency?: string, locales?: string[], profile?: array{business_url?: string, doing_business_as?: string, product_description?: string}, responsibilities?: array{fees_collector: string, losses_collector: string, requirements_collector?: string}, timezone?: string}, display_name?: string, identity?: array{attestations?: array{directorship_declaration?: array{date?: string, ip?: string, user_agent?: string}, ownership_declaration?: array{date?: string, ip?: string, user_agent?: string}, persons_provided?: array{directors?: bool, executives?: bool, owners?: bool, ownership_exemption_reason?: string}, representative_declaration?: array{date?: string, ip?: string, user_agent?: string}, terms_of_service?: array{account?: array{date: string, ip: string, user_agent?: string}, card_creator?: array{commercial?: array{account_holder?: array{date: string, ip: string, user_agent?: string}, celtic?: array{apple_pay?: array{date: string, ip: string, user_agent?: string}, charge_card?: array{bank_terms?: array{date: string, ip: string, user_agent?: string}, platform?: array{date: string, ip: string, user_agent?: string}}, spend_card?: array{bank_terms?: array{date: string, ip: string, user_agent?: string}, financing_disclosures?: array{date: string, ip: string, user_agent?: string}, platform?: array{date: string, ip: string, user_agent?: string}}}, cross_river_bank?: array{apple_pay?: array{date: string, ip: string, user_agent?: string}, charge_card?: array{bank_terms?: array{date: string, ip: string, user_agent?: string}, financing_disclosures?: array{date: string, ip: string, user_agent?: string}, platform?: array{date: string, ip: string, user_agent?: string}}, prepaid_card?: array{bank_terms?: array{date: string, ip: string, user_agent?: string}, platform?: array{date: string, ip: string, user_agent?: string}}, spend_card?: array{bank_terms?: array{date: string, ip: string, user_agent?: string}, financing_disclosures?: array{date: string, ip: string, user_agent?: string}}}, fifth_third?: array{apple_pay?: array{date: string, ip: string, user_agent?: string}, charge_card?: array{bank_terms?: array{date: string, ip: string, user_agent?: string}, financing_disclosures?: array{date: string, ip: string, user_agent?: string}, platform?: array{date: string, ip: string, user_agent?: string}}}, global_account_holder?: array{date: string, ip: string, user_agent?: string}, lead?: array{apple_pay?: array{date: string, ip: string, user_agent?: string}, prepaid_card?: array{bank_terms?: array{date: string, ip: string, user_agent?: string}, platform?: array{date: string, ip: string, user_agent?: string}}}}, consumer?: array{account_holder?: array{date: string, ip: string, user_agent?: string}, celtic?: array{apple_pay?: array{date: string, ip: string, user_agent?: string}, revolving_credit_card?: array{bank_terms?: array{date: string, ip: string, user_agent?: string}, financing_disclosures?: array{date: string, ip: string, user_agent?: string}, platform?: array{date: string, ip: string, user_agent?: string}}}, cross_river_bank?: array{prepaid_card?: array{bank_terms?: array{date: string, ip: string, user_agent?: string}, financing_disclosures?: array{date: string, ip: string, user_agent?: string}, platform?: array{date: string, ip: string, user_agent?: string}}}, global_account_holder?: array{date: string, ip: string, user_agent?: string}, lead?: array{debit_card?: array{bank_terms?: array{date: string, ip: string, user_agent?: string}, financing_disclosures?: array{date: string, ip: string, user_agent?: string}, platform?: array{date: string, ip: string, user_agent?: string}}, prepaid_card?: array{bank_terms?: array{date: string, ip: string, user_agent?: string}, financing_disclosures?: array{date: string, ip: string, user_agent?: string}, platform?: array{date: string, ip: string, user_agent?: string}}}}}, consumer_money_manager?: array{date: string, ip: string, user_agent?: string}, consumer_privacy_disclosures?: array{date: string, ip: string, user_agent?: string}, crypto_money_manager?: array{date: string, ip: string, user_agent?: string}, money_manager?: array{date: string, ip: string, user_agent?: string}}}, business_details?: array{address?: array{city?: string, country: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}, annual_revenue?: array{amount?: \Stripe\StripeObject, fiscal_year_end?: string}, compliance_screening_description?: string, documents?: array{bank_account_ownership_verification?: array{files: string[], type: string}, company_license?: array{files: string[], type: string}, company_memorandum_of_association?: array{files: string[], type: string}, company_ministerial_decree?: array{files: string[], type: string}, company_registration_verification?: array{files: string[], type: string}, company_tax_id_verification?: array{files: string[], type: string}, primary_verification?: array{front_back: array{back?: string, front: string}, type: string}, proof_of_address?: array{files: string[], type: string}, proof_of_registration?: array{files: string[], signer?: array{person: string}, type: string}, proof_of_ultimate_beneficial_ownership?: array{files: string[], signer?: array{person: string}, type: string}}, estimated_worker_count?: int, id_numbers?: array{registrar?: string, type: string, value: string}[], monthly_estimated_revenue?: array{amount?: \Stripe\StripeObject}, phone?: string, registered_name?: string, registration_date?: array{day: int, month: int, year: int}, script_addresses?: array{kana?: array{city?: string, country: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}, kanji?: array{city?: string, country: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}}, script_names?: array{kana?: array{registered_name?: string}, kanji?: array{registered_name?: string}}, structure?: string}, country?: string, entity_type?: string, individual?: array{additional_addresses?: array{city?: string, country: string, line1?: string, line2?: string, postal_code?: string, purpose: string, state?: string, town?: string}[], additional_names?: array{full_name?: string, given_name?: string, purpose: string, surname?: string}[], address?: array{city?: string, country: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}, date_of_birth?: array{day: int, month: int, year: int}, documents?: array{company_authorization?: array{files: string[], type: string}, passport?: array{files: string[], type: string}, primary_verification?: array{front_back: array{back?: string, front: string}, type: string}, secondary_verification?: array{front_back: array{back?: string, front: string}, type: string}, visa?: array{files: string[], type: string}}, email?: string, given_name?: string, id_numbers?: array{type: string, value: string}[], legal_gender?: string, metadata?: array, nationalities?: string[], phone?: string, political_exposure?: string, relationship?: array{director?: bool, executive?: bool, owner?: bool, percent_ownership?: string, title?: string}, script_addresses?: array{kana?: array{city?: string, country: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}, kanji?: array{city?: string, country: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}}, script_names?: array{kana?: array{given_name?: string, surname?: string}, kanji?: array{given_name?: string, surname?: string}}, surname?: string}}, include?: string[], metadata?: array} $params + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts + * + * @return \Stripe\V2\Core\Account + * + * @throws \Stripe\Exception\RateLimitException + */ + public function create($params = null, $opts = null) + { + return $this->request('post', '/v2/core/accounts', $params, $opts, [ + 'request_schema' => [ + 'kind' => 'object', + 'fields' => [ + 'identity' => [ + 'kind' => 'object', + 'fields' => [ + 'individual' => [ + 'kind' => 'object', + 'fields' => [ + 'relationship' => [ + 'kind' => 'object', + 'fields' => [ + 'percent_ownership' => [ + 'kind' => 'decimal_string', + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'response_schema' => [ + 'kind' => 'object', + 'fields' => [ + 'configuration' => [ + 'kind' => 'object', + 'fields' => [ + 'card_creator' => [ + 'kind' => 'object', + 'fields' => [ + 'capabilities' => [ + 'kind' => 'object', + 'fields' => [ + 'commercial' => [ + 'kind' => 'object', + 'fields' => [ + 'celtic' => [ 'kind' => 'object', 'fields' => [ - 'protections' => [ + 'charge_card' => [ 'kind' => 'object', 'fields' => [ - 'psp_migration' => [ + 'protections' => [ 'kind' => 'object', 'fields' => [ - 'expires_at' => [ - 'kind' => 'int64_string', + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], ], - 'requested_at' => [ - 'kind' => 'int64_string', + ], + ], + ], + ], + 'spend_card' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], ], ], ], @@ -3765,41 +5014,67 @@ public function close($id, $params = null, $opts = null) ], ], ], - 'financial_accounts' => [ + 'cross_river_bank' => [ 'kind' => 'object', 'fields' => [ - 'protections' => [ + 'charge_card' => [ 'kind' => 'object', 'fields' => [ - 'psp_migration' => [ + 'protections' => [ 'kind' => 'object', 'fields' => [ - 'expires_at' => [ - 'kind' => 'int64_string', - ], - 'requested_at' => [ - 'kind' => 'int64_string', + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], ], ], ], ], ], - ], - ], - 'paper_checks' => [ - 'kind' => 'object', - 'fields' => [ - 'protections' => [ + 'prepaid_card' => [ 'kind' => 'object', 'fields' => [ - 'psp_migration' => [ + 'protections' => [ 'kind' => 'object', 'fields' => [ - 'expires_at' => [ - 'kind' => 'int64_string', + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], ], - 'requested_at' => [ - 'kind' => 'int64_string', + ], + ], + ], + ], + 'spend_card' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], ], ], ], @@ -3807,25 +5082,25 @@ public function close($id, $params = null, $opts = null) ], ], ], - ], - ], - 'outbound_transfers' => [ - 'kind' => 'object', - 'fields' => [ - 'bank_accounts' => [ + 'fifth_third' => [ 'kind' => 'object', 'fields' => [ - 'protections' => [ + 'charge_card' => [ 'kind' => 'object', 'fields' => [ - 'psp_migration' => [ + 'protections' => [ 'kind' => 'object', 'fields' => [ - 'expires_at' => [ - 'kind' => 'int64_string', - ], - 'requested_at' => [ - 'kind' => 'int64_string', + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], ], ], ], @@ -3833,20 +5108,25 @@ public function close($id, $params = null, $opts = null) ], ], ], - 'crypto_wallets' => [ + 'lead' => [ 'kind' => 'object', 'fields' => [ - 'protections' => [ + 'prepaid_card' => [ 'kind' => 'object', 'fields' => [ - 'psp_migration' => [ + 'protections' => [ 'kind' => 'object', 'fields' => [ - 'expires_at' => [ - 'kind' => 'int64_string', - ], - 'requested_at' => [ - 'kind' => 'int64_string', + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], ], ], ], @@ -3854,117 +5134,31 @@ public function close($id, $params = null, $opts = null) ], ], ], - 'financial_accounts' => [ + 'stripe' => [ 'kind' => 'object', 'fields' => [ - 'protections' => [ + 'charge_card' => [ 'kind' => 'object', 'fields' => [ - 'psp_migration' => [ + 'protections' => [ 'kind' => 'object', 'fields' => [ - 'expires_at' => [ - 'kind' => 'int64_string', - ], - 'requested_at' => [ - 'kind' => 'int64_string', + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], ], ], ], ], ], - ], - ], - ], - ], - ], - ], - ], - ], - ], - ], - 'identity' => [ - 'kind' => 'object', - 'fields' => [ - 'individual' => [ - 'kind' => 'object', - 'fields' => [ - 'relationship' => [ - 'kind' => 'object', - 'fields' => [ - 'percent_ownership' => [ - 'kind' => 'decimal_string', - ], - ], - ], - ], - ], - ], - ], - ], - ], - ]); - } - - /** - * Create an Account that represents a company, individual, or other entity that - * your business interacts with. Accounts contain identifying information about the - * entity, and configurations that store the features an account has access to. An - * account can be configured as any or all of the following configurations: - * Customer, Merchant and/or Recipient. - * - * @param null|array{account_token?: string, configuration?: array{card_creator?: array{capabilities?: array{commercial?: array{celtic?: array{charge_card?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}, spend_card?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}}, cross_river_bank?: array{charge_card?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}, prepaid_card?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}, spend_card?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}}, fifth_third?: array{charge_card?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}}, lead?: array{prepaid_card?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}}, stripe?: array{charge_card?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}, prepaid_card?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}}}, consumer?: array{celtic?: array{revolving_credit_card?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}}, cross_river_bank?: array{prepaid_card?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}}, lead?: array{debit_card?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}, prepaid_card?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}}}}}, customer?: array{automatic_indirect_tax?: array{exempt?: string, ip_address?: string, location_source?: string}, billing?: array{invoice?: array{custom_fields?: array{name: string, value: string}[], footer?: string, next_sequence?: int, prefix?: string, rendering?: array{amount_tax_display?: string, template?: string}}}, capabilities?: array{automatic_indirect_tax?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}}, shipping?: array{address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, name?: string, phone?: string}, test_clock?: string}, merchant?: array{bacs_debit_payments?: array{display_name?: string}, branding?: array{icon?: string, logo?: string, primary_color?: string, secondary_color?: string}, capabilities?: array{ach_debit_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}, acss_debit_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}, affirm_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}, afterpay_clearpay_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}, alma_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}, amazon_pay_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}, au_becs_debit_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}, bacs_debit_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}, bancontact_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}, blik_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}, boleto_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}, card_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}, cartes_bancaires_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}, cashapp_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}, eps_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}, fpx_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}, gb_bank_transfer_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}, grabpay_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}, ideal_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}, jcb_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}, jp_bank_transfer_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}, kakao_pay_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}, klarna_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}, konbini_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}, kr_card_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}, link_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}, mobilepay_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}, multibanco_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}, mx_bank_transfer_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}, naver_pay_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}, oxxo_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}, p24_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}, pay_by_bank_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}, payco_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}, paynow_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}, promptpay_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}, revolut_pay_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}, samsung_pay_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}, sepa_bank_transfer_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}, sepa_debit_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}, swish_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}, twint_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}, us_bank_transfer_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}, zip_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}}, card_payments?: array{decline_on?: array{avs_failure?: bool, cvc_failure?: bool}}, konbini_payments?: array{support?: array{email?: string, hours?: array{end_time?: string, start_time?: string}, phone?: string}}, mcc?: string, script_statement_descriptor?: array{kana?: array{descriptor?: string, prefix?: string}, kanji?: array{descriptor?: string, prefix?: string}}, smart_disputes?: array{auto_respond?: array{preference?: string}}, statement_descriptor?: array{descriptor?: string, prefix?: string}, support?: array{address?: array{city?: string, country: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}, email?: string, phone?: string, url?: string}}, recipient?: array{capabilities?: array{bank_accounts?: array{instant?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}, local?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}, wire?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}}, cards?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}, crypto_wallets?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}, paper_checks?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}, stripe_balance?: array{stripe_transfers?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}}}}, storer?: array{capabilities?: array{consumer?: array{holds_currencies?: array{usd?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}}}, financial_addresses?: array{bank_accounts?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}, crypto_wallets?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}}, holds_currencies?: array{eur?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}, gbp?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}, usd?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}, usdc?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}}, inbound_transfers?: array{bank_accounts?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}}, outbound_payments?: array{bank_accounts?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}, cards?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}, crypto_wallets?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}, financial_accounts?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}, paper_checks?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}}, outbound_transfers?: array{bank_accounts?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}, crypto_wallets?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}, financial_accounts?: array{protections?: array{psp_migration: array{requested: bool}}, requested: bool}}}, high_risk_activities?: string[], high_risk_activities_description?: string, money_services_description?: string, operates_in_prohibited_countries?: bool, participates_in_regulated_activity?: bool, purpose_of_funds?: string, purpose_of_funds_description?: string, regulated_activity?: array{description?: string, license_number?: string, primary_regulatory_authority_country?: string, primary_regulatory_authority_name?: string}, source_of_funds?: string, source_of_funds_description?: string}}, contact_email?: string, contact_phone?: string, dashboard?: string, defaults?: array{currency?: string, locales?: string[], profile?: array{business_url?: string, doing_business_as?: string, product_description?: string}, responsibilities?: array{fees_collector: string, losses_collector: string, requirements_collector?: string}, timezone?: string}, display_name?: string, identity?: array{attestations?: array{directorship_declaration?: array{date?: string, ip?: string, user_agent?: string}, ownership_declaration?: array{date?: string, ip?: string, user_agent?: string}, persons_provided?: array{directors?: bool, executives?: bool, owners?: bool, ownership_exemption_reason?: string}, representative_declaration?: array{date?: string, ip?: string, user_agent?: string}, terms_of_service?: array{account?: array{date: string, ip: string, user_agent?: string}, card_creator?: array{commercial?: array{account_holder?: array{date: string, ip: string, user_agent?: string}, celtic?: array{apple_pay?: array{date: string, ip: string, user_agent?: string}, charge_card?: array{bank_terms?: array{date: string, ip: string, user_agent?: string}, platform?: array{date: string, ip: string, user_agent?: string}}, spend_card?: array{bank_terms?: array{date: string, ip: string, user_agent?: string}, financing_disclosures?: array{date: string, ip: string, user_agent?: string}, platform?: array{date: string, ip: string, user_agent?: string}}}, cross_river_bank?: array{apple_pay?: array{date: string, ip: string, user_agent?: string}, charge_card?: array{bank_terms?: array{date: string, ip: string, user_agent?: string}, financing_disclosures?: array{date: string, ip: string, user_agent?: string}, platform?: array{date: string, ip: string, user_agent?: string}}, prepaid_card?: array{bank_terms?: array{date: string, ip: string, user_agent?: string}, platform?: array{date: string, ip: string, user_agent?: string}}, spend_card?: array{bank_terms?: array{date: string, ip: string, user_agent?: string}, financing_disclosures?: array{date: string, ip: string, user_agent?: string}}}, fifth_third?: array{apple_pay?: array{date: string, ip: string, user_agent?: string}, charge_card?: array{bank_terms?: array{date: string, ip: string, user_agent?: string}, financing_disclosures?: array{date: string, ip: string, user_agent?: string}, platform?: array{date: string, ip: string, user_agent?: string}}}, global_account_holder?: array{date: string, ip: string, user_agent?: string}, lead?: array{apple_pay?: array{date: string, ip: string, user_agent?: string}, prepaid_card?: array{bank_terms?: array{date: string, ip: string, user_agent?: string}, platform?: array{date: string, ip: string, user_agent?: string}}}}, consumer?: array{account_holder?: array{date: string, ip: string, user_agent?: string}, celtic?: array{apple_pay?: array{date: string, ip: string, user_agent?: string}, revolving_credit_card?: array{bank_terms?: array{date: string, ip: string, user_agent?: string}, financing_disclosures?: array{date: string, ip: string, user_agent?: string}, platform?: array{date: string, ip: string, user_agent?: string}}}, cross_river_bank?: array{prepaid_card?: array{bank_terms?: array{date: string, ip: string, user_agent?: string}, financing_disclosures?: array{date: string, ip: string, user_agent?: string}, platform?: array{date: string, ip: string, user_agent?: string}}}, global_account_holder?: array{date: string, ip: string, user_agent?: string}, lead?: array{debit_card?: array{bank_terms?: array{date: string, ip: string, user_agent?: string}, financing_disclosures?: array{date: string, ip: string, user_agent?: string}, platform?: array{date: string, ip: string, user_agent?: string}}, prepaid_card?: array{bank_terms?: array{date: string, ip: string, user_agent?: string}, financing_disclosures?: array{date: string, ip: string, user_agent?: string}, platform?: array{date: string, ip: string, user_agent?: string}}}}}, consumer_privacy_disclosures?: array{date: string, ip: string, user_agent?: string}, consumer_storer?: array{date: string, ip: string, user_agent?: string}, crypto_storer?: array{date: string, ip: string, user_agent?: string}, storer?: array{date: string, ip: string, user_agent?: string}}}, business_details?: array{address?: array{city?: string, country: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}, annual_revenue?: array{amount?: \Stripe\StripeObject, fiscal_year_end?: string}, compliance_screening_description?: string, documents?: array{bank_account_ownership_verification?: array{files: string[], type: string}, company_license?: array{files: string[], type: string}, company_memorandum_of_association?: array{files: string[], type: string}, company_ministerial_decree?: array{files: string[], type: string}, company_registration_verification?: array{files: string[], type: string}, company_tax_id_verification?: array{files: string[], type: string}, primary_verification?: array{front_back: array{back?: string, front: string}, type: string}, proof_of_address?: array{files: string[], type: string}, proof_of_registration?: array{files: string[], signer?: array{person: string}, type: string}, proof_of_ultimate_beneficial_ownership?: array{files: string[], signer?: array{person: string}, type: string}}, estimated_worker_count?: int, id_numbers?: array{registrar?: string, type: string, value: string}[], monthly_estimated_revenue?: array{amount?: \Stripe\StripeObject}, phone?: string, registered_name?: string, registration_date?: array{day: int, month: int, year: int}, script_addresses?: array{kana?: array{city?: string, country: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}, kanji?: array{city?: string, country: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}}, script_names?: array{kana?: array{registered_name?: string}, kanji?: array{registered_name?: string}}, structure?: string}, country?: string, entity_type?: string, individual?: array{additional_addresses?: array{city?: string, country: string, line1?: string, line2?: string, postal_code?: string, purpose: string, state?: string, town?: string}[], additional_names?: array{full_name?: string, given_name?: string, purpose: string, surname?: string}[], address?: array{city?: string, country: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}, date_of_birth?: array{day: int, month: int, year: int}, documents?: array{company_authorization?: array{files: string[], type: string}, passport?: array{files: string[], type: string}, primary_verification?: array{front_back: array{back?: string, front: string}, type: string}, secondary_verification?: array{front_back: array{back?: string, front: string}, type: string}, visa?: array{files: string[], type: string}}, email?: string, given_name?: string, id_numbers?: array{type: string, value: string}[], legal_gender?: string, metadata?: array, nationalities?: string[], phone?: string, political_exposure?: string, relationship?: array{director?: bool, executive?: bool, owner?: bool, percent_ownership?: string, title?: string}, script_addresses?: array{kana?: array{city?: string, country: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}, kanji?: array{city?: string, country: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}}, script_names?: array{kana?: array{given_name?: string, surname?: string}, kanji?: array{given_name?: string, surname?: string}}, surname?: string}}, include?: string[], metadata?: array} $params - * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts - * - * @return \Stripe\V2\Core\Account - * - * @throws \Stripe\Exception\RateLimitException - */ - public function create($params = null, $opts = null) - { - return $this->request('post', '/v2/core/accounts', $params, $opts, [ - 'request_schema' => [ - 'kind' => 'object', - 'fields' => [ - 'identity' => [ - 'kind' => 'object', - 'fields' => [ - 'individual' => [ - 'kind' => 'object', - 'fields' => [ - 'relationship' => [ - 'kind' => 'object', - 'fields' => [ - 'percent_ownership' => [ - 'kind' => 'decimal_string', - ], - ], - ], - ], - ], - ], - ], - ], - ], - 'response_schema' => [ - 'kind' => 'object', - 'fields' => [ - 'configuration' => [ - 'kind' => 'object', - 'fields' => [ - 'card_creator' => [ - 'kind' => 'object', - 'fields' => [ - 'capabilities' => [ - 'kind' => 'object', - 'fields' => [ - 'commercial' => [ - 'kind' => 'object', - 'fields' => [ - 'celtic' => [ - 'kind' => 'object', - 'fields' => [ - 'charge_card' => [ + 'prepaid_card' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -3985,7 +5179,17 @@ public function create($params = null, $opts = null) ], ], ], - 'spend_card' => [ + ], + ], + ], + ], + 'consumer' => [ + 'kind' => 'object', + 'fields' => [ + 'celtic' => [ + 'kind' => 'object', + 'fields' => [ + 'revolving_credit_card' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -4011,7 +5215,7 @@ public function create($params = null, $opts = null) 'cross_river_bank' => [ 'kind' => 'object', 'fields' => [ - 'charge_card' => [ + 'prepaid_card' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -4032,7 +5236,12 @@ public function create($params = null, $opts = null) ], ], ], - 'prepaid_card' => [ + ], + ], + 'lead' => [ + 'kind' => 'object', + 'fields' => [ + 'debit_card' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -4053,7 +5262,7 @@ public function create($params = null, $opts = null) ], ], ], - 'spend_card' => [ + 'prepaid_card' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -4076,100 +5285,210 @@ public function create($params = null, $opts = null) ], ], ], - 'fifth_third' => [ + ], + ], + ], + ], + ], + ], + 'customer' => [ + 'kind' => 'object', + 'fields' => [ + 'capabilities' => [ + 'kind' => 'object', + 'fields' => [ + 'automatic_indirect_tax' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'merchant' => [ + 'kind' => 'object', + 'fields' => [ + 'capabilities' => [ + 'kind' => 'object', + 'fields' => [ + 'ach_debit_payments' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], + ], + ], + ], + 'acss_debit_payments' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], + ], + ], + ], + 'affirm_payments' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], + ], + ], + ], + 'afterpay_clearpay_payments' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], + ], + ], + ], + 'alma_payments' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], + ], + ], + ], + 'amazon_pay_payments' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ 'kind' => 'object', 'fields' => [ - 'charge_card' => [ + 'psp_migration' => [ 'kind' => 'object', 'fields' => [ - 'protections' => [ - 'kind' => 'object', - 'fields' => [ - 'psp_migration' => [ - 'kind' => 'object', - 'fields' => [ - 'expires_at' => [ - 'kind' => 'int64_string', - ], - 'requested_at' => [ - 'kind' => 'int64_string', - ], - ], - ], - ], + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', ], ], ], ], ], - 'lead' => [ + ], + ], + 'au_becs_debit_payments' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ 'kind' => 'object', 'fields' => [ - 'prepaid_card' => [ + 'psp_migration' => [ 'kind' => 'object', 'fields' => [ - 'protections' => [ - 'kind' => 'object', - 'fields' => [ - 'psp_migration' => [ - 'kind' => 'object', - 'fields' => [ - 'expires_at' => [ - 'kind' => 'int64_string', - ], - 'requested_at' => [ - 'kind' => 'int64_string', - ], - ], - ], - ], + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', ], ], ], ], ], - 'stripe' => [ + ], + ], + 'bacs_debit_payments' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ 'kind' => 'object', 'fields' => [ - 'charge_card' => [ + 'psp_migration' => [ 'kind' => 'object', 'fields' => [ - 'protections' => [ - 'kind' => 'object', - 'fields' => [ - 'psp_migration' => [ - 'kind' => 'object', - 'fields' => [ - 'expires_at' => [ - 'kind' => 'int64_string', - ], - 'requested_at' => [ - 'kind' => 'int64_string', - ], - ], - ], - ], + 'expires_at' => [ + 'kind' => 'int64_string', ], - ], - ], - 'prepaid_card' => [ - 'kind' => 'object', - 'fields' => [ - 'protections' => [ - 'kind' => 'object', - 'fields' => [ - 'psp_migration' => [ - 'kind' => 'object', - 'fields' => [ - 'expires_at' => [ - 'kind' => 'int64_string', - ], - 'requested_at' => [ - 'kind' => 'int64_string', - ], - ], - ], - ], + 'requested_at' => [ + 'kind' => 'int64_string', ], ], ], @@ -4177,103 +5496,62 @@ public function create($params = null, $opts = null) ], ], ], - 'consumer' => [ + 'bancontact_payments' => [ 'kind' => 'object', 'fields' => [ - 'celtic' => [ + 'protections' => [ 'kind' => 'object', 'fields' => [ - 'revolving_credit_card' => [ + 'psp_migration' => [ 'kind' => 'object', 'fields' => [ - 'protections' => [ - 'kind' => 'object', - 'fields' => [ - 'psp_migration' => [ - 'kind' => 'object', - 'fields' => [ - 'expires_at' => [ - 'kind' => 'int64_string', - ], - 'requested_at' => [ - 'kind' => 'int64_string', - ], - ], - ], - ], + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', ], ], ], ], ], - 'cross_river_bank' => [ + ], + ], + 'blik_payments' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ 'kind' => 'object', 'fields' => [ - 'prepaid_card' => [ + 'psp_migration' => [ 'kind' => 'object', 'fields' => [ - 'protections' => [ - 'kind' => 'object', - 'fields' => [ - 'psp_migration' => [ - 'kind' => 'object', - 'fields' => [ - 'expires_at' => [ - 'kind' => 'int64_string', - ], - 'requested_at' => [ - 'kind' => 'int64_string', - ], - ], - ], - ], + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', ], ], ], ], ], - 'lead' => [ + ], + ], + 'boleto_payments' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ 'kind' => 'object', 'fields' => [ - 'debit_card' => [ + 'psp_migration' => [ 'kind' => 'object', 'fields' => [ - 'protections' => [ - 'kind' => 'object', - 'fields' => [ - 'psp_migration' => [ - 'kind' => 'object', - 'fields' => [ - 'expires_at' => [ - 'kind' => 'int64_string', - ], - 'requested_at' => [ - 'kind' => 'int64_string', - ], - ], - ], - ], + 'expires_at' => [ + 'kind' => 'int64_string', ], - ], - ], - 'prepaid_card' => [ - 'kind' => 'object', - 'fields' => [ - 'protections' => [ - 'kind' => 'object', - 'fields' => [ - 'psp_migration' => [ - 'kind' => 'object', - 'fields' => [ - 'expires_at' => [ - 'kind' => 'int64_string', - ], - 'requested_at' => [ - 'kind' => 'int64_string', - ], - ], - ], - ], + 'requested_at' => [ + 'kind' => 'int64_string', ], ], ], @@ -4281,17 +5559,7 @@ public function create($params = null, $opts = null) ], ], ], - ], - ], - ], - ], - 'customer' => [ - 'kind' => 'object', - 'fields' => [ - 'capabilities' => [ - 'kind' => 'object', - 'fields' => [ - 'automatic_indirect_tax' => [ + 'card_payments' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -4312,17 +5580,28 @@ public function create($params = null, $opts = null) ], ], ], - ], - ], - ], - ], - 'merchant' => [ - 'kind' => 'object', - 'fields' => [ - 'capabilities' => [ - 'kind' => 'object', - 'fields' => [ - 'ach_debit_payments' => [ + 'cartes_bancaires_payments' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], + ], + ], + ], + 'cashapp_payments' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -4343,7 +5622,7 @@ public function create($params = null, $opts = null) ], ], ], - 'acss_debit_payments' => [ + 'eps_payments' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -4364,7 +5643,7 @@ public function create($params = null, $opts = null) ], ], ], - 'affirm_payments' => [ + 'fpx_payments' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -4385,7 +5664,7 @@ public function create($params = null, $opts = null) ], ], ], - 'afterpay_clearpay_payments' => [ + 'gb_bank_transfer_payments' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -4406,7 +5685,7 @@ public function create($params = null, $opts = null) ], ], ], - 'alma_payments' => [ + 'grabpay_payments' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -4427,7 +5706,7 @@ public function create($params = null, $opts = null) ], ], ], - 'amazon_pay_payments' => [ + 'ideal_payments' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -4448,7 +5727,7 @@ public function create($params = null, $opts = null) ], ], ], - 'au_becs_debit_payments' => [ + 'jcb_payments' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -4469,7 +5748,7 @@ public function create($params = null, $opts = null) ], ], ], - 'bacs_debit_payments' => [ + 'jp_bank_transfer_payments' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -4490,7 +5769,7 @@ public function create($params = null, $opts = null) ], ], ], - 'bancontact_payments' => [ + 'kakao_pay_payments' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -4511,7 +5790,7 @@ public function create($params = null, $opts = null) ], ], ], - 'blik_payments' => [ + 'klarna_payments' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -4532,7 +5811,7 @@ public function create($params = null, $opts = null) ], ], ], - 'boleto_payments' => [ + 'konbini_payments' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -4553,7 +5832,7 @@ public function create($params = null, $opts = null) ], ], ], - 'card_payments' => [ + 'kr_card_payments' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -4574,7 +5853,7 @@ public function create($params = null, $opts = null) ], ], ], - 'cartes_bancaires_payments' => [ + 'link_payments' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -4595,7 +5874,7 @@ public function create($params = null, $opts = null) ], ], ], - 'cashapp_payments' => [ + 'mobilepay_payments' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -4616,7 +5895,7 @@ public function create($params = null, $opts = null) ], ], ], - 'eps_payments' => [ + 'multibanco_payments' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -4637,7 +5916,7 @@ public function create($params = null, $opts = null) ], ], ], - 'fpx_payments' => [ + 'mx_bank_transfer_payments' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -4658,7 +5937,7 @@ public function create($params = null, $opts = null) ], ], ], - 'gb_bank_transfer_payments' => [ + 'naver_pay_payments' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -4679,7 +5958,7 @@ public function create($params = null, $opts = null) ], ], ], - 'grabpay_payments' => [ + 'oxxo_payments' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -4700,7 +5979,7 @@ public function create($params = null, $opts = null) ], ], ], - 'ideal_payments' => [ + 'p24_payments' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -4721,7 +6000,7 @@ public function create($params = null, $opts = null) ], ], ], - 'jcb_payments' => [ + 'pay_by_bank_payments' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -4742,7 +6021,7 @@ public function create($params = null, $opts = null) ], ], ], - 'jp_bank_transfer_payments' => [ + 'payco_payments' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -4763,7 +6042,7 @@ public function create($params = null, $opts = null) ], ], ], - 'kakao_pay_payments' => [ + 'paynow_payments' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -4784,7 +6063,7 @@ public function create($params = null, $opts = null) ], ], ], - 'klarna_payments' => [ + 'promptpay_payments' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -4805,7 +6084,7 @@ public function create($params = null, $opts = null) ], ], ], - 'konbini_payments' => [ + 'revolut_pay_payments' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -4826,7 +6105,7 @@ public function create($params = null, $opts = null) ], ], ], - 'kr_card_payments' => [ + 'samsung_pay_payments' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -4847,7 +6126,7 @@ public function create($params = null, $opts = null) ], ], ], - 'link_payments' => [ + 'sepa_bank_transfer_payments' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -4868,7 +6147,7 @@ public function create($params = null, $opts = null) ], ], ], - 'mobilepay_payments' => [ + 'sepa_debit_payments' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -4889,20 +6168,25 @@ public function create($params = null, $opts = null) ], ], ], - 'multibanco_payments' => [ + 'stripe_balance' => [ 'kind' => 'object', 'fields' => [ - 'protections' => [ + 'payouts' => [ 'kind' => 'object', 'fields' => [ - 'psp_migration' => [ + 'protections' => [ 'kind' => 'object', 'fields' => [ - 'expires_at' => [ - 'kind' => 'int64_string', - ], - 'requested_at' => [ - 'kind' => 'int64_string', + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], ], ], ], @@ -4910,7 +6194,7 @@ public function create($params = null, $opts = null) ], ], ], - 'mx_bank_transfer_payments' => [ + 'sunbit_payments' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -4931,7 +6215,7 @@ public function create($params = null, $opts = null) ], ], ], - 'naver_pay_payments' => [ + 'swish_payments' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -4952,7 +6236,7 @@ public function create($params = null, $opts = null) ], ], ], - 'oxxo_payments' => [ + 'twint_payments' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -4973,7 +6257,7 @@ public function create($params = null, $opts = null) ], ], ], - 'p24_payments' => [ + 'us_bank_transfer_payments' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -4994,7 +6278,7 @@ public function create($params = null, $opts = null) ], ], ], - 'pay_by_bank_payments' => [ + 'zip_payments' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -5015,104 +6299,276 @@ public function create($params = null, $opts = null) ], ], ], - 'payco_payments' => [ + ], + ], + ], + ], + 'money_manager' => [ + 'kind' => 'object', + 'fields' => [ + 'capabilities' => [ + 'kind' => 'object', + 'fields' => [ + 'business_storage' => [ 'kind' => 'object', 'fields' => [ - 'protections' => [ + 'inbound' => [ 'kind' => 'object', 'fields' => [ - 'psp_migration' => [ + 'aud' => [ 'kind' => 'object', 'fields' => [ - 'expires_at' => [ - 'kind' => 'int64_string', + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], ], - 'requested_at' => [ - 'kind' => 'int64_string', + ], + ], + 'cad' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], + ], + ], + ], + 'eur' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], + ], + ], + ], + 'gbp' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], + ], + ], + ], + 'usd' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], + ], + ], + ], + 'usdc' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'outbound' => [ + 'kind' => 'object', + 'fields' => [ + 'aud' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], + ], + ], + ], + 'cad' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], ], ], ], - ], - ], - ], - ], - 'paynow_payments' => [ - 'kind' => 'object', - 'fields' => [ - 'protections' => [ - 'kind' => 'object', - 'fields' => [ - 'psp_migration' => [ + 'eur' => [ 'kind' => 'object', 'fields' => [ - 'expires_at' => [ - 'kind' => 'int64_string', - ], - 'requested_at' => [ - 'kind' => 'int64_string', + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], ], ], ], - ], - ], - ], - ], - 'promptpay_payments' => [ - 'kind' => 'object', - 'fields' => [ - 'protections' => [ - 'kind' => 'object', - 'fields' => [ - 'psp_migration' => [ + 'gbp' => [ 'kind' => 'object', 'fields' => [ - 'expires_at' => [ - 'kind' => 'int64_string', - ], - 'requested_at' => [ - 'kind' => 'int64_string', + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], ], ], ], - ], - ], - ], - ], - 'revolut_pay_payments' => [ - 'kind' => 'object', - 'fields' => [ - 'protections' => [ - 'kind' => 'object', - 'fields' => [ - 'psp_migration' => [ + 'usd' => [ 'kind' => 'object', 'fields' => [ - 'expires_at' => [ - 'kind' => 'int64_string', - ], - 'requested_at' => [ - 'kind' => 'int64_string', + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], ], ], ], - ], - ], - ], - ], - 'samsung_pay_payments' => [ - 'kind' => 'object', - 'fields' => [ - 'protections' => [ - 'kind' => 'object', - 'fields' => [ - 'psp_migration' => [ + 'usdc' => [ 'kind' => 'object', 'fields' => [ - 'expires_at' => [ - 'kind' => 'int64_string', - ], - 'requested_at' => [ - 'kind' => 'int64_string', + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], ], ], ], @@ -5120,88 +6576,98 @@ public function create($params = null, $opts = null) ], ], ], - 'sepa_bank_transfer_payments' => [ + 'consumer_storage' => [ 'kind' => 'object', 'fields' => [ - 'protections' => [ + 'inbound' => [ 'kind' => 'object', 'fields' => [ - 'psp_migration' => [ + 'usd' => [ 'kind' => 'object', 'fields' => [ - 'expires_at' => [ - 'kind' => 'int64_string', - ], - 'requested_at' => [ - 'kind' => 'int64_string', + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], ], ], ], - ], - ], - ], - ], - 'sepa_debit_payments' => [ - 'kind' => 'object', - 'fields' => [ - 'protections' => [ - 'kind' => 'object', - 'fields' => [ - 'psp_migration' => [ + 'usdc' => [ 'kind' => 'object', 'fields' => [ - 'expires_at' => [ - 'kind' => 'int64_string', - ], - 'requested_at' => [ - 'kind' => 'int64_string', + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], ], ], ], ], ], - ], - ], - 'stripe_balance' => [ - 'kind' => 'object', - 'fields' => [ - 'payouts' => [ + 'outbound' => [ 'kind' => 'object', 'fields' => [ - 'protections' => [ + 'usd' => [ 'kind' => 'object', 'fields' => [ - 'psp_migration' => [ + 'protections' => [ 'kind' => 'object', 'fields' => [ - 'expires_at' => [ - 'kind' => 'int64_string', - ], - 'requested_at' => [ - 'kind' => 'int64_string', + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], ], ], ], ], ], - ], - ], - ], - ], - 'swish_payments' => [ - 'kind' => 'object', - 'fields' => [ - 'protections' => [ - 'kind' => 'object', - 'fields' => [ - 'psp_migration' => [ + 'usdc' => [ 'kind' => 'object', 'fields' => [ - 'expires_at' => [ - 'kind' => 'int64_string', - ], - 'requested_at' => [ - 'kind' => 'int64_string', + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], ], ], ], @@ -5209,20 +6675,25 @@ public function create($params = null, $opts = null) ], ], ], - 'twint_payments' => [ + 'inbound_transfers' => [ 'kind' => 'object', 'fields' => [ - 'protections' => [ + 'bank_accounts' => [ 'kind' => 'object', 'fields' => [ - 'psp_migration' => [ - 'kind' => 'object', - 'fields' => [ - 'expires_at' => [ - 'kind' => 'int64_string', - ], - 'requested_at' => [ - 'kind' => 'int64_string', + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], ], ], ], @@ -5230,62 +6701,52 @@ public function create($params = null, $opts = null) ], ], ], - 'us_bank_transfer_payments' => [ + 'outbound_payments' => [ 'kind' => 'object', 'fields' => [ - 'protections' => [ + 'bank_accounts' => [ 'kind' => 'object', 'fields' => [ - 'psp_migration' => [ + 'protections' => [ 'kind' => 'object', 'fields' => [ - 'expires_at' => [ - 'kind' => 'int64_string', - ], - 'requested_at' => [ - 'kind' => 'int64_string', + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], ], ], ], ], ], - ], - ], - 'zip_payments' => [ - 'kind' => 'object', - 'fields' => [ - 'protections' => [ + 'cards' => [ 'kind' => 'object', 'fields' => [ - 'psp_migration' => [ + 'protections' => [ 'kind' => 'object', 'fields' => [ - 'expires_at' => [ - 'kind' => 'int64_string', - ], - 'requested_at' => [ - 'kind' => 'int64_string', + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], ], ], ], ], ], - ], - ], - ], - ], - ], - ], - 'recipient' => [ - 'kind' => 'object', - 'fields' => [ - 'capabilities' => [ - 'kind' => 'object', - 'fields' => [ - 'bank_accounts' => [ - 'kind' => 'object', - 'fields' => [ - 'instant' => [ + 'crypto_wallets' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -5306,7 +6767,7 @@ public function create($params = null, $opts = null) ], ], ], - 'local' => [ + 'financial_accounts' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -5327,7 +6788,7 @@ public function create($params = null, $opts = null) ], ], ], - 'wire' => [ + 'paper_checks' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -5350,41 +6811,67 @@ public function create($params = null, $opts = null) ], ], ], - 'cards' => [ + 'outbound_transfers' => [ 'kind' => 'object', 'fields' => [ - 'protections' => [ + 'bank_accounts' => [ 'kind' => 'object', 'fields' => [ - 'psp_migration' => [ + 'protections' => [ 'kind' => 'object', 'fields' => [ - 'expires_at' => [ - 'kind' => 'int64_string', - ], - 'requested_at' => [ - 'kind' => 'int64_string', + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], ], ], ], ], ], - ], - ], - 'crypto_wallets' => [ - 'kind' => 'object', - 'fields' => [ - 'protections' => [ + 'crypto_wallets' => [ 'kind' => 'object', 'fields' => [ - 'psp_migration' => [ + 'protections' => [ 'kind' => 'object', 'fields' => [ - 'expires_at' => [ - 'kind' => 'int64_string', + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], ], - 'requested_at' => [ - 'kind' => 'int64_string', + ], + ], + ], + ], + 'financial_accounts' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], ], ], ], @@ -5392,31 +6879,31 @@ public function create($params = null, $opts = null) ], ], ], - 'paper_checks' => [ + 'received_credits' => [ 'kind' => 'object', 'fields' => [ - 'protections' => [ + 'bank_accounts' => [ 'kind' => 'object', 'fields' => [ - 'psp_migration' => [ + 'protections' => [ 'kind' => 'object', 'fields' => [ - 'expires_at' => [ - 'kind' => 'int64_string', - ], - 'requested_at' => [ - 'kind' => 'int64_string', + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], ], ], ], ], ], - ], - ], - 'stripe_balance' => [ - 'kind' => 'object', - 'fields' => [ - 'payouts' => [ + 'crypto_wallets' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -5437,7 +6924,12 @@ public function create($params = null, $opts = null) ], ], ], - 'stripe_transfers' => [ + ], + ], + 'received_debits' => [ + 'kind' => 'object', + 'fields' => [ + 'bank_accounts' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -5464,34 +6956,29 @@ public function create($params = null, $opts = null) ], ], ], - 'storer' => [ + 'recipient' => [ 'kind' => 'object', 'fields' => [ 'capabilities' => [ 'kind' => 'object', 'fields' => [ - 'consumer' => [ + 'bank_accounts' => [ 'kind' => 'object', 'fields' => [ - 'holds_currencies' => [ + 'ach' => [ 'kind' => 'object', 'fields' => [ - 'usd' => [ + 'protections' => [ 'kind' => 'object', 'fields' => [ - 'protections' => [ + 'psp_migration' => [ 'kind' => 'object', 'fields' => [ - 'psp_migration' => [ - 'kind' => 'object', - 'fields' => [ - 'expires_at' => [ - 'kind' => 'int64_string', - ], - 'requested_at' => [ - 'kind' => 'int64_string', - ], - ], + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', ], ], ], @@ -5499,12 +6986,7 @@ public function create($params = null, $opts = null) ], ], ], - ], - ], - 'financial_addresses' => [ - 'kind' => 'object', - 'fields' => [ - 'bank_accounts' => [ + 'becs' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -5525,7 +7007,7 @@ public function create($params = null, $opts = null) ], ], ], - 'crypto_wallets' => [ + 'eft' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -5546,12 +7028,7 @@ public function create($params = null, $opts = null) ], ], ], - ], - ], - 'holds_currencies' => [ - 'kind' => 'object', - 'fields' => [ - 'eur' => [ + 'fedwire' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -5572,7 +7049,7 @@ public function create($params = null, $opts = null) ], ], ], - 'gbp' => [ + 'fps' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -5593,7 +7070,7 @@ public function create($params = null, $opts = null) ], ], ], - 'usd' => [ + 'instant' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -5614,7 +7091,7 @@ public function create($params = null, $opts = null) ], ], ], - 'usdc' => [ + 'local' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -5635,12 +7112,7 @@ public function create($params = null, $opts = null) ], ], ], - ], - ], - 'inbound_transfers' => [ - 'kind' => 'object', - 'fields' => [ - 'bank_accounts' => [ + 'npp' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -5661,12 +7133,7 @@ public function create($params = null, $opts = null) ], ], ], - ], - ], - 'outbound_payments' => [ - 'kind' => 'object', - 'fields' => [ - 'bank_accounts' => [ + 'rtp' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -5687,7 +7154,7 @@ public function create($params = null, $opts = null) ], ], ], - 'cards' => [ + 'sepa_credit' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -5708,7 +7175,7 @@ public function create($params = null, $opts = null) ], ], ], - 'crypto_wallets' => [ + 'sepa_instant' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -5729,7 +7196,7 @@ public function create($params = null, $opts = null) ], ], ], - 'financial_accounts' => [ + 'swift' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -5750,7 +7217,7 @@ public function create($params = null, $opts = null) ], ], ], - 'paper_checks' => [ + 'wire' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -5773,31 +7240,73 @@ public function create($params = null, $opts = null) ], ], ], - 'outbound_transfers' => [ + 'cards' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], + ], + ], + ], + 'crypto_wallets' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], + ], + ], + ], + 'paper_checks' => [ 'kind' => 'object', 'fields' => [ - 'bank_accounts' => [ + 'protections' => [ 'kind' => 'object', 'fields' => [ - 'protections' => [ + 'psp_migration' => [ 'kind' => 'object', 'fields' => [ - 'psp_migration' => [ - 'kind' => 'object', - 'fields' => [ - 'expires_at' => [ - 'kind' => 'int64_string', - ], - 'requested_at' => [ - 'kind' => 'int64_string', - ], - ], + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', ], ], ], ], ], - 'crypto_wallets' => [ + ], + ], + 'stripe_balance' => [ + 'kind' => 'object', + 'fields' => [ + 'payouts' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -5818,7 +7327,7 @@ public function create($params = null, $opts = null) ], ], ], - 'financial_accounts' => [ + 'stripe_transfers' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -6974,7 +8483,222 @@ public function retrieve($id, $params = null, $opts = null) ], ], ], - 'paynow_payments' => [ + 'paynow_payments' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], + ], + ], + ], + 'promptpay_payments' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], + ], + ], + ], + 'revolut_pay_payments' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], + ], + ], + ], + 'samsung_pay_payments' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], + ], + ], + ], + 'sepa_bank_transfer_payments' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], + ], + ], + ], + 'sepa_debit_payments' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], + ], + ], + ], + 'stripe_balance' => [ + 'kind' => 'object', + 'fields' => [ + 'payouts' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'sunbit_payments' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], + ], + ], + ], + 'swish_payments' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], + ], + ], + ], + 'twint_payments' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], + ], + ], + ], + 'us_bank_transfer_payments' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -6995,7 +8719,7 @@ public function retrieve($id, $params = null, $opts = null) ], ], ], - 'promptpay_payments' => [ + 'zip_payments' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -7016,41 +8740,276 @@ public function retrieve($id, $params = null, $opts = null) ], ], ], - 'revolut_pay_payments' => [ + ], + ], + ], + ], + 'money_manager' => [ + 'kind' => 'object', + 'fields' => [ + 'capabilities' => [ + 'kind' => 'object', + 'fields' => [ + 'business_storage' => [ 'kind' => 'object', 'fields' => [ - 'protections' => [ + 'inbound' => [ 'kind' => 'object', 'fields' => [ - 'psp_migration' => [ + 'aud' => [ 'kind' => 'object', 'fields' => [ - 'expires_at' => [ - 'kind' => 'int64_string', + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], ], - 'requested_at' => [ - 'kind' => 'int64_string', + ], + ], + 'cad' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], + ], + ], + ], + 'eur' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], + ], + ], + ], + 'gbp' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], + ], + ], + ], + 'usd' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], + ], + ], + ], + 'usdc' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], ], ], ], ], ], - ], - ], - 'samsung_pay_payments' => [ - 'kind' => 'object', - 'fields' => [ - 'protections' => [ + 'outbound' => [ 'kind' => 'object', 'fields' => [ - 'psp_migration' => [ + 'aud' => [ 'kind' => 'object', 'fields' => [ - 'expires_at' => [ - 'kind' => 'int64_string', + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], ], - 'requested_at' => [ - 'kind' => 'int64_string', + ], + ], + 'cad' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], + ], + ], + ], + 'eur' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], + ], + ], + ], + 'gbp' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], + ], + ], + ], + 'usd' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], + ], + ], + ], + 'usdc' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], ], ], ], @@ -7058,41 +9017,98 @@ public function retrieve($id, $params = null, $opts = null) ], ], ], - 'sepa_bank_transfer_payments' => [ + 'consumer_storage' => [ 'kind' => 'object', 'fields' => [ - 'protections' => [ + 'inbound' => [ 'kind' => 'object', 'fields' => [ - 'psp_migration' => [ + 'usd' => [ 'kind' => 'object', 'fields' => [ - 'expires_at' => [ - 'kind' => 'int64_string', + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], ], - 'requested_at' => [ - 'kind' => 'int64_string', + ], + ], + 'usdc' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], ], ], ], ], ], - ], - ], - 'sepa_debit_payments' => [ - 'kind' => 'object', - 'fields' => [ - 'protections' => [ + 'outbound' => [ 'kind' => 'object', 'fields' => [ - 'psp_migration' => [ + 'usd' => [ 'kind' => 'object', 'fields' => [ - 'expires_at' => [ - 'kind' => 'int64_string', + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], ], - 'requested_at' => [ - 'kind' => 'int64_string', + ], + ], + 'usdc' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], ], ], ], @@ -7100,10 +9116,10 @@ public function retrieve($id, $params = null, $opts = null) ], ], ], - 'stripe_balance' => [ + 'inbound_transfers' => [ 'kind' => 'object', 'fields' => [ - 'payouts' => [ + 'bank_accounts' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -7126,104 +9142,73 @@ public function retrieve($id, $params = null, $opts = null) ], ], ], - 'swish_payments' => [ - 'kind' => 'object', - 'fields' => [ - 'protections' => [ - 'kind' => 'object', - 'fields' => [ - 'psp_migration' => [ - 'kind' => 'object', - 'fields' => [ - 'expires_at' => [ - 'kind' => 'int64_string', - ], - 'requested_at' => [ - 'kind' => 'int64_string', - ], - ], - ], - ], - ], - ], - ], - 'twint_payments' => [ + 'outbound_payments' => [ 'kind' => 'object', 'fields' => [ - 'protections' => [ + 'bank_accounts' => [ 'kind' => 'object', 'fields' => [ - 'psp_migration' => [ + 'protections' => [ 'kind' => 'object', 'fields' => [ - 'expires_at' => [ - 'kind' => 'int64_string', - ], - 'requested_at' => [ - 'kind' => 'int64_string', + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], ], ], ], ], ], - ], - ], - 'us_bank_transfer_payments' => [ - 'kind' => 'object', - 'fields' => [ - 'protections' => [ + 'cards' => [ 'kind' => 'object', 'fields' => [ - 'psp_migration' => [ + 'protections' => [ 'kind' => 'object', 'fields' => [ - 'expires_at' => [ - 'kind' => 'int64_string', - ], - 'requested_at' => [ - 'kind' => 'int64_string', + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], ], ], ], ], ], - ], - ], - 'zip_payments' => [ - 'kind' => 'object', - 'fields' => [ - 'protections' => [ + 'crypto_wallets' => [ 'kind' => 'object', 'fields' => [ - 'psp_migration' => [ + 'protections' => [ 'kind' => 'object', 'fields' => [ - 'expires_at' => [ - 'kind' => 'int64_string', - ], - 'requested_at' => [ - 'kind' => 'int64_string', + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], ], ], ], ], ], - ], - ], - ], - ], - ], - ], - 'recipient' => [ - 'kind' => 'object', - 'fields' => [ - 'capabilities' => [ - 'kind' => 'object', - 'fields' => [ - 'bank_accounts' => [ - 'kind' => 'object', - 'fields' => [ - 'instant' => [ + 'financial_accounts' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -7244,7 +9229,7 @@ public function retrieve($id, $params = null, $opts = null) ], ], ], - 'local' => [ + 'paper_checks' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -7265,7 +9250,12 @@ public function retrieve($id, $params = null, $opts = null) ], ], ], - 'wire' => [ + ], + ], + 'outbound_transfers' => [ + 'kind' => 'object', + 'fields' => [ + 'bank_accounts' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -7286,43 +9276,43 @@ public function retrieve($id, $params = null, $opts = null) ], ], ], - ], - ], - 'cards' => [ - 'kind' => 'object', - 'fields' => [ - 'protections' => [ + 'crypto_wallets' => [ 'kind' => 'object', 'fields' => [ - 'psp_migration' => [ + 'protections' => [ 'kind' => 'object', 'fields' => [ - 'expires_at' => [ - 'kind' => 'int64_string', - ], - 'requested_at' => [ - 'kind' => 'int64_string', + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], ], ], ], ], ], - ], - ], - 'crypto_wallets' => [ - 'kind' => 'object', - 'fields' => [ - 'protections' => [ + 'financial_accounts' => [ 'kind' => 'object', 'fields' => [ - 'psp_migration' => [ + 'protections' => [ 'kind' => 'object', 'fields' => [ - 'expires_at' => [ - 'kind' => 'int64_string', - ], - 'requested_at' => [ - 'kind' => 'int64_string', + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], ], ], ], @@ -7330,31 +9320,31 @@ public function retrieve($id, $params = null, $opts = null) ], ], ], - 'paper_checks' => [ + 'received_credits' => [ 'kind' => 'object', 'fields' => [ - 'protections' => [ + 'bank_accounts' => [ 'kind' => 'object', 'fields' => [ - 'psp_migration' => [ + 'protections' => [ 'kind' => 'object', 'fields' => [ - 'expires_at' => [ - 'kind' => 'int64_string', - ], - 'requested_at' => [ - 'kind' => 'int64_string', + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], ], ], ], ], ], - ], - ], - 'stripe_balance' => [ - 'kind' => 'object', - 'fields' => [ - 'payouts' => [ + 'crypto_wallets' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -7375,7 +9365,12 @@ public function retrieve($id, $params = null, $opts = null) ], ], ], - 'stripe_transfers' => [ + ], + ], + 'received_debits' => [ + 'kind' => 'object', + 'fields' => [ + 'bank_accounts' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -7402,34 +9397,29 @@ public function retrieve($id, $params = null, $opts = null) ], ], ], - 'storer' => [ + 'recipient' => [ 'kind' => 'object', 'fields' => [ 'capabilities' => [ 'kind' => 'object', 'fields' => [ - 'consumer' => [ + 'bank_accounts' => [ 'kind' => 'object', 'fields' => [ - 'holds_currencies' => [ + 'ach' => [ 'kind' => 'object', 'fields' => [ - 'usd' => [ + 'protections' => [ 'kind' => 'object', 'fields' => [ - 'protections' => [ + 'psp_migration' => [ 'kind' => 'object', 'fields' => [ - 'psp_migration' => [ - 'kind' => 'object', - 'fields' => [ - 'expires_at' => [ - 'kind' => 'int64_string', - ], - 'requested_at' => [ - 'kind' => 'int64_string', - ], - ], + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', ], ], ], @@ -7437,12 +9427,7 @@ public function retrieve($id, $params = null, $opts = null) ], ], ], - ], - ], - 'financial_addresses' => [ - 'kind' => 'object', - 'fields' => [ - 'bank_accounts' => [ + 'becs' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -7463,7 +9448,7 @@ public function retrieve($id, $params = null, $opts = null) ], ], ], - 'crypto_wallets' => [ + 'eft' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -7484,12 +9469,7 @@ public function retrieve($id, $params = null, $opts = null) ], ], ], - ], - ], - 'holds_currencies' => [ - 'kind' => 'object', - 'fields' => [ - 'eur' => [ + 'fedwire' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -7510,7 +9490,7 @@ public function retrieve($id, $params = null, $opts = null) ], ], ], - 'gbp' => [ + 'fps' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -7531,7 +9511,7 @@ public function retrieve($id, $params = null, $opts = null) ], ], ], - 'usd' => [ + 'instant' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -7552,7 +9532,7 @@ public function retrieve($id, $params = null, $opts = null) ], ], ], - 'usdc' => [ + 'local' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -7573,12 +9553,7 @@ public function retrieve($id, $params = null, $opts = null) ], ], ], - ], - ], - 'inbound_transfers' => [ - 'kind' => 'object', - 'fields' => [ - 'bank_accounts' => [ + 'npp' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -7599,12 +9574,7 @@ public function retrieve($id, $params = null, $opts = null) ], ], ], - ], - ], - 'outbound_payments' => [ - 'kind' => 'object', - 'fields' => [ - 'bank_accounts' => [ + 'rtp' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -7625,7 +9595,7 @@ public function retrieve($id, $params = null, $opts = null) ], ], ], - 'cards' => [ + 'sepa_credit' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -7646,7 +9616,7 @@ public function retrieve($id, $params = null, $opts = null) ], ], ], - 'crypto_wallets' => [ + 'sepa_instant' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -7667,7 +9637,7 @@ public function retrieve($id, $params = null, $opts = null) ], ], ], - 'financial_accounts' => [ + 'swift' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -7688,7 +9658,7 @@ public function retrieve($id, $params = null, $opts = null) ], ], ], - 'paper_checks' => [ + 'wire' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -7711,31 +9681,73 @@ public function retrieve($id, $params = null, $opts = null) ], ], ], - 'outbound_transfers' => [ + 'cards' => [ 'kind' => 'object', 'fields' => [ - 'bank_accounts' => [ + 'protections' => [ 'kind' => 'object', 'fields' => [ - 'protections' => [ + 'psp_migration' => [ 'kind' => 'object', 'fields' => [ - 'psp_migration' => [ - 'kind' => 'object', - 'fields' => [ - 'expires_at' => [ - 'kind' => 'int64_string', - ], - 'requested_at' => [ - 'kind' => 'int64_string', - ], - ], + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', ], ], ], ], ], - 'crypto_wallets' => [ + ], + ], + 'crypto_wallets' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], + ], + ], + ], + 'paper_checks' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], + ], + ], + ], + 'stripe_balance' => [ + 'kind' => 'object', + 'fields' => [ + 'payouts' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -7756,7 +9768,7 @@ public function retrieve($id, $params = null, $opts = null) ], ], ], - 'financial_accounts' => [ + 'stripe_transfers' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -7812,7 +9824,7 @@ public function retrieve($id, $params = null, $opts = null) * Updates the details of an Account. * * @param string $id - * @param null|array{account_token?: string, configuration?: array{card_creator?: array{applied?: bool, capabilities?: array{commercial?: array{celtic?: array{charge_card?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}, spend_card?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}}, cross_river_bank?: array{charge_card?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}, prepaid_card?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}, spend_card?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}}, fifth_third?: array{charge_card?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}}, lead?: array{prepaid_card?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}}, stripe?: array{charge_card?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}, prepaid_card?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}}}, consumer?: array{celtic?: array{revolving_credit_card?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}}, cross_river_bank?: array{prepaid_card?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}}, lead?: array{debit_card?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}, prepaid_card?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}}}}}, customer?: array{applied?: bool, automatic_indirect_tax?: array{exempt?: string, ip_address?: string, location_source?: string, validate_location?: string}, billing?: array{default_payment_method?: string, invoice?: array{custom_fields?: array{name: string, value: string}[], footer?: string, next_sequence?: int, prefix?: string, rendering?: array{amount_tax_display?: string, template?: string}}}, capabilities?: array{automatic_indirect_tax?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}}, shipping?: array{address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, name?: string, phone?: string}, test_clock?: string}, merchant?: array{applied?: bool, bacs_debit_payments?: array{display_name?: string}, branding?: array{icon?: string, logo?: string, primary_color?: string, secondary_color?: string}, capabilities?: array{ach_debit_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}, acss_debit_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}, affirm_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}, afterpay_clearpay_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}, alma_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}, amazon_pay_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}, au_becs_debit_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}, bacs_debit_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}, bancontact_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}, blik_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}, boleto_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}, card_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}, cartes_bancaires_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}, cashapp_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}, eps_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}, fpx_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}, gb_bank_transfer_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}, grabpay_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}, ideal_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}, jcb_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}, jp_bank_transfer_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}, kakao_pay_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}, klarna_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}, konbini_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}, kr_card_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}, link_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}, mobilepay_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}, multibanco_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}, mx_bank_transfer_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}, naver_pay_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}, oxxo_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}, p24_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}, pay_by_bank_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}, payco_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}, paynow_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}, promptpay_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}, revolut_pay_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}, samsung_pay_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}, sepa_bank_transfer_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}, sepa_debit_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}, swish_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}, twint_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}, us_bank_transfer_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}, zip_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}}, card_payments?: array{decline_on?: array{avs_failure?: bool, cvc_failure?: bool}}, konbini_payments?: array{support?: array{email?: string, hours?: array{end_time?: string, start_time?: string}, phone?: string}}, mcc?: string, script_statement_descriptor?: array{kana?: array{descriptor?: string, prefix?: string}, kanji?: array{descriptor?: string, prefix?: string}}, smart_disputes?: array{auto_respond?: array{preference?: string}}, statement_descriptor?: array{descriptor?: string, prefix?: string}, support?: array{address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}, email?: string, phone?: string, url?: string}}, recipient?: array{applied?: bool, capabilities?: array{bank_accounts?: array{instant?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}, local?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}, wire?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}}, cards?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}, crypto_wallets?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}, paper_checks?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}, stripe_balance?: array{stripe_transfers?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}}}, default_outbound_destination?: string}, storer?: array{applied?: bool, capabilities?: array{consumer?: array{holds_currencies?: array{usd?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}}}, financial_addresses?: array{bank_accounts?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}, crypto_wallets?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}}, holds_currencies?: array{eur?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}, gbp?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}, usd?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}, usdc?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}}, inbound_transfers?: array{bank_accounts?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}}, outbound_payments?: array{bank_accounts?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}, cards?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}, crypto_wallets?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}, financial_accounts?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}, paper_checks?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}}, outbound_transfers?: array{bank_accounts?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}, crypto_wallets?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}, financial_accounts?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}}}, high_risk_activities?: string[], high_risk_activities_description?: string, money_services_description?: string, operates_in_prohibited_countries?: bool, participates_in_regulated_activity?: bool, purpose_of_funds?: string, purpose_of_funds_description?: string, regulated_activity?: array{description?: string, license_number?: string, primary_regulatory_authority_country?: string, primary_regulatory_authority_name?: string}, source_of_funds?: string, source_of_funds_description?: string}}, contact_email?: string, contact_phone?: string, dashboard?: string, defaults?: array{currency?: string, locales?: string[], profile?: array{business_url?: string, doing_business_as?: string, product_description?: string}, responsibilities?: array{fees_collector: string, losses_collector: string, requirements_collector?: string}, timezone?: string}, display_name?: string, identity?: array{attestations?: array{directorship_declaration?: array{date?: string, ip?: string, user_agent?: string}, ownership_declaration?: array{date?: string, ip?: string, user_agent?: string}, persons_provided?: array{directors?: bool, executives?: bool, owners?: bool, ownership_exemption_reason?: string}, representative_declaration?: array{date?: string, ip?: string, user_agent?: string}, terms_of_service?: array{account?: array{date?: string, ip?: string, user_agent?: string}, card_creator?: array{commercial?: array{account_holder?: array{date?: string, ip?: string, user_agent?: string}, celtic?: array{apple_pay?: array{date?: string, ip?: string, user_agent?: string}, charge_card?: array{bank_terms?: array{date?: string, ip?: string, user_agent?: string}, platform?: array{date?: string, ip?: string, user_agent?: string}}, spend_card?: array{bank_terms?: array{date?: string, ip?: string, user_agent?: string}, financing_disclosures?: array{date?: string, ip?: string, user_agent?: string}, platform?: array{date?: string, ip?: string, user_agent?: string}}}, cross_river_bank?: array{apple_pay?: array{date?: string, ip?: string, user_agent?: string}, charge_card?: array{bank_terms?: array{date?: string, ip?: string, user_agent?: string}, financing_disclosures?: array{date?: string, ip?: string, user_agent?: string}, platform?: array{date?: string, ip?: string, user_agent?: string}}, prepaid_card?: array{bank_terms?: array{date?: string, ip?: string, user_agent?: string}, platform?: array{date?: string, ip?: string, user_agent?: string}}, spend_card?: array{bank_terms?: array{date?: string, ip?: string, user_agent?: string}, financing_disclosures?: array{date?: string, ip?: string, user_agent?: string}}}, fifth_third?: array{apple_pay?: array{date?: string, ip?: string, user_agent?: string}, charge_card?: array{bank_terms?: array{date?: string, ip?: string, user_agent?: string}, platform?: array{date?: string, ip?: string, user_agent?: string}}}, global_account_holder?: array{date?: string, ip?: string, user_agent?: string}, lead?: array{apple_pay?: array{date?: string, ip?: string, user_agent?: string}, prepaid_card?: array{bank_terms?: array{date?: string, ip?: string, user_agent?: string}, platform?: array{date?: string, ip?: string, user_agent?: string}}}}, consumer?: array{account_holder?: array{date?: string, ip?: string, user_agent?: string}, celtic?: array{apple_pay?: array{date?: string, ip?: string, user_agent?: string}, revolving_credit_card?: array{bank_terms?: array{date?: string, ip?: string, user_agent?: string}, financing_disclosures?: array{date?: string, ip?: string, user_agent?: string}, platform?: array{date?: string, ip?: string, user_agent?: string}}}, cross_river_bank?: array{prepaid_card?: array{bank_terms?: array{date?: string, ip?: string, user_agent?: string}, financing_disclosures?: array{date?: string, ip?: string, user_agent?: string}, platform?: array{date?: string, ip?: string, user_agent?: string}}}, global_account_holder?: array{date?: string, ip?: string, user_agent?: string}, lead?: array{apple_pay?: array{date?: string, ip?: string, user_agent?: string}, debit_card?: array{bank_terms?: array{date?: string, ip?: string, user_agent?: string}, financing_disclosures?: array{date?: string, ip?: string, user_agent?: string}, platform?: array{date?: string, ip?: string, user_agent?: string}}, prepaid_card?: array{bank_terms?: array{date?: string, ip?: string, user_agent?: string}, financing_disclosures?: array{date?: string, ip?: string, user_agent?: string}, platform?: array{date?: string, ip?: string, user_agent?: string}}}}}, consumer_privacy_disclosures?: array{date?: string, ip?: string, user_agent?: string}, consumer_storer?: array{date?: string, ip?: string, user_agent?: string}, crypto_storer?: array{date?: string, ip?: string, user_agent?: string}, storer?: array{date?: string, ip?: string, user_agent?: string}}}, business_details?: array{address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}, annual_revenue?: array{amount?: \Stripe\StripeObject, fiscal_year_end?: string}, compliance_screening_description?: string, documents?: array{bank_account_ownership_verification?: array{files: string[], type: string}, company_license?: array{files: string[], type: string}, company_memorandum_of_association?: array{files: string[], type: string}, company_ministerial_decree?: array{files: string[], type: string}, company_registration_verification?: array{files: string[], type: string}, company_tax_id_verification?: array{files: string[], type: string}, primary_verification?: array{front_back: array{back?: string, front?: string}, type: string}, proof_of_address?: array{files: string[], type: string}, proof_of_registration?: array{files: string[], signer?: array{person: string}, type: string}, proof_of_ultimate_beneficial_ownership?: array{files: string[], signer?: array{person: string}, type: string}}, estimated_worker_count?: int, id_numbers?: array{registrar?: string, type: string, value: string}[], monthly_estimated_revenue?: array{amount?: \Stripe\StripeObject}, phone?: string, registered_name?: string, registration_date?: array{day: int, month: int, year: int}, script_addresses?: array{kana?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}, kanji?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}}, script_names?: array{kana?: array{registered_name?: string}, kanji?: array{registered_name?: string}}, structure?: string}, country?: string, entity_type?: string, individual?: array{additional_addresses?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, purpose: string, state?: string, town?: string}[], additional_names?: array{full_name?: string, given_name?: string, purpose: string, surname?: string}[], address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}, date_of_birth?: array{day: int, month: int, year: int}, documents?: array{company_authorization?: array{files: string[], type: string}, passport?: array{files: string[], type: string}, primary_verification?: array{front_back: array{back?: string, front?: string}, type: string}, secondary_verification?: array{front_back: array{back?: string, front?: string}, type: string}, visa?: array{files: string[], type: string}}, email?: string, given_name?: string, id_numbers?: array{type: string, value: string}[], legal_gender?: string, metadata?: array, nationalities?: string[], phone?: string, political_exposure?: string, relationship?: array{director?: bool, executive?: bool, owner?: bool, percent_ownership?: string, title?: string}, script_addresses?: array{kana?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}, kanji?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}}, script_names?: array{kana?: array{given_name?: string, surname?: string}, kanji?: array{given_name?: string, surname?: string}}, surname?: string}}, include?: string[], metadata?: array} $params + * @param null|array{account_token?: string, configuration?: array{card_creator?: array{applied?: bool, capabilities?: array{commercial?: array{celtic?: array{charge_card?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}, spend_card?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}}, cross_river_bank?: array{charge_card?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}, prepaid_card?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}, spend_card?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}}, fifth_third?: array{charge_card?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}}, lead?: array{prepaid_card?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}}, stripe?: array{charge_card?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}, prepaid_card?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}}}, consumer?: array{celtic?: array{revolving_credit_card?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}}, cross_river_bank?: array{prepaid_card?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}}, lead?: array{debit_card?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}, prepaid_card?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}}}}}, customer?: array{applied?: bool, automatic_indirect_tax?: array{exempt?: string, ip_address?: string, location_source?: string, validate_location?: string}, billing?: array{default_payment_method?: string, invoice?: array{custom_fields?: array{name: string, value: string}[], footer?: string, next_sequence?: int, prefix?: string, rendering?: array{amount_tax_display?: string, template?: string}}}, capabilities?: array{automatic_indirect_tax?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}}, shipping?: array{address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, name?: string, phone?: string}, test_clock?: string}, merchant?: array{applied?: bool, bacs_debit_payments?: array{display_name?: string}, branding?: array{icon?: string, logo?: string, primary_color?: string, secondary_color?: string}, capabilities?: array{ach_debit_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}, acss_debit_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}, affirm_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}, afterpay_clearpay_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}, alma_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}, amazon_pay_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}, au_becs_debit_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}, bacs_debit_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}, bancontact_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}, blik_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}, boleto_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}, card_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}, cartes_bancaires_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}, cashapp_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}, eps_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}, fpx_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}, gb_bank_transfer_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}, grabpay_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}, ideal_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}, jcb_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}, jp_bank_transfer_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}, kakao_pay_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}, klarna_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}, konbini_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}, kr_card_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}, link_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}, mobilepay_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}, multibanco_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}, mx_bank_transfer_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}, naver_pay_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}, oxxo_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}, p24_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}, pay_by_bank_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}, payco_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}, paynow_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}, promptpay_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}, revolut_pay_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}, samsung_pay_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}, sepa_bank_transfer_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}, sepa_debit_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}, sunbit_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}, swish_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}, twint_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}, us_bank_transfer_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}, zip_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}}, card_payments?: array{decline_on?: array{avs_failure?: bool, cvc_failure?: bool}}, konbini_payments?: array{support?: array{email?: string, hours?: array{end_time?: string, start_time?: string}, phone?: string}}, mcc?: string, script_statement_descriptor?: array{kana?: array{descriptor?: string, prefix?: string}, kanji?: array{descriptor?: string, prefix?: string}}, smart_disputes?: array{auto_respond?: array{preference?: string}}, statement_descriptor?: array{descriptor?: string, prefix?: string}, support?: array{address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}, email?: string, phone?: string, url?: string}}, money_manager?: array{applied?: bool, capabilities?: array{business_storage?: array{inbound?: array{aud?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}, cad?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}, eur?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}, gbp?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}, usd?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}, usdc?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}}, outbound?: array{aud?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}, cad?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}, eur?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}, gbp?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}, usd?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}, usdc?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}}}, consumer_storage?: array{inbound?: array{usd?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}, usdc?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}}, outbound?: array{usd?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}, usdc?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}}}, inbound_transfers?: array{bank_accounts?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}}, outbound_payments?: array{bank_accounts?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}, cards?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}, crypto_wallets?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}, financial_accounts?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}, paper_checks?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}}, outbound_transfers?: array{bank_accounts?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}, crypto_wallets?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}, financial_accounts?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}}, received_credits?: array{bank_accounts?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}, crypto_wallets?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}}, received_debits?: array{bank_accounts?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}}}, high_risk_activities?: string[], high_risk_activities_description?: string, money_services_description?: string, operates_in_prohibited_countries?: bool, participates_in_regulated_activity?: bool, purpose_of_funds?: string, purpose_of_funds_description?: string, regulated_activity?: array{description?: string, license_number?: string, primary_regulatory_authority_country?: string, primary_regulatory_authority_name?: string}, source_of_funds?: string, source_of_funds_description?: string}, recipient?: array{applied?: bool, capabilities?: array{bank_accounts?: array{ach?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}, becs?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}, eft?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}, fedwire?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}, fps?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}, instant?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}, local?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}, npp?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}, rtp?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}, sepa_credit?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}, sepa_instant?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}, swift?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}, wire?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}}, cards?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}, crypto_wallets?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}, paper_checks?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}, stripe_balance?: array{stripe_transfers?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}}}, default_outbound_destination?: string}}, contact_email?: string, contact_phone?: string, dashboard?: string, defaults?: array{currency?: string, locales?: string[], profile?: array{business_url?: string, doing_business_as?: string, product_description?: string}, responsibilities?: array{fees_collector: string, losses_collector: string, requirements_collector?: string}, timezone?: string}, display_name?: string, identity?: array{attestations?: array{directorship_declaration?: array{date?: string, ip?: string, user_agent?: string}, ownership_declaration?: array{date?: string, ip?: string, user_agent?: string}, persons_provided?: array{directors?: bool, executives?: bool, owners?: bool, ownership_exemption_reason?: string}, representative_declaration?: array{date?: string, ip?: string, user_agent?: string}, terms_of_service?: array{account?: array{date?: string, ip?: string, user_agent?: string}, card_creator?: array{commercial?: array{account_holder?: array{date?: string, ip?: string, user_agent?: string}, celtic?: array{apple_pay?: array{date?: string, ip?: string, user_agent?: string}, charge_card?: array{bank_terms?: array{date?: string, ip?: string, user_agent?: string}, platform?: array{date?: string, ip?: string, user_agent?: string}}, spend_card?: array{bank_terms?: array{date?: string, ip?: string, user_agent?: string}, financing_disclosures?: array{date?: string, ip?: string, user_agent?: string}, platform?: array{date?: string, ip?: string, user_agent?: string}}}, cross_river_bank?: array{apple_pay?: array{date?: string, ip?: string, user_agent?: string}, charge_card?: array{bank_terms?: array{date?: string, ip?: string, user_agent?: string}, financing_disclosures?: array{date?: string, ip?: string, user_agent?: string}, platform?: array{date?: string, ip?: string, user_agent?: string}}, prepaid_card?: array{bank_terms?: array{date?: string, ip?: string, user_agent?: string}, platform?: array{date?: string, ip?: string, user_agent?: string}}, spend_card?: array{bank_terms?: array{date?: string, ip?: string, user_agent?: string}, financing_disclosures?: array{date?: string, ip?: string, user_agent?: string}}}, fifth_third?: array{apple_pay?: array{date?: string, ip?: string, user_agent?: string}, charge_card?: array{bank_terms?: array{date?: string, ip?: string, user_agent?: string}, platform?: array{date?: string, ip?: string, user_agent?: string}}}, global_account_holder?: array{date?: string, ip?: string, user_agent?: string}, lead?: array{apple_pay?: array{date?: string, ip?: string, user_agent?: string}, prepaid_card?: array{bank_terms?: array{date?: string, ip?: string, user_agent?: string}, platform?: array{date?: string, ip?: string, user_agent?: string}}}}, consumer?: array{account_holder?: array{date?: string, ip?: string, user_agent?: string}, celtic?: array{apple_pay?: array{date?: string, ip?: string, user_agent?: string}, revolving_credit_card?: array{bank_terms?: array{date?: string, ip?: string, user_agent?: string}, financing_disclosures?: array{date?: string, ip?: string, user_agent?: string}, platform?: array{date?: string, ip?: string, user_agent?: string}}}, cross_river_bank?: array{prepaid_card?: array{bank_terms?: array{date?: string, ip?: string, user_agent?: string}, financing_disclosures?: array{date?: string, ip?: string, user_agent?: string}, platform?: array{date?: string, ip?: string, user_agent?: string}}}, global_account_holder?: array{date?: string, ip?: string, user_agent?: string}, lead?: array{apple_pay?: array{date?: string, ip?: string, user_agent?: string}, debit_card?: array{bank_terms?: array{date?: string, ip?: string, user_agent?: string}, financing_disclosures?: array{date?: string, ip?: string, user_agent?: string}, platform?: array{date?: string, ip?: string, user_agent?: string}}, prepaid_card?: array{bank_terms?: array{date?: string, ip?: string, user_agent?: string}, financing_disclosures?: array{date?: string, ip?: string, user_agent?: string}, platform?: array{date?: string, ip?: string, user_agent?: string}}}}}, consumer_money_manager?: array{date?: string, ip?: string, user_agent?: string}, consumer_privacy_disclosures?: array{date?: string, ip?: string, user_agent?: string}, crypto_money_manager?: array{date?: string, ip?: string, user_agent?: string}, money_manager?: array{date?: string, ip?: string, user_agent?: string}}}, business_details?: array{address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}, annual_revenue?: array{amount?: \Stripe\StripeObject, fiscal_year_end?: string}, compliance_screening_description?: string, documents?: array{bank_account_ownership_verification?: array{files: string[], type: string}, company_license?: array{files: string[], type: string}, company_memorandum_of_association?: array{files: string[], type: string}, company_ministerial_decree?: array{files: string[], type: string}, company_registration_verification?: array{files: string[], type: string}, company_tax_id_verification?: array{files: string[], type: string}, primary_verification?: array{front_back: array{back?: string, front?: string}, type: string}, proof_of_address?: array{files: string[], type: string}, proof_of_registration?: array{files: string[], signer?: array{person: string}, type: string}, proof_of_ultimate_beneficial_ownership?: array{files: string[], signer?: array{person: string}, type: string}}, estimated_worker_count?: int, id_numbers?: array{registrar?: string, type: string, value: string}[], monthly_estimated_revenue?: array{amount?: \Stripe\StripeObject}, phone?: string, registered_name?: string, registration_date?: array{day: int, month: int, year: int}, script_addresses?: array{kana?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}, kanji?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}}, script_names?: array{kana?: array{registered_name?: string}, kanji?: array{registered_name?: string}}, structure?: string}, country?: string, entity_type?: string, individual?: array{additional_addresses?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, purpose: string, state?: string, town?: string}[], additional_names?: array{full_name?: string, given_name?: string, purpose: string, surname?: string}[], address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}, date_of_birth?: array{day: int, month: int, year: int}, documents?: array{company_authorization?: array{files: string[], type: string}, passport?: array{files: string[], type: string}, primary_verification?: array{front_back: array{back?: string, front?: string}, type: string}, secondary_verification?: array{front_back: array{back?: string, front?: string}, type: string}, visa?: array{files: string[], type: string}}, email?: string, given_name?: string, id_numbers?: array{type: string, value: string}[], legal_gender?: string, metadata?: array, nationalities?: string[], phone?: string, political_exposure?: string, relationship?: array{director?: bool, executive?: bool, owner?: bool, percent_ownership?: string, title?: string}, script_addresses?: array{kana?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}, kanji?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}}, script_names?: array{kana?: array{given_name?: string, surname?: string}, kanji?: array{given_name?: string, surname?: string}}, surname?: string}}, include?: string[], metadata?: array} $params * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @return \Stripe\V2\Core\Account @@ -7884,7 +9896,127 @@ public function update($id, $params = null, $opts = null) ], ], ], - 'spend_card' => [ + 'spend_card' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'cross_river_bank' => [ + 'kind' => 'object', + 'fields' => [ + 'charge_card' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], + ], + ], + ], + 'prepaid_card' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], + ], + ], + ], + 'spend_card' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'fifth_third' => [ + 'kind' => 'object', + 'fields' => [ + 'charge_card' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'lead' => [ + 'kind' => 'object', + 'fields' => [ + 'prepaid_card' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -7907,7 +10039,7 @@ public function update($id, $params = null, $opts = null) ], ], ], - 'cross_river_bank' => [ + 'stripe' => [ 'kind' => 'object', 'fields' => [ 'charge_card' => [ @@ -7952,7 +10084,17 @@ public function update($id, $params = null, $opts = null) ], ], ], - 'spend_card' => [ + ], + ], + ], + ], + 'consumer' => [ + 'kind' => 'object', + 'fields' => [ + 'celtic' => [ + 'kind' => 'object', + 'fields' => [ + 'revolving_credit_card' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -7975,10 +10117,57 @@ public function update($id, $params = null, $opts = null) ], ], ], - 'fifth_third' => [ + 'cross_river_bank' => [ 'kind' => 'object', 'fields' => [ - 'charge_card' => [ + 'prepaid_card' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'lead' => [ + 'kind' => 'object', + 'fields' => [ + 'debit_card' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], + ], + ], + ], + 'prepaid_card' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -8001,74 +10190,210 @@ public function update($id, $params = null, $opts = null) ], ], ], - 'lead' => [ + ], + ], + ], + ], + ], + ], + 'customer' => [ + 'kind' => 'object', + 'fields' => [ + 'capabilities' => [ + 'kind' => 'object', + 'fields' => [ + 'automatic_indirect_tax' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'merchant' => [ + 'kind' => 'object', + 'fields' => [ + 'capabilities' => [ + 'kind' => 'object', + 'fields' => [ + 'ach_debit_payments' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], + ], + ], + ], + 'acss_debit_payments' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], + ], + ], + ], + 'affirm_payments' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], + ], + ], + ], + 'afterpay_clearpay_payments' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], + ], + ], + ], + 'alma_payments' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], + ], + ], + ], + 'amazon_pay_payments' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], + ], + ], + ], + 'au_becs_debit_payments' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ 'kind' => 'object', 'fields' => [ - 'prepaid_card' => [ + 'psp_migration' => [ 'kind' => 'object', 'fields' => [ - 'protections' => [ - 'kind' => 'object', - 'fields' => [ - 'psp_migration' => [ - 'kind' => 'object', - 'fields' => [ - 'expires_at' => [ - 'kind' => 'int64_string', - ], - 'requested_at' => [ - 'kind' => 'int64_string', - ], - ], - ], - ], + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', ], ], ], ], ], - 'stripe' => [ + ], + ], + 'bacs_debit_payments' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ 'kind' => 'object', 'fields' => [ - 'charge_card' => [ + 'psp_migration' => [ 'kind' => 'object', 'fields' => [ - 'protections' => [ - 'kind' => 'object', - 'fields' => [ - 'psp_migration' => [ - 'kind' => 'object', - 'fields' => [ - 'expires_at' => [ - 'kind' => 'int64_string', - ], - 'requested_at' => [ - 'kind' => 'int64_string', - ], - ], - ], - ], + 'expires_at' => [ + 'kind' => 'int64_string', ], - ], - ], - 'prepaid_card' => [ - 'kind' => 'object', - 'fields' => [ - 'protections' => [ - 'kind' => 'object', - 'fields' => [ - 'psp_migration' => [ - 'kind' => 'object', - 'fields' => [ - 'expires_at' => [ - 'kind' => 'int64_string', - ], - 'requested_at' => [ - 'kind' => 'int64_string', - ], - ], - ], - ], + 'requested_at' => [ + 'kind' => 'int64_string', ], ], ], @@ -8076,103 +10401,83 @@ public function update($id, $params = null, $opts = null) ], ], ], - 'consumer' => [ + 'bancontact_payments' => [ 'kind' => 'object', 'fields' => [ - 'celtic' => [ + 'protections' => [ 'kind' => 'object', 'fields' => [ - 'revolving_credit_card' => [ + 'psp_migration' => [ 'kind' => 'object', 'fields' => [ - 'protections' => [ - 'kind' => 'object', - 'fields' => [ - 'psp_migration' => [ - 'kind' => 'object', - 'fields' => [ - 'expires_at' => [ - 'kind' => 'int64_string', - ], - 'requested_at' => [ - 'kind' => 'int64_string', - ], - ], - ], - ], + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', ], ], ], ], ], - 'cross_river_bank' => [ + ], + ], + 'blik_payments' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ 'kind' => 'object', 'fields' => [ - 'prepaid_card' => [ + 'psp_migration' => [ 'kind' => 'object', 'fields' => [ - 'protections' => [ - 'kind' => 'object', - 'fields' => [ - 'psp_migration' => [ - 'kind' => 'object', - 'fields' => [ - 'expires_at' => [ - 'kind' => 'int64_string', - ], - 'requested_at' => [ - 'kind' => 'int64_string', - ], - ], - ], - ], + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', ], ], ], ], ], - 'lead' => [ + ], + ], + 'boleto_payments' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ 'kind' => 'object', 'fields' => [ - 'debit_card' => [ + 'psp_migration' => [ 'kind' => 'object', 'fields' => [ - 'protections' => [ - 'kind' => 'object', - 'fields' => [ - 'psp_migration' => [ - 'kind' => 'object', - 'fields' => [ - 'expires_at' => [ - 'kind' => 'int64_string', - ], - 'requested_at' => [ - 'kind' => 'int64_string', - ], - ], - ], - ], + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', ], ], ], - 'prepaid_card' => [ + ], + ], + ], + ], + 'card_payments' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ 'kind' => 'object', 'fields' => [ - 'protections' => [ - 'kind' => 'object', - 'fields' => [ - 'psp_migration' => [ - 'kind' => 'object', - 'fields' => [ - 'expires_at' => [ - 'kind' => 'int64_string', - ], - 'requested_at' => [ - 'kind' => 'int64_string', - ], - ], - ], - ], + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', ], ], ], @@ -8180,17 +10485,7 @@ public function update($id, $params = null, $opts = null) ], ], ], - ], - ], - ], - ], - 'customer' => [ - 'kind' => 'object', - 'fields' => [ - 'capabilities' => [ - 'kind' => 'object', - 'fields' => [ - 'automatic_indirect_tax' => [ + 'cartes_bancaires_payments' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -8211,17 +10506,7 @@ public function update($id, $params = null, $opts = null) ], ], ], - ], - ], - ], - ], - 'merchant' => [ - 'kind' => 'object', - 'fields' => [ - 'capabilities' => [ - 'kind' => 'object', - 'fields' => [ - 'ach_debit_payments' => [ + 'cashapp_payments' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -8242,7 +10527,7 @@ public function update($id, $params = null, $opts = null) ], ], ], - 'acss_debit_payments' => [ + 'eps_payments' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -8263,7 +10548,7 @@ public function update($id, $params = null, $opts = null) ], ], ], - 'affirm_payments' => [ + 'fpx_payments' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -8284,7 +10569,7 @@ public function update($id, $params = null, $opts = null) ], ], ], - 'afterpay_clearpay_payments' => [ + 'gb_bank_transfer_payments' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -8305,7 +10590,7 @@ public function update($id, $params = null, $opts = null) ], ], ], - 'alma_payments' => [ + 'grabpay_payments' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -8326,7 +10611,7 @@ public function update($id, $params = null, $opts = null) ], ], ], - 'amazon_pay_payments' => [ + 'ideal_payments' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -8347,7 +10632,7 @@ public function update($id, $params = null, $opts = null) ], ], ], - 'au_becs_debit_payments' => [ + 'jcb_payments' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -8368,7 +10653,7 @@ public function update($id, $params = null, $opts = null) ], ], ], - 'bacs_debit_payments' => [ + 'jp_bank_transfer_payments' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -8389,7 +10674,7 @@ public function update($id, $params = null, $opts = null) ], ], ], - 'bancontact_payments' => [ + 'kakao_pay_payments' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -8410,7 +10695,7 @@ public function update($id, $params = null, $opts = null) ], ], ], - 'blik_payments' => [ + 'klarna_payments' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -8431,7 +10716,7 @@ public function update($id, $params = null, $opts = null) ], ], ], - 'boleto_payments' => [ + 'konbini_payments' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -8452,7 +10737,7 @@ public function update($id, $params = null, $opts = null) ], ], ], - 'card_payments' => [ + 'kr_card_payments' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -8473,7 +10758,7 @@ public function update($id, $params = null, $opts = null) ], ], ], - 'cartes_bancaires_payments' => [ + 'link_payments' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -8494,7 +10779,7 @@ public function update($id, $params = null, $opts = null) ], ], ], - 'cashapp_payments' => [ + 'mobilepay_payments' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -8515,7 +10800,7 @@ public function update($id, $params = null, $opts = null) ], ], ], - 'eps_payments' => [ + 'multibanco_payments' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -8536,7 +10821,7 @@ public function update($id, $params = null, $opts = null) ], ], ], - 'fpx_payments' => [ + 'mx_bank_transfer_payments' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -8557,7 +10842,7 @@ public function update($id, $params = null, $opts = null) ], ], ], - 'gb_bank_transfer_payments' => [ + 'naver_pay_payments' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -8578,7 +10863,7 @@ public function update($id, $params = null, $opts = null) ], ], ], - 'grabpay_payments' => [ + 'oxxo_payments' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -8599,7 +10884,7 @@ public function update($id, $params = null, $opts = null) ], ], ], - 'ideal_payments' => [ + 'p24_payments' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -8620,7 +10905,7 @@ public function update($id, $params = null, $opts = null) ], ], ], - 'jcb_payments' => [ + 'pay_by_bank_payments' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -8641,7 +10926,7 @@ public function update($id, $params = null, $opts = null) ], ], ], - 'jp_bank_transfer_payments' => [ + 'payco_payments' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -8662,7 +10947,7 @@ public function update($id, $params = null, $opts = null) ], ], ], - 'kakao_pay_payments' => [ + 'paynow_payments' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -8683,7 +10968,7 @@ public function update($id, $params = null, $opts = null) ], ], ], - 'klarna_payments' => [ + 'promptpay_payments' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -8704,7 +10989,7 @@ public function update($id, $params = null, $opts = null) ], ], ], - 'konbini_payments' => [ + 'revolut_pay_payments' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -8725,7 +11010,7 @@ public function update($id, $params = null, $opts = null) ], ], ], - 'kr_card_payments' => [ + 'samsung_pay_payments' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -8746,7 +11031,7 @@ public function update($id, $params = null, $opts = null) ], ], ], - 'link_payments' => [ + 'sepa_bank_transfer_payments' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -8767,7 +11052,7 @@ public function update($id, $params = null, $opts = null) ], ], ], - 'mobilepay_payments' => [ + 'sepa_debit_payments' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -8788,20 +11073,25 @@ public function update($id, $params = null, $opts = null) ], ], ], - 'multibanco_payments' => [ + 'stripe_balance' => [ 'kind' => 'object', 'fields' => [ - 'protections' => [ + 'payouts' => [ 'kind' => 'object', 'fields' => [ - 'psp_migration' => [ + 'protections' => [ 'kind' => 'object', 'fields' => [ - 'expires_at' => [ - 'kind' => 'int64_string', - ], - 'requested_at' => [ - 'kind' => 'int64_string', + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], ], ], ], @@ -8809,7 +11099,7 @@ public function update($id, $params = null, $opts = null) ], ], ], - 'mx_bank_transfer_payments' => [ + 'sunbit_payments' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -8830,7 +11120,7 @@ public function update($id, $params = null, $opts = null) ], ], ], - 'naver_pay_payments' => [ + 'swish_payments' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -8851,7 +11141,7 @@ public function update($id, $params = null, $opts = null) ], ], ], - 'oxxo_payments' => [ + 'twint_payments' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -8872,7 +11162,7 @@ public function update($id, $params = null, $opts = null) ], ], ], - 'p24_payments' => [ + 'us_bank_transfer_payments' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -8893,7 +11183,7 @@ public function update($id, $params = null, $opts = null) ], ], ], - 'pay_by_bank_payments' => [ + 'zip_payments' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -8914,62 +11204,276 @@ public function update($id, $params = null, $opts = null) ], ], ], - 'payco_payments' => [ + ], + ], + ], + ], + 'money_manager' => [ + 'kind' => 'object', + 'fields' => [ + 'capabilities' => [ + 'kind' => 'object', + 'fields' => [ + 'business_storage' => [ 'kind' => 'object', 'fields' => [ - 'protections' => [ + 'inbound' => [ 'kind' => 'object', 'fields' => [ - 'psp_migration' => [ + 'aud' => [ 'kind' => 'object', 'fields' => [ - 'expires_at' => [ - 'kind' => 'int64_string', + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], ], - 'requested_at' => [ - 'kind' => 'int64_string', + ], + ], + 'cad' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], + ], + ], + ], + 'eur' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], + ], + ], + ], + 'gbp' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], + ], + ], + ], + 'usd' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], + ], + ], + ], + 'usdc' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'outbound' => [ + 'kind' => 'object', + 'fields' => [ + 'aud' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], + ], + ], + ], + 'cad' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], + ], + ], + ], + 'eur' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], + ], + ], + ], + 'gbp' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], ], ], ], - ], - ], - ], - ], - 'paynow_payments' => [ - 'kind' => 'object', - 'fields' => [ - 'protections' => [ - 'kind' => 'object', - 'fields' => [ - 'psp_migration' => [ + 'usd' => [ 'kind' => 'object', 'fields' => [ - 'expires_at' => [ - 'kind' => 'int64_string', - ], - 'requested_at' => [ - 'kind' => 'int64_string', + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], ], ], ], - ], - ], - ], - ], - 'promptpay_payments' => [ - 'kind' => 'object', - 'fields' => [ - 'protections' => [ - 'kind' => 'object', - 'fields' => [ - 'psp_migration' => [ + 'usdc' => [ 'kind' => 'object', 'fields' => [ - 'expires_at' => [ - 'kind' => 'int64_string', - ], - 'requested_at' => [ - 'kind' => 'int64_string', + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], ], ], ], @@ -8977,83 +11481,98 @@ public function update($id, $params = null, $opts = null) ], ], ], - 'revolut_pay_payments' => [ + 'consumer_storage' => [ 'kind' => 'object', 'fields' => [ - 'protections' => [ + 'inbound' => [ 'kind' => 'object', 'fields' => [ - 'psp_migration' => [ + 'usd' => [ 'kind' => 'object', 'fields' => [ - 'expires_at' => [ - 'kind' => 'int64_string', - ], - 'requested_at' => [ - 'kind' => 'int64_string', + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], ], ], ], - ], - ], - ], - ], - 'samsung_pay_payments' => [ - 'kind' => 'object', - 'fields' => [ - 'protections' => [ - 'kind' => 'object', - 'fields' => [ - 'psp_migration' => [ + 'usdc' => [ 'kind' => 'object', 'fields' => [ - 'expires_at' => [ - 'kind' => 'int64_string', - ], - 'requested_at' => [ - 'kind' => 'int64_string', + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], ], ], ], ], ], - ], - ], - 'sepa_bank_transfer_payments' => [ - 'kind' => 'object', - 'fields' => [ - 'protections' => [ + 'outbound' => [ 'kind' => 'object', 'fields' => [ - 'psp_migration' => [ + 'usd' => [ 'kind' => 'object', 'fields' => [ - 'expires_at' => [ - 'kind' => 'int64_string', - ], - 'requested_at' => [ - 'kind' => 'int64_string', + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], ], ], ], - ], - ], - ], - ], - 'sepa_debit_payments' => [ - 'kind' => 'object', - 'fields' => [ - 'protections' => [ - 'kind' => 'object', - 'fields' => [ - 'psp_migration' => [ + 'usdc' => [ 'kind' => 'object', 'fields' => [ - 'expires_at' => [ - 'kind' => 'int64_string', - ], - 'requested_at' => [ - 'kind' => 'int64_string', + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], ], ], ], @@ -9061,10 +11580,10 @@ public function update($id, $params = null, $opts = null) ], ], ], - 'stripe_balance' => [ + 'inbound_transfers' => [ 'kind' => 'object', 'fields' => [ - 'payouts' => [ + 'bank_accounts' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -9087,104 +11606,52 @@ public function update($id, $params = null, $opts = null) ], ], ], - 'swish_payments' => [ - 'kind' => 'object', - 'fields' => [ - 'protections' => [ - 'kind' => 'object', - 'fields' => [ - 'psp_migration' => [ - 'kind' => 'object', - 'fields' => [ - 'expires_at' => [ - 'kind' => 'int64_string', - ], - 'requested_at' => [ - 'kind' => 'int64_string', - ], - ], - ], - ], - ], - ], - ], - 'twint_payments' => [ - 'kind' => 'object', - 'fields' => [ - 'protections' => [ - 'kind' => 'object', - 'fields' => [ - 'psp_migration' => [ - 'kind' => 'object', - 'fields' => [ - 'expires_at' => [ - 'kind' => 'int64_string', - ], - 'requested_at' => [ - 'kind' => 'int64_string', - ], - ], - ], - ], - ], - ], - ], - 'us_bank_transfer_payments' => [ + 'outbound_payments' => [ 'kind' => 'object', 'fields' => [ - 'protections' => [ + 'bank_accounts' => [ 'kind' => 'object', 'fields' => [ - 'psp_migration' => [ + 'protections' => [ 'kind' => 'object', 'fields' => [ - 'expires_at' => [ - 'kind' => 'int64_string', - ], - 'requested_at' => [ - 'kind' => 'int64_string', + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], ], ], ], ], ], - ], - ], - 'zip_payments' => [ - 'kind' => 'object', - 'fields' => [ - 'protections' => [ + 'cards' => [ 'kind' => 'object', 'fields' => [ - 'psp_migration' => [ + 'protections' => [ 'kind' => 'object', 'fields' => [ - 'expires_at' => [ - 'kind' => 'int64_string', - ], - 'requested_at' => [ - 'kind' => 'int64_string', + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], ], ], ], ], ], - ], - ], - ], - ], - ], - ], - 'recipient' => [ - 'kind' => 'object', - 'fields' => [ - 'capabilities' => [ - 'kind' => 'object', - 'fields' => [ - 'bank_accounts' => [ - 'kind' => 'object', - 'fields' => [ - 'instant' => [ + 'crypto_wallets' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -9205,7 +11672,7 @@ public function update($id, $params = null, $opts = null) ], ], ], - 'local' => [ + 'financial_accounts' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -9226,7 +11693,7 @@ public function update($id, $params = null, $opts = null) ], ], ], - 'wire' => [ + 'paper_checks' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -9249,62 +11716,67 @@ public function update($id, $params = null, $opts = null) ], ], ], - 'cards' => [ + 'outbound_transfers' => [ 'kind' => 'object', 'fields' => [ - 'protections' => [ + 'bank_accounts' => [ 'kind' => 'object', 'fields' => [ - 'psp_migration' => [ + 'protections' => [ 'kind' => 'object', 'fields' => [ - 'expires_at' => [ - 'kind' => 'int64_string', - ], - 'requested_at' => [ - 'kind' => 'int64_string', + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], ], ], ], ], ], - ], - ], - 'crypto_wallets' => [ - 'kind' => 'object', - 'fields' => [ - 'protections' => [ + 'crypto_wallets' => [ 'kind' => 'object', 'fields' => [ - 'psp_migration' => [ + 'protections' => [ 'kind' => 'object', 'fields' => [ - 'expires_at' => [ - 'kind' => 'int64_string', - ], - 'requested_at' => [ - 'kind' => 'int64_string', + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], ], ], ], ], ], - ], - ], - 'paper_checks' => [ - 'kind' => 'object', - 'fields' => [ - 'protections' => [ + 'financial_accounts' => [ 'kind' => 'object', 'fields' => [ - 'psp_migration' => [ + 'protections' => [ 'kind' => 'object', 'fields' => [ - 'expires_at' => [ - 'kind' => 'int64_string', - ], - 'requested_at' => [ - 'kind' => 'int64_string', + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], ], ], ], @@ -9312,10 +11784,10 @@ public function update($id, $params = null, $opts = null) ], ], ], - 'stripe_balance' => [ + 'received_credits' => [ 'kind' => 'object', 'fields' => [ - 'payouts' => [ + 'bank_accounts' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -9336,7 +11808,7 @@ public function update($id, $params = null, $opts = null) ], ], ], - 'stripe_transfers' => [ + 'crypto_wallets' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -9359,38 +11831,23 @@ public function update($id, $params = null, $opts = null) ], ], ], - ], - ], - ], - ], - 'storer' => [ - 'kind' => 'object', - 'fields' => [ - 'capabilities' => [ - 'kind' => 'object', - 'fields' => [ - 'consumer' => [ + 'received_debits' => [ 'kind' => 'object', 'fields' => [ - 'holds_currencies' => [ + 'bank_accounts' => [ 'kind' => 'object', 'fields' => [ - 'usd' => [ + 'protections' => [ 'kind' => 'object', 'fields' => [ - 'protections' => [ + 'psp_migration' => [ 'kind' => 'object', 'fields' => [ - 'psp_migration' => [ - 'kind' => 'object', - 'fields' => [ - 'expires_at' => [ - 'kind' => 'int64_string', - ], - 'requested_at' => [ - 'kind' => 'int64_string', - ], - ], + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', ], ], ], @@ -9400,10 +11857,20 @@ public function update($id, $params = null, $opts = null) ], ], ], - 'financial_addresses' => [ + ], + ], + ], + ], + 'recipient' => [ + 'kind' => 'object', + 'fields' => [ + 'capabilities' => [ + 'kind' => 'object', + 'fields' => [ + 'bank_accounts' => [ 'kind' => 'object', 'fields' => [ - 'bank_accounts' => [ + 'ach' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -9424,7 +11891,7 @@ public function update($id, $params = null, $opts = null) ], ], ], - 'crypto_wallets' => [ + 'becs' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -9445,12 +11912,7 @@ public function update($id, $params = null, $opts = null) ], ], ], - ], - ], - 'holds_currencies' => [ - 'kind' => 'object', - 'fields' => [ - 'eur' => [ + 'eft' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -9471,7 +11933,7 @@ public function update($id, $params = null, $opts = null) ], ], ], - 'gbp' => [ + 'fedwire' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -9492,7 +11954,7 @@ public function update($id, $params = null, $opts = null) ], ], ], - 'usd' => [ + 'fps' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -9513,7 +11975,7 @@ public function update($id, $params = null, $opts = null) ], ], ], - 'usdc' => [ + 'instant' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -9534,12 +11996,7 @@ public function update($id, $params = null, $opts = null) ], ], ], - ], - ], - 'inbound_transfers' => [ - 'kind' => 'object', - 'fields' => [ - 'bank_accounts' => [ + 'local' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -9560,12 +12017,7 @@ public function update($id, $params = null, $opts = null) ], ], ], - ], - ], - 'outbound_payments' => [ - 'kind' => 'object', - 'fields' => [ - 'bank_accounts' => [ + 'npp' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -9586,7 +12038,7 @@ public function update($id, $params = null, $opts = null) ], ], ], - 'cards' => [ + 'rtp' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -9607,7 +12059,7 @@ public function update($id, $params = null, $opts = null) ], ], ], - 'crypto_wallets' => [ + 'sepa_credit' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -9628,7 +12080,7 @@ public function update($id, $params = null, $opts = null) ], ], ], - 'financial_accounts' => [ + 'sepa_instant' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -9649,7 +12101,7 @@ public function update($id, $params = null, $opts = null) ], ], ], - 'paper_checks' => [ + 'swift' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -9670,12 +12122,7 @@ public function update($id, $params = null, $opts = null) ], ], ], - ], - ], - 'outbound_transfers' => [ - 'kind' => 'object', - 'fields' => [ - 'bank_accounts' => [ + 'wire' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -9696,7 +12143,75 @@ public function update($id, $params = null, $opts = null) ], ], ], - 'crypto_wallets' => [ + ], + ], + 'cards' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], + ], + ], + ], + 'crypto_wallets' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], + ], + ], + ], + 'paper_checks' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], + ], + ], + ], + 'stripe_balance' => [ + 'kind' => 'object', + 'fields' => [ + 'payouts' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -9717,7 +12232,7 @@ public function update($id, $params = null, $opts = null) ], ], ], - 'financial_accounts' => [ + 'stripe_transfers' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ diff --git a/lib/Service/V2/Core/AccountTokenService.php b/lib/Service/V2/Core/AccountTokenService.php index 1f26382d4..d4c6b4bdb 100644 --- a/lib/Service/V2/Core/AccountTokenService.php +++ b/lib/Service/V2/Core/AccountTokenService.php @@ -19,7 +19,7 @@ class AccountTokenService extends \Stripe\Service\AbstractService * publishable key. In test mode, you can create account tokens with your secret * key or publishable key. * - * @param null|array{contact_email?: string, contact_phone?: string, display_name?: string, identity?: array{attestations?: array{directorship_declaration?: array{attested?: bool}, ownership_declaration?: array{attested?: bool}, persons_provided?: array{directors?: bool, executives?: bool, owners?: bool, ownership_exemption_reason?: string}, representative_declaration?: array{attested?: bool}, terms_of_service?: array{account?: array{shown_and_accepted?: bool}, card_creator?: array{commercial?: array{account_holder?: array{shown_and_accepted?: bool}, celtic?: array{apple_pay?: array{shown_and_accepted?: bool}, charge_card?: array{bank_terms?: array{shown_and_accepted?: bool}, platform?: array{shown_and_accepted?: bool}}, spend_card?: array{bank_terms?: array{shown_and_accepted?: bool}, financing_disclosures?: array{shown_and_accepted?: bool}, platform?: array{shown_and_accepted?: bool}}}, cross_river_bank?: array{apple_pay?: array{shown_and_accepted?: bool}, charge_card?: array{bank_terms?: array{shown_and_accepted?: bool}, financing_disclosures?: array{shown_and_accepted?: bool}, platform?: array{shown_and_accepted?: bool}}, spend_card?: array{bank_terms?: array{shown_and_accepted?: bool}, financing_disclosures?: array{shown_and_accepted?: bool}}}}}, crypto_storer?: array{shown_and_accepted?: bool}, storer?: array{shown_and_accepted?: bool}}}, business_details?: array{address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}, annual_revenue?: array{amount?: \Stripe\StripeObject, fiscal_year_end?: string}, compliance_screening_description?: string, documents?: array{bank_account_ownership_verification?: array{files: string[], type: string}, company_license?: array{files: string[], type: string}, company_memorandum_of_association?: array{files: string[], type: string}, company_ministerial_decree?: array{files: string[], type: string}, company_registration_verification?: array{files: string[], type: string}, company_tax_id_verification?: array{files: string[], type: string}, primary_verification?: array{front_back: array{back?: string, front?: string}, type: string}, proof_of_address?: array{files: string[], type: string}, proof_of_registration?: array{files: string[], signer?: array{person: string}, type: string}, proof_of_ultimate_beneficial_ownership?: array{files: string[], signer?: array{person: string}, type: string}}, estimated_worker_count?: int, id_numbers?: array{registrar?: string, type: string, value: string}[], monthly_estimated_revenue?: array{amount?: \Stripe\StripeObject}, phone?: string, registered_name?: string, registration_date?: array{day: int, month: int, year: int}, script_addresses?: array{kana?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}, kanji?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}}, script_names?: array{kana?: array{registered_name?: string}, kanji?: array{registered_name?: string}}, structure?: string}, entity_type?: string, individual?: array{additional_addresses?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, purpose: string, state?: string, town?: string}[], additional_names?: array{full_name?: string, given_name?: string, purpose: string, surname?: string}[], address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}, date_of_birth?: array{day: int, month: int, year: int}, documents?: array{company_authorization?: array{files: string[], type: string}, passport?: array{files: string[], type: string}, primary_verification?: array{front_back: array{back?: string, front?: string}, type: string}, secondary_verification?: array{front_back: array{back?: string, front?: string}, type: string}, visa?: array{files: string[], type: string}}, email?: string, given_name?: string, id_numbers?: array{type: string, value: string}[], legal_gender?: string, metadata?: array, nationalities?: string[], phone?: string, political_exposure?: string, relationship?: array{director?: bool, executive?: bool, owner?: bool, percent_ownership?: string, title?: string}, script_addresses?: array{kana?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}, kanji?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}}, script_names?: array{kana?: array{given_name?: string, surname?: string}, kanji?: array{given_name?: string, surname?: string}}, surname?: string}}} $params + * @param null|array{contact_email?: string, contact_phone?: string, display_name?: string, identity?: array{attestations?: array{directorship_declaration?: array{attested?: bool}, ownership_declaration?: array{attested?: bool}, persons_provided?: array{directors?: bool, executives?: bool, owners?: bool, ownership_exemption_reason?: string}, representative_declaration?: array{attested?: bool}, terms_of_service?: array{account?: array{shown_and_accepted?: bool}, card_creator?: array{commercial?: array{account_holder?: array{shown_and_accepted?: bool}, celtic?: array{apple_pay?: array{shown_and_accepted?: bool}, charge_card?: array{bank_terms?: array{shown_and_accepted?: bool}, platform?: array{shown_and_accepted?: bool}}, spend_card?: array{bank_terms?: array{shown_and_accepted?: bool}, financing_disclosures?: array{shown_and_accepted?: bool}, platform?: array{shown_and_accepted?: bool}}}, cross_river_bank?: array{apple_pay?: array{shown_and_accepted?: bool}, charge_card?: array{bank_terms?: array{shown_and_accepted?: bool}, financing_disclosures?: array{shown_and_accepted?: bool}, platform?: array{shown_and_accepted?: bool}}, spend_card?: array{bank_terms?: array{shown_and_accepted?: bool}, financing_disclosures?: array{shown_and_accepted?: bool}}}}}, crypto_money_manager?: array{shown_and_accepted?: bool}, money_manager?: array{shown_and_accepted?: bool}}}, business_details?: array{address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}, annual_revenue?: array{amount?: \Stripe\StripeObject, fiscal_year_end?: string}, compliance_screening_description?: string, documents?: array{bank_account_ownership_verification?: array{files: string[], type: string}, company_license?: array{files: string[], type: string}, company_memorandum_of_association?: array{files: string[], type: string}, company_ministerial_decree?: array{files: string[], type: string}, company_registration_verification?: array{files: string[], type: string}, company_tax_id_verification?: array{files: string[], type: string}, primary_verification?: array{front_back: array{back?: string, front?: string}, type: string}, proof_of_address?: array{files: string[], type: string}, proof_of_registration?: array{files: string[], signer?: array{person: string}, type: string}, proof_of_ultimate_beneficial_ownership?: array{files: string[], signer?: array{person: string}, type: string}}, estimated_worker_count?: int, id_numbers?: array{registrar?: string, type: string, value: string}[], monthly_estimated_revenue?: array{amount?: \Stripe\StripeObject}, phone?: string, registered_name?: string, registration_date?: array{day: int, month: int, year: int}, script_addresses?: array{kana?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}, kanji?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}}, script_names?: array{kana?: array{registered_name?: string}, kanji?: array{registered_name?: string}}, structure?: string}, entity_type?: string, individual?: array{additional_addresses?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, purpose: string, state?: string, town?: string}[], additional_names?: array{full_name?: string, given_name?: string, purpose: string, surname?: string}[], address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}, date_of_birth?: array{day: int, month: int, year: int}, documents?: array{company_authorization?: array{files: string[], type: string}, passport?: array{files: string[], type: string}, primary_verification?: array{front_back: array{back?: string, front?: string}, type: string}, secondary_verification?: array{front_back: array{back?: string, front?: string}, type: string}, visa?: array{files: string[], type: string}}, email?: string, given_name?: string, id_numbers?: array{type: string, value: string}[], legal_gender?: string, metadata?: array, nationalities?: string[], phone?: string, political_exposure?: string, relationship?: array{director?: bool, executive?: bool, owner?: bool, percent_ownership?: string, title?: string}, script_addresses?: array{kana?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}, kanji?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}}, script_names?: array{kana?: array{given_name?: string, surname?: string}, kanji?: array{given_name?: string, surname?: string}}, surname?: string}}} $params * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @return \Stripe\V2\Core\AccountToken diff --git a/lib/Service/V2/Core/BatchJobService.php b/lib/Service/V2/Core/BatchJobService.php index a85e959ce..72fc87aa8 100644 --- a/lib/Service/V2/Core/BatchJobService.php +++ b/lib/Service/V2/Core/BatchJobService.php @@ -136,7 +136,7 @@ public function cancel($id, $params = null, $opts = null) /** * Creates a new batch job. * - * @param null|array{endpoint: array{http_method: string, path: string}, maximum_rps?: int, metadata: array, notification_suppression?: array{scope: string}, skip_validation: bool} $params + * @param null|array{endpoint: array{http_method: string, path: string}, metadata?: array, notification_suppression?: array{scope: string}, skip_validation: bool} $params * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @return \Stripe\V2\Core\BatchJob diff --git a/lib/Service/V2/Core/CoreServiceFactory.php b/lib/Service/V2/Core/CoreServiceFactory.php index a7012617e..603766918 100644 --- a/lib/Service/V2/Core/CoreServiceFactory.php +++ b/lib/Service/V2/Core/CoreServiceFactory.php @@ -18,6 +18,7 @@ * @property EventService $events * @property FeeBatchService $feeBatches * @property FeeEntryService $feeEntries + * @property Health\HealthServiceFactory $health * @property Vault\VaultServiceFactory $vault * // Doc: The end of the section generated from our OpenAPI spec */ @@ -40,6 +41,7 @@ class CoreServiceFactory extends \Stripe\Service\AbstractServiceFactory 'events' => EventService::class, 'feeBatches' => FeeBatchService::class, 'feeEntries' => FeeEntryService::class, + 'health' => Health\HealthServiceFactory::class, 'vault' => Vault\VaultServiceFactory::class, // Class Map: The end of the section generated from our OpenAPI spec ]; diff --git a/lib/Service/V2/Core/Health/AlertService.php b/lib/Service/V2/Core/Health/AlertService.php new file mode 100644 index 000000000..31878a0a3 --- /dev/null +++ b/lib/Service/V2/Core/Health/AlertService.php @@ -0,0 +1,245 @@ + Alerts\HistoryService::class]; + + /** + * Retrieves a list of health alerts. + * + * @param null|array{created?: string, created_gt?: string, created_gte?: string, created_lt?: string, created_lte?: string, limit?: int, severity?: string, status?: string, types?: string[]} $params + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts + * + * @return \Stripe\V2\Collection<\Stripe\V2\Core\Health\Alert> + * + * @throws \Stripe\Exception\ApiErrorException if the request fails + */ + public function all($params = null, $opts = null) + { + return $this->requestCollection('get', '/v2/core/health/alerts', $params, $opts, [ + 'response_schema' => [ + 'kind' => 'object', + 'fields' => [ + 'data' => [ + 'kind' => 'array', + 'element' => [ + 'kind' => 'object', + 'fields' => [ + 'api_error' => [ + 'kind' => 'object', + 'fields' => [ + 'impacted_requests_percentage' => [ + 'kind' => 'decimal_string', + ], + 'top_impacted_accounts' => [ + 'kind' => 'array', + 'element' => [ + 'kind' => 'object', + 'fields' => [ + 'impacted_requests_percentage' => [ + 'kind' => 'decimal_string', + ], + ], + ], + ], + ], + ], + 'api_latency' => [ + 'kind' => 'object', + 'fields' => [ + 'impacted_requests_percentage' => [ + 'kind' => 'decimal_string', + ], + 'top_impacted_accounts' => [ + 'kind' => 'array', + 'element' => [ + 'kind' => 'object', + 'fields' => [ + 'impacted_requests_percentage' => [ + 'kind' => 'decimal_string', + ], + ], + ], + ], + ], + ], + 'authorization_rate_drop' => [ + 'kind' => 'object', + 'fields' => [ + 'current_percentage' => [ + 'kind' => 'decimal_string', + ], + 'previous_percentage' => [ + 'kind' => 'decimal_string', + ], + ], + ], + 'invoice_count_dropped' => [ + 'kind' => 'object', + 'fields' => [ + 'observed_count' => [ + 'kind' => 'decimal_string', + ], + 'threshold_count' => [ + 'kind' => 'decimal_string', + ], + ], + ], + 'payment_method_error' => [ + 'kind' => 'object', + 'fields' => [ + 'impacted_requests_percentage' => [ + 'kind' => 'decimal_string', + ], + 'top_impacted_accounts' => [ + 'kind' => 'array', + 'element' => [ + 'kind' => 'object', + 'fields' => [ + 'impacted_requests_percentage' => [ + 'kind' => 'decimal_string', + ], + ], + ], + ], + ], + ], + 'sepa_debit_delayed' => [ + 'kind' => 'object', + 'fields' => [ + 'impacted_payments_percentage' => [ + 'kind' => 'decimal_string', + ], + ], + ], + ], + ], + ], + ], + ], + ]); + } + + /** + * Retrieves a health alert by ID. + * + * @param string $id + * @param null|array $params + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts + * + * @return \Stripe\V2\Core\Health\Alert + * + * @throws \Stripe\Exception\ApiErrorException if the request fails + */ + public function retrieve($id, $params = null, $opts = null) + { + return $this->request('get', $this->buildPath('/v2/core/health/alerts/%s', $id), $params, $opts, [ + 'response_schema' => [ + 'kind' => 'object', + 'fields' => [ + 'api_error' => [ + 'kind' => 'object', + 'fields' => [ + 'impacted_requests_percentage' => [ + 'kind' => 'decimal_string', + ], + 'top_impacted_accounts' => [ + 'kind' => 'array', + 'element' => [ + 'kind' => 'object', + 'fields' => [ + 'impacted_requests_percentage' => [ + 'kind' => 'decimal_string', + ], + ], + ], + ], + ], + ], + 'api_latency' => [ + 'kind' => 'object', + 'fields' => [ + 'impacted_requests_percentage' => [ + 'kind' => 'decimal_string', + ], + 'top_impacted_accounts' => [ + 'kind' => 'array', + 'element' => [ + 'kind' => 'object', + 'fields' => [ + 'impacted_requests_percentage' => [ + 'kind' => 'decimal_string', + ], + ], + ], + ], + ], + ], + 'authorization_rate_drop' => [ + 'kind' => 'object', + 'fields' => [ + 'current_percentage' => [ + 'kind' => 'decimal_string', + ], + 'previous_percentage' => [ + 'kind' => 'decimal_string', + ], + ], + ], + 'invoice_count_dropped' => [ + 'kind' => 'object', + 'fields' => [ + 'observed_count' => ['kind' => 'decimal_string'], + 'threshold_count' => ['kind' => 'decimal_string'], + ], + ], + 'payment_method_error' => [ + 'kind' => 'object', + 'fields' => [ + 'impacted_requests_percentage' => [ + 'kind' => 'decimal_string', + ], + 'top_impacted_accounts' => [ + 'kind' => 'array', + 'element' => [ + 'kind' => 'object', + 'fields' => [ + 'impacted_requests_percentage' => [ + 'kind' => 'decimal_string', + ], + ], + ], + ], + ], + ], + 'sepa_debit_delayed' => [ + 'kind' => 'object', + 'fields' => [ + 'impacted_payments_percentage' => [ + 'kind' => 'decimal_string', + ], + ], + ], + ], + ], + ]); + } + + protected function getServiceClass($name) + { + return \array_key_exists($name, self::$classMap) ? self::$classMap[$name] : null; + } +} diff --git a/lib/Service/V2/Core/Health/Alerts/HistoryService.php b/lib/Service/V2/Core/Health/Alerts/HistoryService.php new file mode 100644 index 000000000..dfc7f2d29 --- /dev/null +++ b/lib/Service/V2/Core/Health/Alerts/HistoryService.php @@ -0,0 +1,130 @@ + + * + * @throws \Stripe\Exception\ApiErrorException if the request fails + */ + public function all($id, $params = null, $opts = null) + { + return $this->requestCollection('get', $this->buildPath('/v2/core/health/alerts/%s/history', $id), $params, $opts, [ + 'response_schema' => [ + 'kind' => 'object', + 'fields' => [ + 'data' => [ + 'kind' => 'array', + 'element' => [ + 'kind' => 'object', + 'fields' => [ + 'api_error' => [ + 'kind' => 'object', + 'fields' => [ + 'impacted_requests_percentage' => [ + 'kind' => 'decimal_string', + ], + 'top_impacted_accounts' => [ + 'kind' => 'array', + 'element' => [ + 'kind' => 'object', + 'fields' => [ + 'impacted_requests_percentage' => [ + 'kind' => 'decimal_string', + ], + ], + ], + ], + ], + ], + 'api_latency' => [ + 'kind' => 'object', + 'fields' => [ + 'impacted_requests_percentage' => [ + 'kind' => 'decimal_string', + ], + 'top_impacted_accounts' => [ + 'kind' => 'array', + 'element' => [ + 'kind' => 'object', + 'fields' => [ + 'impacted_requests_percentage' => [ + 'kind' => 'decimal_string', + ], + ], + ], + ], + ], + ], + 'authorization_rate_drop' => [ + 'kind' => 'object', + 'fields' => [ + 'current_percentage' => [ + 'kind' => 'decimal_string', + ], + 'previous_percentage' => [ + 'kind' => 'decimal_string', + ], + ], + ], + 'invoice_count_dropped' => [ + 'kind' => 'object', + 'fields' => [ + 'observed_count' => [ + 'kind' => 'decimal_string', + ], + 'threshold_count' => [ + 'kind' => 'decimal_string', + ], + ], + ], + 'payment_method_error' => [ + 'kind' => 'object', + 'fields' => [ + 'impacted_requests_percentage' => [ + 'kind' => 'decimal_string', + ], + 'top_impacted_accounts' => [ + 'kind' => 'array', + 'element' => [ + 'kind' => 'object', + 'fields' => [ + 'impacted_requests_percentage' => [ + 'kind' => 'decimal_string', + ], + ], + ], + ], + ], + ], + 'sepa_debit_delayed' => [ + 'kind' => 'object', + 'fields' => [ + 'impacted_payments_percentage' => [ + 'kind' => 'decimal_string', + ], + ], + ], + ], + ], + ], + ], + ], + ]); + } +} diff --git a/lib/Service/V2/Core/Health/HealthServiceFactory.php b/lib/Service/V2/Core/Health/HealthServiceFactory.php new file mode 100644 index 000000000..864a2b14a --- /dev/null +++ b/lib/Service/V2/Core/Health/HealthServiceFactory.php @@ -0,0 +1,25 @@ + + */ + private static $classMap = [ + 'alerts' => AlertService::class, + ]; + + protected function getServiceClass($name) + { + return \array_key_exists($name, self::$classMap) ? self::$classMap[$name] : null; + } +} diff --git a/lib/Service/V2/Core/Vault/UsBankAccountService.php b/lib/Service/V2/Core/Vault/UsBankAccountService.php index e5140573d..0b5cdf210 100644 --- a/lib/Service/V2/Core/Vault/UsBankAccountService.php +++ b/lib/Service/V2/Core/Vault/UsBankAccountService.php @@ -56,7 +56,7 @@ public function archive($id, $params = null, $opts = null) * * @return \Stripe\V2\Core\Vault\UsBankAccount * - * @throws \Stripe\Exception\ApiErrorException if the request fails + * @throws \Stripe\Exception\ControlledByAlternateResourceException */ public function confirmMicrodeposits($id, $params = null, $opts = null) { @@ -107,7 +107,7 @@ public function retrieve($id, $params = null, $opts = null) * * @return \Stripe\V2\Core\Vault\UsBankAccount * - * @throws \Stripe\Exception\ApiErrorException if the request fails + * @throws \Stripe\Exception\ControlledByAlternateResourceException */ public function sendMicrodeposits($id, $params = null, $opts = null) { diff --git a/lib/Service/V2/MoneyManagement/FinancialAccountService.php b/lib/Service/V2/MoneyManagement/FinancialAccountService.php index 51a9e4013..7809031fc 100644 --- a/lib/Service/V2/MoneyManagement/FinancialAccountService.php +++ b/lib/Service/V2/MoneyManagement/FinancialAccountService.php @@ -22,7 +22,7 @@ class FinancialAccountService extends \Stripe\Service\AbstractService /** * Lists FinancialAccounts in this compartment. * - * @param null|array{include?: string[], limit?: int, status?: string, types?: string[]} $params + * @param null|array{include?: string[], limit?: int, statuses?: string[], types?: string[]} $params * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @return \Stripe\V2\Collection<\Stripe\V2\MoneyManagement\FinancialAccount> diff --git a/lib/Service/V2/MoneyManagement/MoneyManagementServiceFactory.php b/lib/Service/V2/MoneyManagement/MoneyManagementServiceFactory.php index 266f2639d..cfeafa568 100644 --- a/lib/Service/V2/MoneyManagement/MoneyManagementServiceFactory.php +++ b/lib/Service/V2/MoneyManagement/MoneyManagementServiceFactory.php @@ -17,11 +17,13 @@ * @property OutboundPaymentService $outboundPayments * @property OutboundSetupIntentService $outboundSetupIntents * @property OutboundTransferService $outboundTransfers + * @property PayoutIntentService $payoutIntents * @property PayoutMethodService $payoutMethods * @property PayoutMethodsBankAccountSpecService $payoutMethodsBankAccountSpec * @property ReceivedCreditService $receivedCredits * @property ReceivedDebitService $receivedDebits * @property RecipientVerificationService $recipientVerifications + * @property TestHelpers\TestHelpersServiceFactory $testHelpers * @property TransactionEntryService $transactionEntries * @property TransactionService $transactions */ @@ -41,11 +43,13 @@ class MoneyManagementServiceFactory extends \Stripe\Service\AbstractServiceFacto 'outboundPayments' => OutboundPaymentService::class, 'outboundSetupIntents' => OutboundSetupIntentService::class, 'outboundTransfers' => OutboundTransferService::class, + 'payoutIntents' => PayoutIntentService::class, 'payoutMethods' => PayoutMethodService::class, 'payoutMethodsBankAccountSpec' => PayoutMethodsBankAccountSpecService::class, 'receivedCredits' => ReceivedCreditService::class, 'receivedDebits' => ReceivedDebitService::class, 'recipientVerifications' => RecipientVerificationService::class, + 'testHelpers' => TestHelpers\TestHelpersServiceFactory::class, 'transactionEntries' => TransactionEntryService::class, 'transactions' => TransactionService::class, ]; diff --git a/lib/Service/V2/MoneyManagement/OutboundPaymentService.php b/lib/Service/V2/MoneyManagement/OutboundPaymentService.php index 5553604eb..a1b67be81 100644 --- a/lib/Service/V2/MoneyManagement/OutboundPaymentService.php +++ b/lib/Service/V2/MoneyManagement/OutboundPaymentService.php @@ -46,7 +46,7 @@ public function cancel($id, $params = null, $opts = null) /** * Creates an OutboundPayment. * - * @param null|array{amount: \Stripe\StripeObject, delivery_options?: array{bank_account?: string, paper_check?: array{memo?: string, shipping_speed?: string, signature: string}, speed?: string}, description?: string, from: array{currency: string, financial_account: string}, metadata?: array, outbound_payment_quote?: string, purpose?: string, recipient_notification?: array{setting: string}, recipient_verification?: string, statement_descriptor?: string, to: array{currency?: string, payout_method?: string, recipient: string}} $params + * @param null|array{amount: \Stripe\StripeObject, delivery_options?: array{bank_account?: string, paper_check?: array{attachment?: string, memo?: string, shipping_speed?: string, signature: string}, speed?: string}, description?: string, from: array{currency: string, financial_account: string}, metadata?: array, outbound_payment_quote?: string, payout_intent?: string, purpose?: string, recipient_notification?: array{setting: string}, recipient_verification?: string, statement_descriptor?: string, to: array{currency?: string, payout_method?: string, payout_method_options?: array{bank_account?: array{preferred_network_options?: array{ach?: array{submission?: string, transaction_purpose?: string}}, preferred_networks: string[]}}, recipient: string}} $params * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @return \Stripe\V2\MoneyManagement\OutboundPayment diff --git a/lib/Service/V2/MoneyManagement/OutboundTransferService.php b/lib/Service/V2/MoneyManagement/OutboundTransferService.php index cf6b8d436..aac0cbcce 100644 --- a/lib/Service/V2/MoneyManagement/OutboundTransferService.php +++ b/lib/Service/V2/MoneyManagement/OutboundTransferService.php @@ -46,7 +46,7 @@ public function cancel($id, $params = null, $opts = null) /** * Creates an OutboundTransfer. * - * @param null|array{amount: \Stripe\StripeObject, delivery_options?: array{bank_account?: string}, description?: string, from: array{currency: string, financial_account: string}, metadata?: array, recipient_verification?: string, statement_descriptor?: string, to: array{currency?: string, payout_method: string}} $params + * @param null|array{amount: \Stripe\StripeObject, delivery_options?: array{bank_account?: string}, description?: string, from: array{currency: string, financial_account: string}, metadata?: array, recipient_verification?: string, statement_descriptor?: string, to: array{currency?: string, payout_method: string, payout_method_options?: array{bank_account?: array{preferred_networks: string[]}}}} $params * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @return \Stripe\V2\MoneyManagement\OutboundTransfer diff --git a/lib/Service/V2/MoneyManagement/PayoutIntentService.php b/lib/Service/V2/MoneyManagement/PayoutIntentService.php new file mode 100644 index 000000000..92dcba26a --- /dev/null +++ b/lib/Service/V2/MoneyManagement/PayoutIntentService.php @@ -0,0 +1,94 @@ + + * + * @throws \Stripe\Exception\ApiErrorException if the request fails + */ + public function all($params = null, $opts = null) + { + return $this->requestCollection('get', '/v2/money_management/payout_intents', $params, $opts); + } + + /** + * Cancels a PayoutIntent. Only pending PayoutIntents or processing PayoutIntents + * with cancelable OutboundPayment/Transfer can be canceled. + * + * @param string $id + * @param null|array $params + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts + * + * @return \Stripe\V2\MoneyManagement\PayoutIntent + * + * @throws \Stripe\Exception\NotCancelableException + */ + public function cancel($id, $params = null, $opts = null) + { + return $this->request('post', $this->buildPath('/v2/money_management/payout_intents/%s/cancel', $id), $params, $opts); + } + + /** + * Creates a PayoutIntent. + * + * @param null|array{amount: \Stripe\StripeObject, description?: string, from: array{currency: string, financial_account: string}, metadata?: array, recipient_notification?: array{setting: string}, schedule_options?: array{execute_on?: string}, statement_descriptor?: string, to: array{currency?: string, payout_method?: string, payout_method_options?: array{bank_account?: array{preferred_network_options?: array{ach?: array{submission?: string, transaction_purpose?: string}}, preferred_networks: string[]}}, recipient?: string}} $params + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts + * + * @return \Stripe\V2\MoneyManagement\PayoutIntent + * + * @throws \Stripe\Exception\FeatureNotEnabledException + */ + public function create($params = null, $opts = null) + { + return $this->request('post', '/v2/money_management/payout_intents', $params, $opts); + } + + /** + * Retrieves the details of an existing PayoutIntent by passing the unique + * PayoutIntent ID. + * + * @param string $id + * @param null|array $params + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts + * + * @return \Stripe\V2\MoneyManagement\PayoutIntent + * + * @throws \Stripe\Exception\ApiErrorException if the request fails + */ + public function retrieve($id, $params = null, $opts = null) + { + return $this->request('get', $this->buildPath('/v2/money_management/payout_intents/%s', $id), $params, $opts); + } + + /** + * Updates a PayoutIntent. Only pending or requires_action PayoutIntents that are + * editable can be updated. + * + * @param string $id + * @param null|array{amount?: \Stripe\StripeObject, description?: string, from?: array{currency: string, financial_account: string}, metadata?: array, recipient_notification?: array{setting: string}, schedule_options?: array{execute_on?: string}, statement_descriptor?: string, to?: array{currency?: string, payout_method?: string, payout_method_options?: array{bank_account?: array{preferred_network_options?: array{ach?: array{submission?: string, transaction_purpose?: string}}, preferred_networks: string[]}}, recipient?: string}} $params + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts + * + * @return \Stripe\V2\MoneyManagement\PayoutIntent + * + * @throws \Stripe\Exception\FeatureNotEnabledException + */ + public function update($id, $params = null, $opts = null) + { + return $this->request('post', $this->buildPath('/v2/money_management/payout_intents/%s', $id), $params, $opts); + } +} diff --git a/lib/Service/V2/MoneyManagement/TestHelpers/FinancialAddressService.php b/lib/Service/V2/MoneyManagement/TestHelpers/FinancialAddressService.php new file mode 100644 index 000000000..f84b07b58 --- /dev/null +++ b/lib/Service/V2/MoneyManagement/TestHelpers/FinancialAddressService.php @@ -0,0 +1,30 @@ +request('post', $this->buildPath('/v2/money_management/test_helpers/financial_addresses/%s/debit', $id), $params, $opts); + } +} diff --git a/lib/Service/V2/MoneyManagement/TestHelpers/TestHelpersServiceFactory.php b/lib/Service/V2/MoneyManagement/TestHelpers/TestHelpersServiceFactory.php new file mode 100644 index 000000000..278ac260d --- /dev/null +++ b/lib/Service/V2/MoneyManagement/TestHelpers/TestHelpersServiceFactory.php @@ -0,0 +1,25 @@ + + */ + private static $classMap = [ + 'financialAddresses' => FinancialAddressService::class, + ]; + + protected function getServiceClass($name) + { + return \array_key_exists($name, self::$classMap) ? self::$classMap[$name] : null; + } +} diff --git a/lib/StripeEventNotificationHandler.php b/lib/StripeEventNotificationHandler.php index b3e9d2ec6..6741989aa 100644 --- a/lib/StripeEventNotificationHandler.php +++ b/lib/StripeEventNotificationHandler.php @@ -3538,67 +3538,71 @@ public function onV2CoreAccountIncludingConfigurationMerchantUpdated( } /** - * Registers a handler for the "v2.core.account[configuration.recipient].capability_status_updated" event. + * Registers a handler for the "v2.core.account[configuration.money_manager].capability_status_updated" event. * - * @param callable(Events\V2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEvent, StripeClient): void $handler Handles v2.core.account[configuration.recipient].capability_status_updated events + * @param callable(Events\V2CoreAccountIncludingConfigurationMoneyManagerCapabilityStatusUpdatedEvent, StripeClient): void $handler Handles v2.core.account[configuration.money_manager].capability_status_updated events * * @throws Exception\InvalidArgumentException if this event type is already registered * @throws Exception\BadMethodCallException if the `.handle()` method has already been called on this handler. */ - public function onV2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdated( + public function onV2CoreAccountIncludingConfigurationMoneyManagerCapabilityStatusUpdated( $handler ) { $this->register( - 'v2.core.account[configuration.recipient].capability_status_updated', + 'v2.core.account[configuration.money_manager].capability_status_updated', $handler ); } /** - * Registers a handler for the "v2.core.account[configuration.recipient].updated" event. + * Registers a handler for the "v2.core.account[configuration.money_manager].updated" event. * - * @param callable(Events\V2CoreAccountIncludingConfigurationRecipientUpdatedEvent, StripeClient): void $handler Handles v2.core.account[configuration.recipient].updated events + * @param callable(Events\V2CoreAccountIncludingConfigurationMoneyManagerUpdatedEvent, StripeClient): void $handler Handles v2.core.account[configuration.money_manager].updated events * * @throws Exception\InvalidArgumentException if this event type is already registered * @throws Exception\BadMethodCallException if the `.handle()` method has already been called on this handler. */ - public function onV2CoreAccountIncludingConfigurationRecipientUpdated( + public function onV2CoreAccountIncludingConfigurationMoneyManagerUpdated( $handler ) { $this->register( - 'v2.core.account[configuration.recipient].updated', + 'v2.core.account[configuration.money_manager].updated', $handler ); } /** - * Registers a handler for the "v2.core.account[configuration.storer].capability_status_updated" event. + * Registers a handler for the "v2.core.account[configuration.recipient].capability_status_updated" event. * - * @param callable(Events\V2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEvent, StripeClient): void $handler Handles v2.core.account[configuration.storer].capability_status_updated events + * @param callable(Events\V2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEvent, StripeClient): void $handler Handles v2.core.account[configuration.recipient].capability_status_updated events * * @throws Exception\InvalidArgumentException if this event type is already registered * @throws Exception\BadMethodCallException if the `.handle()` method has already been called on this handler. */ - public function onV2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdated( + public function onV2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdated( $handler ) { $this->register( - 'v2.core.account[configuration.storer].capability_status_updated', + 'v2.core.account[configuration.recipient].capability_status_updated', $handler ); } /** - * Registers a handler for the "v2.core.account[configuration.storer].updated" event. + * Registers a handler for the "v2.core.account[configuration.recipient].updated" event. * - * @param callable(Events\V2CoreAccountIncludingConfigurationStorerUpdatedEvent, StripeClient): void $handler Handles v2.core.account[configuration.storer].updated events + * @param callable(Events\V2CoreAccountIncludingConfigurationRecipientUpdatedEvent, StripeClient): void $handler Handles v2.core.account[configuration.recipient].updated events * * @throws Exception\InvalidArgumentException if this event type is already registered * @throws Exception\BadMethodCallException if the `.handle()` method has already been called on this handler. */ - public function onV2CoreAccountIncludingConfigurationStorerUpdated($handler) - { - $this->register('v2.core.account[configuration.storer].updated', $handler); + public function onV2CoreAccountIncludingConfigurationRecipientUpdated( + $handler + ) { + $this->register( + 'v2.core.account[configuration.recipient].updated', + $handler + ); } /** @@ -4659,6 +4663,45 @@ public function onV2MoneyManagementAdjustmentCreated($handler) $this->register('v2.money_management.adjustment.created', $handler); } + /** + * Registers a handler for the "v2.money_management.debit_dispute.failed" event. + * + * @param callable(Events\V2MoneyManagementDebitDisputeFailedEvent, StripeClient): void $handler Handles v2.money_management.debit_dispute.failed events + * + * @throws Exception\InvalidArgumentException if this event type is already registered + * @throws Exception\BadMethodCallException if the `.handle()` method has already been called on this handler. + */ + public function onV2MoneyManagementDebitDisputeFailed($handler) + { + $this->register('v2.money_management.debit_dispute.failed', $handler); + } + + /** + * Registers a handler for the "v2.money_management.debit_dispute.submitted" event. + * + * @param callable(Events\V2MoneyManagementDebitDisputeSubmittedEvent, StripeClient): void $handler Handles v2.money_management.debit_dispute.submitted events + * + * @throws Exception\InvalidArgumentException if this event type is already registered + * @throws Exception\BadMethodCallException if the `.handle()` method has already been called on this handler. + */ + public function onV2MoneyManagementDebitDisputeSubmitted($handler) + { + $this->register('v2.money_management.debit_dispute.submitted', $handler); + } + + /** + * Registers a handler for the "v2.money_management.debit_dispute.succeeded" event. + * + * @param callable(Events\V2MoneyManagementDebitDisputeSucceededEvent, StripeClient): void $handler Handles v2.money_management.debit_dispute.succeeded events + * + * @throws Exception\InvalidArgumentException if this event type is already registered + * @throws Exception\BadMethodCallException if the `.handle()` method has already been called on this handler. + */ + public function onV2MoneyManagementDebitDisputeSucceeded($handler) + { + $this->register('v2.money_management.debit_dispute.succeeded', $handler); + } + /** * Registers a handler for the "v2.money_management.financial_account.created" event. * @@ -4907,6 +4950,22 @@ public function onV2MoneyManagementOutboundPaymentReturned($handler) $this->register('v2.money_management.outbound_payment.returned', $handler); } + /** + * Registers a handler for the "v2.money_management.outbound_payment.under_review" event. + * + * @param callable(Events\V2MoneyManagementOutboundPaymentUnderReviewEvent, StripeClient): void $handler Handles v2.money_management.outbound_payment.under_review events + * + * @throws Exception\InvalidArgumentException if this event type is already registered + * @throws Exception\BadMethodCallException if the `.handle()` method has already been called on this handler. + */ + public function onV2MoneyManagementOutboundPaymentUnderReview($handler) + { + $this->register( + 'v2.money_management.outbound_payment.under_review', + $handler + ); + } + /** * Registers a handler for the "v2.money_management.outbound_payment.updated" event. * @@ -4985,6 +5044,22 @@ public function onV2MoneyManagementOutboundTransferReturned($handler) $this->register('v2.money_management.outbound_transfer.returned', $handler); } + /** + * Registers a handler for the "v2.money_management.outbound_transfer.under_review" event. + * + * @param callable(Events\V2MoneyManagementOutboundTransferUnderReviewEvent, StripeClient): void $handler Handles v2.money_management.outbound_transfer.under_review events + * + * @throws Exception\InvalidArgumentException if this event type is already registered + * @throws Exception\BadMethodCallException if the `.handle()` method has already been called on this handler. + */ + public function onV2MoneyManagementOutboundTransferUnderReview($handler) + { + $this->register( + 'v2.money_management.outbound_transfer.under_review', + $handler + ); + } + /** * Registers a handler for the "v2.money_management.outbound_transfer.updated" event. * diff --git a/lib/Util/EventNotificationTypes.php b/lib/Util/EventNotificationTypes.php index d81c39f31..fa5d967c3 100644 --- a/lib/Util/EventNotificationTypes.php +++ b/lib/Util/EventNotificationTypes.php @@ -261,10 +261,10 @@ class EventNotificationTypes \Stripe\Events\V2CoreAccountIncludingConfigurationCustomerUpdatedEventNotification::LOOKUP_TYPE => \Stripe\Events\V2CoreAccountIncludingConfigurationCustomerUpdatedEventNotification::class, \Stripe\Events\V2CoreAccountIncludingConfigurationMerchantCapabilityStatusUpdatedEventNotification::LOOKUP_TYPE => \Stripe\Events\V2CoreAccountIncludingConfigurationMerchantCapabilityStatusUpdatedEventNotification::class, \Stripe\Events\V2CoreAccountIncludingConfigurationMerchantUpdatedEventNotification::LOOKUP_TYPE => \Stripe\Events\V2CoreAccountIncludingConfigurationMerchantUpdatedEventNotification::class, + \Stripe\Events\V2CoreAccountIncludingConfigurationMoneyManagerCapabilityStatusUpdatedEventNotification::LOOKUP_TYPE => \Stripe\Events\V2CoreAccountIncludingConfigurationMoneyManagerCapabilityStatusUpdatedEventNotification::class, + \Stripe\Events\V2CoreAccountIncludingConfigurationMoneyManagerUpdatedEventNotification::LOOKUP_TYPE => \Stripe\Events\V2CoreAccountIncludingConfigurationMoneyManagerUpdatedEventNotification::class, \Stripe\Events\V2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEventNotification::LOOKUP_TYPE => \Stripe\Events\V2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEventNotification::class, \Stripe\Events\V2CoreAccountIncludingConfigurationRecipientUpdatedEventNotification::LOOKUP_TYPE => \Stripe\Events\V2CoreAccountIncludingConfigurationRecipientUpdatedEventNotification::class, - \Stripe\Events\V2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEventNotification::LOOKUP_TYPE => \Stripe\Events\V2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEventNotification::class, - \Stripe\Events\V2CoreAccountIncludingConfigurationStorerUpdatedEventNotification::LOOKUP_TYPE => \Stripe\Events\V2CoreAccountIncludingConfigurationStorerUpdatedEventNotification::class, \Stripe\Events\V2CoreAccountIncludingDefaultsUpdatedEventNotification::LOOKUP_TYPE => \Stripe\Events\V2CoreAccountIncludingDefaultsUpdatedEventNotification::class, \Stripe\Events\V2CoreAccountIncludingFutureRequirementsUpdatedEventNotification::LOOKUP_TYPE => \Stripe\Events\V2CoreAccountIncludingFutureRequirementsUpdatedEventNotification::class, \Stripe\Events\V2CoreAccountIncludingIdentityUpdatedEventNotification::LOOKUP_TYPE => \Stripe\Events\V2CoreAccountIncludingIdentityUpdatedEventNotification::class, @@ -344,6 +344,9 @@ class EventNotificationTypes \Stripe\Events\V2IamStripeAccessGrantRequestedEventNotification::LOOKUP_TYPE => \Stripe\Events\V2IamStripeAccessGrantRequestedEventNotification::class, \Stripe\Events\V2IamStripeAccessGrantUpdatedEventNotification::LOOKUP_TYPE => \Stripe\Events\V2IamStripeAccessGrantUpdatedEventNotification::class, \Stripe\Events\V2MoneyManagementAdjustmentCreatedEventNotification::LOOKUP_TYPE => \Stripe\Events\V2MoneyManagementAdjustmentCreatedEventNotification::class, + \Stripe\Events\V2MoneyManagementDebitDisputeFailedEventNotification::LOOKUP_TYPE => \Stripe\Events\V2MoneyManagementDebitDisputeFailedEventNotification::class, + \Stripe\Events\V2MoneyManagementDebitDisputeSubmittedEventNotification::LOOKUP_TYPE => \Stripe\Events\V2MoneyManagementDebitDisputeSubmittedEventNotification::class, + \Stripe\Events\V2MoneyManagementDebitDisputeSucceededEventNotification::LOOKUP_TYPE => \Stripe\Events\V2MoneyManagementDebitDisputeSucceededEventNotification::class, \Stripe\Events\V2MoneyManagementFinancialAccountCreatedEventNotification::LOOKUP_TYPE => \Stripe\Events\V2MoneyManagementFinancialAccountCreatedEventNotification::class, \Stripe\Events\V2MoneyManagementFinancialAccountUpdatedEventNotification::LOOKUP_TYPE => \Stripe\Events\V2MoneyManagementFinancialAccountUpdatedEventNotification::class, \Stripe\Events\V2MoneyManagementFinancialAccountStatementCreatedEventNotification::LOOKUP_TYPE => \Stripe\Events\V2MoneyManagementFinancialAccountStatementCreatedEventNotification::class, @@ -361,12 +364,14 @@ class EventNotificationTypes \Stripe\Events\V2MoneyManagementOutboundPaymentFailedEventNotification::LOOKUP_TYPE => \Stripe\Events\V2MoneyManagementOutboundPaymentFailedEventNotification::class, \Stripe\Events\V2MoneyManagementOutboundPaymentPostedEventNotification::LOOKUP_TYPE => \Stripe\Events\V2MoneyManagementOutboundPaymentPostedEventNotification::class, \Stripe\Events\V2MoneyManagementOutboundPaymentReturnedEventNotification::LOOKUP_TYPE => \Stripe\Events\V2MoneyManagementOutboundPaymentReturnedEventNotification::class, + \Stripe\Events\V2MoneyManagementOutboundPaymentUnderReviewEventNotification::LOOKUP_TYPE => \Stripe\Events\V2MoneyManagementOutboundPaymentUnderReviewEventNotification::class, \Stripe\Events\V2MoneyManagementOutboundPaymentUpdatedEventNotification::LOOKUP_TYPE => \Stripe\Events\V2MoneyManagementOutboundPaymentUpdatedEventNotification::class, \Stripe\Events\V2MoneyManagementOutboundTransferCanceledEventNotification::LOOKUP_TYPE => \Stripe\Events\V2MoneyManagementOutboundTransferCanceledEventNotification::class, \Stripe\Events\V2MoneyManagementOutboundTransferCreatedEventNotification::LOOKUP_TYPE => \Stripe\Events\V2MoneyManagementOutboundTransferCreatedEventNotification::class, \Stripe\Events\V2MoneyManagementOutboundTransferFailedEventNotification::LOOKUP_TYPE => \Stripe\Events\V2MoneyManagementOutboundTransferFailedEventNotification::class, \Stripe\Events\V2MoneyManagementOutboundTransferPostedEventNotification::LOOKUP_TYPE => \Stripe\Events\V2MoneyManagementOutboundTransferPostedEventNotification::class, \Stripe\Events\V2MoneyManagementOutboundTransferReturnedEventNotification::LOOKUP_TYPE => \Stripe\Events\V2MoneyManagementOutboundTransferReturnedEventNotification::class, + \Stripe\Events\V2MoneyManagementOutboundTransferUnderReviewEventNotification::LOOKUP_TYPE => \Stripe\Events\V2MoneyManagementOutboundTransferUnderReviewEventNotification::class, \Stripe\Events\V2MoneyManagementOutboundTransferUpdatedEventNotification::LOOKUP_TYPE => \Stripe\Events\V2MoneyManagementOutboundTransferUpdatedEventNotification::class, \Stripe\Events\V2MoneyManagementPayoutMethodCreatedEventNotification::LOOKUP_TYPE => \Stripe\Events\V2MoneyManagementPayoutMethodCreatedEventNotification::class, \Stripe\Events\V2MoneyManagementPayoutMethodUpdatedEventNotification::LOOKUP_TYPE => \Stripe\Events\V2MoneyManagementPayoutMethodUpdatedEventNotification::class, diff --git a/lib/Util/EventTypes.php b/lib/Util/EventTypes.php index 53b37312d..aeb10b8e3 100644 --- a/lib/Util/EventTypes.php +++ b/lib/Util/EventTypes.php @@ -259,10 +259,10 @@ class EventTypes \Stripe\Events\V2CoreAccountIncludingConfigurationCustomerUpdatedEvent::LOOKUP_TYPE => \Stripe\Events\V2CoreAccountIncludingConfigurationCustomerUpdatedEvent::class, \Stripe\Events\V2CoreAccountIncludingConfigurationMerchantCapabilityStatusUpdatedEvent::LOOKUP_TYPE => \Stripe\Events\V2CoreAccountIncludingConfigurationMerchantCapabilityStatusUpdatedEvent::class, \Stripe\Events\V2CoreAccountIncludingConfigurationMerchantUpdatedEvent::LOOKUP_TYPE => \Stripe\Events\V2CoreAccountIncludingConfigurationMerchantUpdatedEvent::class, + \Stripe\Events\V2CoreAccountIncludingConfigurationMoneyManagerCapabilityStatusUpdatedEvent::LOOKUP_TYPE => \Stripe\Events\V2CoreAccountIncludingConfigurationMoneyManagerCapabilityStatusUpdatedEvent::class, + \Stripe\Events\V2CoreAccountIncludingConfigurationMoneyManagerUpdatedEvent::LOOKUP_TYPE => \Stripe\Events\V2CoreAccountIncludingConfigurationMoneyManagerUpdatedEvent::class, \Stripe\Events\V2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEvent::LOOKUP_TYPE => \Stripe\Events\V2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEvent::class, \Stripe\Events\V2CoreAccountIncludingConfigurationRecipientUpdatedEvent::LOOKUP_TYPE => \Stripe\Events\V2CoreAccountIncludingConfigurationRecipientUpdatedEvent::class, - \Stripe\Events\V2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEvent::LOOKUP_TYPE => \Stripe\Events\V2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEvent::class, - \Stripe\Events\V2CoreAccountIncludingConfigurationStorerUpdatedEvent::LOOKUP_TYPE => \Stripe\Events\V2CoreAccountIncludingConfigurationStorerUpdatedEvent::class, \Stripe\Events\V2CoreAccountIncludingDefaultsUpdatedEvent::LOOKUP_TYPE => \Stripe\Events\V2CoreAccountIncludingDefaultsUpdatedEvent::class, \Stripe\Events\V2CoreAccountIncludingFutureRequirementsUpdatedEvent::LOOKUP_TYPE => \Stripe\Events\V2CoreAccountIncludingFutureRequirementsUpdatedEvent::class, \Stripe\Events\V2CoreAccountIncludingIdentityUpdatedEvent::LOOKUP_TYPE => \Stripe\Events\V2CoreAccountIncludingIdentityUpdatedEvent::class, @@ -342,6 +342,9 @@ class EventTypes \Stripe\Events\V2IamStripeAccessGrantRequestedEvent::LOOKUP_TYPE => \Stripe\Events\V2IamStripeAccessGrantRequestedEvent::class, \Stripe\Events\V2IamStripeAccessGrantUpdatedEvent::LOOKUP_TYPE => \Stripe\Events\V2IamStripeAccessGrantUpdatedEvent::class, \Stripe\Events\V2MoneyManagementAdjustmentCreatedEvent::LOOKUP_TYPE => \Stripe\Events\V2MoneyManagementAdjustmentCreatedEvent::class, + \Stripe\Events\V2MoneyManagementDebitDisputeFailedEvent::LOOKUP_TYPE => \Stripe\Events\V2MoneyManagementDebitDisputeFailedEvent::class, + \Stripe\Events\V2MoneyManagementDebitDisputeSubmittedEvent::LOOKUP_TYPE => \Stripe\Events\V2MoneyManagementDebitDisputeSubmittedEvent::class, + \Stripe\Events\V2MoneyManagementDebitDisputeSucceededEvent::LOOKUP_TYPE => \Stripe\Events\V2MoneyManagementDebitDisputeSucceededEvent::class, \Stripe\Events\V2MoneyManagementFinancialAccountCreatedEvent::LOOKUP_TYPE => \Stripe\Events\V2MoneyManagementFinancialAccountCreatedEvent::class, \Stripe\Events\V2MoneyManagementFinancialAccountUpdatedEvent::LOOKUP_TYPE => \Stripe\Events\V2MoneyManagementFinancialAccountUpdatedEvent::class, \Stripe\Events\V2MoneyManagementFinancialAccountStatementCreatedEvent::LOOKUP_TYPE => \Stripe\Events\V2MoneyManagementFinancialAccountStatementCreatedEvent::class, @@ -359,12 +362,14 @@ class EventTypes \Stripe\Events\V2MoneyManagementOutboundPaymentFailedEvent::LOOKUP_TYPE => \Stripe\Events\V2MoneyManagementOutboundPaymentFailedEvent::class, \Stripe\Events\V2MoneyManagementOutboundPaymentPostedEvent::LOOKUP_TYPE => \Stripe\Events\V2MoneyManagementOutboundPaymentPostedEvent::class, \Stripe\Events\V2MoneyManagementOutboundPaymentReturnedEvent::LOOKUP_TYPE => \Stripe\Events\V2MoneyManagementOutboundPaymentReturnedEvent::class, + \Stripe\Events\V2MoneyManagementOutboundPaymentUnderReviewEvent::LOOKUP_TYPE => \Stripe\Events\V2MoneyManagementOutboundPaymentUnderReviewEvent::class, \Stripe\Events\V2MoneyManagementOutboundPaymentUpdatedEvent::LOOKUP_TYPE => \Stripe\Events\V2MoneyManagementOutboundPaymentUpdatedEvent::class, \Stripe\Events\V2MoneyManagementOutboundTransferCanceledEvent::LOOKUP_TYPE => \Stripe\Events\V2MoneyManagementOutboundTransferCanceledEvent::class, \Stripe\Events\V2MoneyManagementOutboundTransferCreatedEvent::LOOKUP_TYPE => \Stripe\Events\V2MoneyManagementOutboundTransferCreatedEvent::class, \Stripe\Events\V2MoneyManagementOutboundTransferFailedEvent::LOOKUP_TYPE => \Stripe\Events\V2MoneyManagementOutboundTransferFailedEvent::class, \Stripe\Events\V2MoneyManagementOutboundTransferPostedEvent::LOOKUP_TYPE => \Stripe\Events\V2MoneyManagementOutboundTransferPostedEvent::class, \Stripe\Events\V2MoneyManagementOutboundTransferReturnedEvent::LOOKUP_TYPE => \Stripe\Events\V2MoneyManagementOutboundTransferReturnedEvent::class, + \Stripe\Events\V2MoneyManagementOutboundTransferUnderReviewEvent::LOOKUP_TYPE => \Stripe\Events\V2MoneyManagementOutboundTransferUnderReviewEvent::class, \Stripe\Events\V2MoneyManagementOutboundTransferUpdatedEvent::LOOKUP_TYPE => \Stripe\Events\V2MoneyManagementOutboundTransferUpdatedEvent::class, \Stripe\Events\V2MoneyManagementPayoutMethodCreatedEvent::LOOKUP_TYPE => \Stripe\Events\V2MoneyManagementPayoutMethodCreatedEvent::class, \Stripe\Events\V2MoneyManagementPayoutMethodUpdatedEvent::LOOKUP_TYPE => \Stripe\Events\V2MoneyManagementPayoutMethodUpdatedEvent::class, diff --git a/lib/Util/ObjectTypes.php b/lib/Util/ObjectTypes.php index 49f013117..c88187c03 100644 --- a/lib/Util/ObjectTypes.php +++ b/lib/Util/ObjectTypes.php @@ -263,6 +263,8 @@ class ObjectTypes \Stripe\V2\Core\EventDestination::OBJECT_NAME => \Stripe\V2\Core\EventDestination::class, \Stripe\V2\Core\FeeBatch::OBJECT_NAME => \Stripe\V2\Core\FeeBatch::class, \Stripe\V2\Core\FeeEntry::OBJECT_NAME => \Stripe\V2\Core\FeeEntry::class, + \Stripe\V2\Core\Health\Alert::OBJECT_NAME => \Stripe\V2\Core\Health\Alert::class, + \Stripe\V2\Core\Health\AlertHistoryEntry::OBJECT_NAME => \Stripe\V2\Core\Health\AlertHistoryEntry::class, \Stripe\V2\Core\Vault\GbBankAccount::OBJECT_NAME => \Stripe\V2\Core\Vault\GbBankAccount::class, \Stripe\V2\Core\Vault\UsBankAccount::OBJECT_NAME => \Stripe\V2\Core\Vault\UsBankAccount::class, \Stripe\V2\Data\Analytics\MetricQueryResult::OBJECT_NAME => \Stripe\V2\Data\Analytics\MetricQueryResult::class, @@ -279,11 +281,13 @@ class ObjectTypes \Stripe\V2\MoneyManagement\FinancialAccount::OBJECT_NAME => \Stripe\V2\MoneyManagement\FinancialAccount::class, \Stripe\V2\MoneyManagement\FinancialAccountStatement::OBJECT_NAME => \Stripe\V2\MoneyManagement\FinancialAccountStatement::class, \Stripe\V2\MoneyManagement\FinancialAddress::OBJECT_NAME => \Stripe\V2\MoneyManagement\FinancialAddress::class, + \Stripe\V2\MoneyManagement\FinancialAddressDebitSimulation::OBJECT_NAME => \Stripe\V2\MoneyManagement\FinancialAddressDebitSimulation::class, \Stripe\V2\MoneyManagement\InboundTransfer::OBJECT_NAME => \Stripe\V2\MoneyManagement\InboundTransfer::class, \Stripe\V2\MoneyManagement\OutboundPayment::OBJECT_NAME => \Stripe\V2\MoneyManagement\OutboundPayment::class, \Stripe\V2\MoneyManagement\OutboundPaymentQuote::OBJECT_NAME => \Stripe\V2\MoneyManagement\OutboundPaymentQuote::class, \Stripe\V2\MoneyManagement\OutboundSetupIntent::OBJECT_NAME => \Stripe\V2\MoneyManagement\OutboundSetupIntent::class, \Stripe\V2\MoneyManagement\OutboundTransfer::OBJECT_NAME => \Stripe\V2\MoneyManagement\OutboundTransfer::class, + \Stripe\V2\MoneyManagement\PayoutIntent::OBJECT_NAME => \Stripe\V2\MoneyManagement\PayoutIntent::class, \Stripe\V2\MoneyManagement\PayoutMethod::OBJECT_NAME => \Stripe\V2\MoneyManagement\PayoutMethod::class, \Stripe\V2\MoneyManagement\PayoutMethodsBankAccountSpec::OBJECT_NAME => \Stripe\V2\MoneyManagement\PayoutMethodsBankAccountSpec::class, \Stripe\V2\MoneyManagement\ReceivedCredit::OBJECT_NAME => \Stripe\V2\MoneyManagement\ReceivedCredit::class, diff --git a/lib/V2/Billing/MeterEvent.php b/lib/V2/Billing/MeterEvent.php index b7840e4f6..e75e41080 100644 --- a/lib/V2/Billing/MeterEvent.php +++ b/lib/V2/Billing/MeterEvent.php @@ -10,9 +10,9 @@ * @property string $object String representing the object's type. Objects of the same type share the same value of the object field. * @property int $created The creation time of this meter event. * @property string $event_name The name of the meter event. Corresponds with the event_name field on a meter. - * @property string $identifier A unique identifier for the event. If not provided, one will be generated. We recommend using a globally unique identifier for this. We’ll enforce uniqueness within a rolling 24 hour period. + * @property string $identifier A unique identifier for the event. If not provided, one will be generated. We recommend using a globally unique identifier for this. We'll enforce uniqueness within a rolling 24 hour period. * @property bool $livemode Has the value true if the object exists in live mode or the value false if the object exists in test mode. - * @property \Stripe\StripeObject $payload The payload of the event. This must contain the fields corresponding to a meter’s customer_mapping.event_payload_key (default is stripe_customer_id) and value_settings.event_payload_key (default is value). Read more about the payload.. + * @property \Stripe\StripeObject $payload The payload of the event. This must contain the fields corresponding to a meter's customer_mapping.event_payload_key (default is stripe_customer_id) and value_settings.event_payload_key (default is value). Read more about the payload.. * @property int $timestamp The time of the event. Must be within the past 35 calendar days or up to 5 minutes in the future. Defaults to current timestamp if not specified. */ class MeterEvent extends \Stripe\ApiResource diff --git a/lib/V2/Billing/MeterEventAdjustment.php b/lib/V2/Billing/MeterEventAdjustment.php index fd473e284..b9b077237 100644 --- a/lib/V2/Billing/MeterEventAdjustment.php +++ b/lib/V2/Billing/MeterEventAdjustment.php @@ -13,7 +13,7 @@ * @property int $created The time the adjustment was created. * @property string $event_name The name of the meter event. Corresponds with the event_name field on a meter. * @property bool $livemode Has the value true if the object exists in live mode or the value false if the object exists in test mode. - * @property string $status Open Enum. The meter event adjustment’s status. + * @property string $status Open Enum. The meter event adjustment's status. * @property string $type Open Enum. Specifies the type of cancellation. Currently supports canceling a single event. */ class MeterEventAdjustment extends \Stripe\ApiResource diff --git a/lib/V2/Commerce/ProductCatalogImport.php b/lib/V2/Commerce/ProductCatalogImport.php index caa07bc5b..e2a6b82a3 100644 --- a/lib/V2/Commerce/ProductCatalogImport.php +++ b/lib/V2/Commerce/ProductCatalogImport.php @@ -13,6 +13,7 @@ * @property string $feed_type The type of feed data being imported into the product catalog. * @property bool $livemode Has the value true if the object exists in live mode or the value false if the object exists in test mode. * @property \Stripe\StripeObject $metadata Additional information about the object in a structured format. + * @property string $mode The import strategy for handling existing catalog data. * @property string $status The current status of this ProductCatalogImport. * @property null|(object{awaiting_upload?: (object{upload_url: (object{expires_at: int, url: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), failed?: (object{code: string, failure_message: string, type: string}&\Stripe\StripeObject), processing?: (object{error_count: int, success_count: int}&\Stripe\StripeObject), succeeded?: (object{success_count: int}&\Stripe\StripeObject), succeeded_with_errors?: (object{error_count: int, error_file: (object{content_type: string, download_url: (object{expires_at: int, url: string}&\Stripe\StripeObject), size: int}&\Stripe\StripeObject), samples: (object{error_message: string, field: string, id: string, row: int}&\Stripe\StripeObject)[], success_count: int}&\Stripe\StripeObject)}&\Stripe\StripeObject) $status_details Details about the current import status. */ @@ -71,6 +72,9 @@ public static function fieldEncodings() const FEED_TYPE_PRODUCT = 'product'; const FEED_TYPE_PROMOTION = 'promotion'; + const MODE_REPLACE = 'replace'; + const MODE_UPSERT = 'upsert'; + const STATUS_AWAITING_UPLOAD = 'awaiting_upload'; const STATUS_FAILED = 'failed'; const STATUS_PROCESSING = 'processing'; diff --git a/lib/V2/Core/Account.php b/lib/V2/Core/Account.php index 0464ca0e5..890dd9f6e 100644 --- a/lib/V2/Core/Account.php +++ b/lib/V2/Core/Account.php @@ -12,7 +12,7 @@ * @property string $object String representing the object's type. Objects of the same type share the same value of the object field. * @property string[] $applied_configurations The configurations that have been applied to this account. * @property null|bool $closed Indicates whether the account has been closed. - * @property null|(object{card_creator?: (object{applied: bool, capabilities?: (object{commercial?: (object{celtic?: (object{charge_card?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject), spend_card?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject)}&\Stripe\StripeObject), cross_river_bank?: (object{charge_card?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject), prepaid_card?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject), spend_card?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject)}&\Stripe\StripeObject), fifth_third?: (object{charge_card?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject)}&\Stripe\StripeObject), lead?: (object{prepaid_card?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject)}&\Stripe\StripeObject), stripe?: (object{charge_card?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject), prepaid_card?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject)}&\Stripe\StripeObject)}&\Stripe\StripeObject), consumer?: (object{celtic?: (object{revolving_credit_card?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject)}&\Stripe\StripeObject), cross_river_bank?: (object{prepaid_card?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject)}&\Stripe\StripeObject), lead?: (object{debit_card?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject), prepaid_card?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject)}&\Stripe\StripeObject)}&\Stripe\StripeObject)}&\Stripe\StripeObject)}&\Stripe\StripeObject), customer?: (object{applied: bool, automatic_indirect_tax?: (object{exempt?: string, ip_address?: string, location?: (object{country?: string, state?: string}&\Stripe\StripeObject), location_source?: string}&\Stripe\StripeObject), billing?: (object{default_payment_method?: string, invoice?: (object{custom_fields: (object{name: string, value: string}&\Stripe\StripeObject)[], footer?: string, next_sequence?: int, prefix?: string, rendering?: (object{amount_tax_display?: string, template?: string}&\Stripe\StripeObject)}&\Stripe\StripeObject)}&\Stripe\StripeObject), capabilities?: (object{automatic_indirect_tax?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject)}&\Stripe\StripeObject), shipping?: (object{address?: (object{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}&\Stripe\StripeObject), name?: string, phone?: string}&\Stripe\StripeObject), test_clock?: string}&\Stripe\StripeObject), merchant?: (object{applied: bool, bacs_debit_payments?: (object{display_name?: string, service_user_number?: string}&\Stripe\StripeObject), branding?: (object{icon?: string, logo?: string, primary_color?: string, secondary_color?: string}&\Stripe\StripeObject), capabilities?: (object{ach_debit_payments?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject), acss_debit_payments?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject), affirm_payments?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject), afterpay_clearpay_payments?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject), alma_payments?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject), amazon_pay_payments?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject), au_becs_debit_payments?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject), bacs_debit_payments?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject), bancontact_payments?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject), blik_payments?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject), boleto_payments?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject), card_payments?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject), cartes_bancaires_payments?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject), cashapp_payments?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject), eps_payments?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject), fpx_payments?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject), gb_bank_transfer_payments?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject), grabpay_payments?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject), ideal_payments?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject), jcb_payments?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject), jp_bank_transfer_payments?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject), kakao_pay_payments?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject), klarna_payments?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject), konbini_payments?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject), kr_card_payments?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject), link_payments?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject), mobilepay_payments?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject), multibanco_payments?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject), mx_bank_transfer_payments?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject), naver_pay_payments?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject), oxxo_payments?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject), p24_payments?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject), pay_by_bank_payments?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject), payco_payments?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject), paynow_payments?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject), promptpay_payments?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject), revolut_pay_payments?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject), samsung_pay_payments?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject), sepa_bank_transfer_payments?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject), sepa_debit_payments?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject), stripe_balance?: (object{payouts?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject)}&\Stripe\StripeObject), swish_payments?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject), twint_payments?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject), us_bank_transfer_payments?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject), zip_payments?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject)}&\Stripe\StripeObject), card_payments?: (object{decline_on?: (object{avs_failure?: bool, cvc_failure?: bool}&\Stripe\StripeObject)}&\Stripe\StripeObject), konbini_payments?: (object{support?: (object{email?: string, hours?: (object{end_time?: string, start_time?: string}&\Stripe\StripeObject), phone?: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), mcc?: string, script_statement_descriptor?: (object{kana?: (object{descriptor?: string, prefix?: string}&\Stripe\StripeObject), kanji?: (object{descriptor?: string, prefix?: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), sepa_debit_payments?: (object{creditor_id?: string}&\Stripe\StripeObject), smart_disputes?: (object{auto_respond?: (object{preference?: string, value?: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), statement_descriptor?: (object{descriptor?: string, prefix?: string}&\Stripe\StripeObject), support?: (object{address?: (object{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}&\Stripe\StripeObject), email?: string, phone?: string, url?: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), recipient?: (object{applied: bool, capabilities?: (object{bank_accounts?: (object{instant?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject), local?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject), wire?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject)}&\Stripe\StripeObject), cards?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject), crypto_wallets?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject), paper_checks?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject), stripe_balance?: (object{payouts?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject), stripe_transfers?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject)}&\Stripe\StripeObject)}&\Stripe\StripeObject), default_outbound_destination?: (object{id: string, type: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), storer?: (object{applied: bool, capabilities?: (object{consumer?: (object{holds_currencies?: (object{usd?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject)}&\Stripe\StripeObject)}&\Stripe\StripeObject), financial_addresses?: (object{bank_accounts?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject), crypto_wallets?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject)}&\Stripe\StripeObject), holds_currencies?: (object{eur?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject), gbp?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject), usd?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject), usdc?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject)}&\Stripe\StripeObject), inbound_transfers?: (object{bank_accounts?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject)}&\Stripe\StripeObject), outbound_payments?: (object{bank_accounts?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject), cards?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject), crypto_wallets?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject), financial_accounts?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject), paper_checks?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject)}&\Stripe\StripeObject), outbound_transfers?: (object{bank_accounts?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject), crypto_wallets?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject), financial_accounts?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject)}&\Stripe\StripeObject)}&\Stripe\StripeObject), high_risk_activities?: string[], high_risk_activities_description?: string, money_services_description?: string, operates_in_prohibited_countries?: bool, participates_in_regulated_activity?: bool, purpose_of_funds?: string, purpose_of_funds_description?: string, regulated_activity?: (object{description?: string, license_number?: string, primary_regulatory_authority_country?: string, primary_regulatory_authority_name?: string}&\Stripe\StripeObject), source_of_funds?: string, source_of_funds_description?: string}&\Stripe\StripeObject)}&\Stripe\StripeObject) $configuration An Account represents a company, individual, or other entity that a user interacts with. Accounts store identity information and one or more configurations that enable product-specific capabilities. You can assign configurations at creation or add them later. + * @property null|(object{card_creator?: (object{applied: bool, capabilities?: (object{commercial?: (object{celtic?: (object{charge_card?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject), spend_card?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject)}&\Stripe\StripeObject), cross_river_bank?: (object{charge_card?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject), prepaid_card?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject), spend_card?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject)}&\Stripe\StripeObject), fifth_third?: (object{charge_card?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject)}&\Stripe\StripeObject), lead?: (object{prepaid_card?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject)}&\Stripe\StripeObject), stripe?: (object{charge_card?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject), prepaid_card?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject)}&\Stripe\StripeObject)}&\Stripe\StripeObject), consumer?: (object{celtic?: (object{revolving_credit_card?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject)}&\Stripe\StripeObject), cross_river_bank?: (object{prepaid_card?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject)}&\Stripe\StripeObject), lead?: (object{debit_card?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject), prepaid_card?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject)}&\Stripe\StripeObject)}&\Stripe\StripeObject)}&\Stripe\StripeObject)}&\Stripe\StripeObject), customer?: (object{applied: bool, automatic_indirect_tax?: (object{exempt?: string, ip_address?: string, location?: (object{country?: string, state?: string}&\Stripe\StripeObject), location_source?: string}&\Stripe\StripeObject), billing?: (object{default_payment_method?: string, invoice?: (object{custom_fields: (object{name: string, value: string}&\Stripe\StripeObject)[], footer?: string, next_sequence?: int, prefix?: string, rendering?: (object{amount_tax_display?: string, template?: string}&\Stripe\StripeObject)}&\Stripe\StripeObject)}&\Stripe\StripeObject), capabilities?: (object{automatic_indirect_tax?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject)}&\Stripe\StripeObject), shipping?: (object{address?: (object{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}&\Stripe\StripeObject), name?: string, phone?: string}&\Stripe\StripeObject), test_clock?: string}&\Stripe\StripeObject), merchant?: (object{applied: bool, bacs_debit_payments?: (object{display_name?: string, service_user_number?: string}&\Stripe\StripeObject), branding?: (object{icon?: string, logo?: string, primary_color?: string, secondary_color?: string}&\Stripe\StripeObject), capabilities?: (object{ach_debit_payments?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject), acss_debit_payments?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject), affirm_payments?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject), afterpay_clearpay_payments?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject), alma_payments?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject), amazon_pay_payments?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject), au_becs_debit_payments?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject), bacs_debit_payments?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject), bancontact_payments?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject), blik_payments?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject), boleto_payments?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject), card_payments?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject), cartes_bancaires_payments?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject), cashapp_payments?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject), eps_payments?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject), fpx_payments?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject), gb_bank_transfer_payments?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject), grabpay_payments?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject), ideal_payments?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject), jcb_payments?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject), jp_bank_transfer_payments?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject), kakao_pay_payments?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject), klarna_payments?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject), konbini_payments?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject), kr_card_payments?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject), link_payments?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject), mobilepay_payments?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject), multibanco_payments?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject), mx_bank_transfer_payments?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject), naver_pay_payments?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject), oxxo_payments?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject), p24_payments?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject), pay_by_bank_payments?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject), payco_payments?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject), paynow_payments?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject), promptpay_payments?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject), revolut_pay_payments?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject), samsung_pay_payments?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject), sepa_bank_transfer_payments?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject), sepa_debit_payments?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject), stripe_balance?: (object{payouts?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject)}&\Stripe\StripeObject), sunbit_payments?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject), swish_payments?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject), twint_payments?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject), us_bank_transfer_payments?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject), zip_payments?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject)}&\Stripe\StripeObject), card_payments?: (object{decline_on?: (object{avs_failure?: bool, cvc_failure?: bool}&\Stripe\StripeObject)}&\Stripe\StripeObject), konbini_payments?: (object{support?: (object{email?: string, hours?: (object{end_time?: string, start_time?: string}&\Stripe\StripeObject), phone?: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), mcc?: string, script_statement_descriptor?: (object{kana?: (object{descriptor?: string, prefix?: string}&\Stripe\StripeObject), kanji?: (object{descriptor?: string, prefix?: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), sepa_debit_payments?: (object{creditor_id?: string}&\Stripe\StripeObject), smart_disputes?: (object{auto_respond?: (object{preference?: string, value?: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), statement_descriptor?: (object{descriptor?: string, prefix?: string}&\Stripe\StripeObject), support?: (object{address?: (object{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}&\Stripe\StripeObject), email?: string, phone?: string, url?: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), money_manager?: (object{applied: bool, capabilities?: (object{business_storage?: (object{inbound?: (object{aud?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject), cad?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject), eur?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject), gbp?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject), usd?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject), usdc?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject)}&\Stripe\StripeObject), outbound?: (object{aud?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject), cad?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject), eur?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject), gbp?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject), usd?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject), usdc?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject)}&\Stripe\StripeObject)}&\Stripe\StripeObject), consumer_storage?: (object{inbound?: (object{usd?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject), usdc?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject)}&\Stripe\StripeObject), outbound?: (object{usd?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject), usdc?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject)}&\Stripe\StripeObject)}&\Stripe\StripeObject), inbound_transfers?: (object{bank_accounts?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject)}&\Stripe\StripeObject), outbound_payments?: (object{bank_accounts?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject), cards?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject), crypto_wallets?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject), financial_accounts?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject), paper_checks?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject)}&\Stripe\StripeObject), outbound_transfers?: (object{bank_accounts?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject), crypto_wallets?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject), financial_accounts?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject)}&\Stripe\StripeObject), received_credits?: (object{bank_accounts?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject), crypto_wallets?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject)}&\Stripe\StripeObject), received_debits?: (object{bank_accounts?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject)}&\Stripe\StripeObject)}&\Stripe\StripeObject), high_risk_activities?: string[], high_risk_activities_description?: string, money_services_description?: string, operates_in_prohibited_countries?: bool, participates_in_regulated_activity?: bool, purpose_of_funds?: string, purpose_of_funds_description?: string, regulated_activity?: (object{description?: string, license_number?: string, primary_regulatory_authority_country?: string, primary_regulatory_authority_name?: string}&\Stripe\StripeObject), source_of_funds?: string, source_of_funds_description?: string}&\Stripe\StripeObject), recipient?: (object{applied: bool, capabilities?: (object{bank_accounts?: (object{ach?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject), becs?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject), eft?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject), fedwire?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject), fps?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject), instant?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject), local?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject), npp?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject), rtp?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject), sepa_credit?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject), sepa_instant?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject), swift?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject), wire?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject)}&\Stripe\StripeObject), cards?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject), crypto_wallets?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject), paper_checks?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject), stripe_balance?: (object{payouts?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject), stripe_transfers?: (object{protections: (object{psp_migration: (object{expires_at?: int, requested_at: int, status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), status: string, status_details: (object{code: string, resolution: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject)}&\Stripe\StripeObject)}&\Stripe\StripeObject), default_outbound_destination?: (object{id: string, type: string}&\Stripe\StripeObject)}&\Stripe\StripeObject)}&\Stripe\StripeObject) $configuration An Account represents a company, individual, or other entity that a user interacts with. Accounts store identity information and one or more configurations that enable product-specific capabilities. You can assign configurations at creation or add them later. * @property null|string $contact_email The primary contact email address for the Account. * @property null|string $contact_phone The default contact phone for the Account. * @property int $created Time at which the object was created. Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z. @@ -20,7 +20,7 @@ * @property null|(object{currency?: string, locales?: string[], profile?: (object{business_url?: string, doing_business_as?: string, product_description?: string}&\Stripe\StripeObject), responsibilities: (object{fees_collector?: string, losses_collector?: string, requirements_collector: string}&\Stripe\StripeObject), timezone?: string}&\Stripe\StripeObject) $defaults Default values for settings shared across Account configurations. * @property null|string $display_name A descriptive name for the Account. This name will be surfaced in the Stripe Dashboard and on any invoices sent to the Account. * @property null|(object{entries?: (object{awaiting_action_from: string, description: string, errors: (object{code: string, description: string}&\Stripe\StripeObject)[], impact: (object{restricts_capabilities?: (object{capability: string, configuration: string, deadline: (object{status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject)[]}&\Stripe\StripeObject), minimum_deadline: (object{status: string}&\Stripe\StripeObject), reference?: (object{inquiry?: string, resource?: string, type: string}&\Stripe\StripeObject), requested_reasons: (object{code: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject)[], minimum_transition_date?: int, summary?: (object{minimum_deadline?: (object{status: string, time?: int}&\Stripe\StripeObject)}&\Stripe\StripeObject)}&\Stripe\StripeObject) $future_requirements Information about the future requirements for the Account that will eventually come into effect, including what information needs to be collected, and by when. - * @property null|(object{attestations?: (object{directorship_declaration?: (object{date?: int, ip?: string, user_agent?: string}&\Stripe\StripeObject), ownership_declaration?: (object{date?: int, ip?: string, user_agent?: string}&\Stripe\StripeObject), persons_provided?: (object{directors?: bool, executives?: bool, owners?: bool, ownership_exemption_reason?: string}&\Stripe\StripeObject), representative_declaration?: (object{date?: int, ip?: string, user_agent?: string}&\Stripe\StripeObject), terms_of_service?: (object{account?: (object{date?: int, ip?: string, user_agent?: string}&\Stripe\StripeObject), card_creator?: (object{commercial?: (object{account_holder?: (object{date?: int, ip?: string, url?: string, user_agent?: string}&\Stripe\StripeObject), celtic?: (object{apple_pay?: (object{date?: int, ip?: string, url?: string, user_agent?: string}&\Stripe\StripeObject), charge_card?: (object{bank_terms?: (object{date?: int, ip?: string, url?: string, user_agent?: string}&\Stripe\StripeObject), platform?: (object{date?: int, ip?: string, url?: string, user_agent?: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), spend_card?: (object{bank_terms?: (object{date?: int, ip?: string, url?: string, user_agent?: string}&\Stripe\StripeObject), financing_disclosures?: (object{date?: int, ip?: string, url?: string, user_agent?: string}&\Stripe\StripeObject), platform?: (object{date?: int, ip?: string, url?: string, user_agent?: string}&\Stripe\StripeObject)}&\Stripe\StripeObject)}&\Stripe\StripeObject), cross_river_bank?: (object{apple_pay?: (object{date?: int, ip?: string, url?: string, user_agent?: string}&\Stripe\StripeObject), charge_card?: (object{bank_terms?: (object{date?: int, ip?: string, url?: string, user_agent?: string}&\Stripe\StripeObject), financing_disclosures?: (object{date?: int, ip?: string, url?: string, user_agent?: string}&\Stripe\StripeObject), platform?: (object{date?: int, ip?: string, url?: string, user_agent?: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), prepaid_card?: (object{bank_terms?: (object{date?: int, ip?: string, url?: string, user_agent?: string}&\Stripe\StripeObject), platform?: (object{date?: int, ip?: string, url?: string, user_agent?: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), spend_card?: (object{bank_terms?: (object{date?: int, ip?: string, url?: string, user_agent?: string}&\Stripe\StripeObject), financing_disclosures?: (object{date?: int, ip?: string, url?: string, user_agent?: string}&\Stripe\StripeObject)}&\Stripe\StripeObject)}&\Stripe\StripeObject), fifth_third?: (object{bank_terms?: (object{date?: int, ip?: string, url?: string, user_agent?: string}&\Stripe\StripeObject), platform?: (object{date?: int, ip?: string, url?: string, user_agent?: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), global_account_holder?: (object{date?: int, ip?: string, url?: string, user_agent?: string}&\Stripe\StripeObject), lead?: (object{apple_pay?: (object{date?: int, ip?: string, url?: string, user_agent?: string}&\Stripe\StripeObject), prepaid_card?: (object{bank_terms?: (object{date?: int, ip?: string, url?: string, user_agent?: string}&\Stripe\StripeObject), platform?: (object{date?: int, ip?: string, url?: string, user_agent?: string}&\Stripe\StripeObject)}&\Stripe\StripeObject)}&\Stripe\StripeObject)}&\Stripe\StripeObject), consumer?: (object{account_holder?: (object{date?: int, ip?: string, url?: string, user_agent?: string}&\Stripe\StripeObject), celtic?: (object{apple_pay?: (object{date?: int, ip?: string, url?: string, user_agent?: string}&\Stripe\StripeObject), revolving_credit_card?: (object{bank_terms?: (object{date?: int, ip?: string, url?: string, user_agent?: string}&\Stripe\StripeObject), financing_disclosures?: (object{date?: int, ip?: string, url?: string, user_agent?: string}&\Stripe\StripeObject), platform?: (object{date?: int, ip?: string, url?: string, user_agent?: string}&\Stripe\StripeObject)}&\Stripe\StripeObject)}&\Stripe\StripeObject), cross_river_bank?: (object{prepaid_card?: (object{bank_terms?: (object{date?: int, ip?: string, url?: string, user_agent?: string}&\Stripe\StripeObject), financing_disclosures?: (object{date?: int, ip?: string, url?: string, user_agent?: string}&\Stripe\StripeObject), platform?: (object{date?: int, ip?: string, url?: string, user_agent?: string}&\Stripe\StripeObject)}&\Stripe\StripeObject)}&\Stripe\StripeObject), global_account_holder?: (object{date?: int, ip?: string, url?: string, user_agent?: string}&\Stripe\StripeObject), lead?: (object{apple_pay?: (object{date?: int, ip?: string, url?: string, user_agent?: string}&\Stripe\StripeObject), debit_card?: (object{bank_terms?: (object{date?: int, ip?: string, url?: string, user_agent?: string}&\Stripe\StripeObject), financing_disclosures?: (object{date?: int, ip?: string, url?: string, user_agent?: string}&\Stripe\StripeObject), platform?: (object{date?: int, ip?: string, url?: string, user_agent?: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), prepaid_card?: (object{bank_terms?: (object{date?: int, ip?: string, url?: string, user_agent?: string}&\Stripe\StripeObject), financing_disclosures?: (object{date?: int, ip?: string, url?: string, user_agent?: string}&\Stripe\StripeObject), platform?: (object{date?: int, ip?: string, url?: string, user_agent?: string}&\Stripe\StripeObject)}&\Stripe\StripeObject)}&\Stripe\StripeObject)}&\Stripe\StripeObject)}&\Stripe\StripeObject), consumer_privacy_disclosures?: (object{date?: int, ip?: string, user_agent?: string}&\Stripe\StripeObject), consumer_storer?: (object{date?: int, ip?: string, user_agent?: string}&\Stripe\StripeObject), crypto_storer?: (object{date?: int, ip?: string, user_agent?: string}&\Stripe\StripeObject), storer?: (object{date?: int, ip?: string, user_agent?: string}&\Stripe\StripeObject)}&\Stripe\StripeObject)}&\Stripe\StripeObject), business_details?: (object{address?: (object{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}&\Stripe\StripeObject), annual_revenue?: (object{amount?: \Stripe\StripeObject, fiscal_year_end?: string}&\Stripe\StripeObject), compliance_screening_description?: string, documents?: (object{bank_account_ownership_verification?: (object{files: string[], type: string}&\Stripe\StripeObject), company_license?: (object{files: string[], type: string}&\Stripe\StripeObject), company_memorandum_of_association?: (object{files: string[], type: string}&\Stripe\StripeObject), company_ministerial_decree?: (object{files: string[], type: string}&\Stripe\StripeObject), company_registration_verification?: (object{files: string[], type: string}&\Stripe\StripeObject), company_tax_id_verification?: (object{files: string[], type: string}&\Stripe\StripeObject), primary_verification?: (object{front_back: (object{back?: string, front: string}&\Stripe\StripeObject), type: string}&\Stripe\StripeObject), proof_of_address?: (object{files: string[], type: string}&\Stripe\StripeObject), proof_of_registration?: (object{files: string[], signer?: (object{person: string}&\Stripe\StripeObject), type: string}&\Stripe\StripeObject), proof_of_ultimate_beneficial_ownership?: (object{files: string[], signer?: (object{person: string}&\Stripe\StripeObject), type: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), estimated_worker_count?: int, id_numbers?: (object{registrar?: string, type: string}&\Stripe\StripeObject)[], monthly_estimated_revenue?: (object{amount?: \Stripe\StripeObject}&\Stripe\StripeObject), phone?: string, registered_name?: string, registration_date?: (object{day: int, month: int, year: int}&\Stripe\StripeObject), script_addresses?: (object{kana?: (object{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}&\Stripe\StripeObject), kanji?: (object{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), script_names?: (object{kana?: (object{registered_name?: string}&\Stripe\StripeObject), kanji?: (object{registered_name?: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), structure?: string}&\Stripe\StripeObject), country?: string, entity_type?: string, individual?: (object{account: string, additional_addresses?: (object{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, purpose: string, state?: string, town?: string}&\Stripe\StripeObject)[], additional_names?: (object{full_name?: string, given_name?: string, purpose: string, surname?: string}&\Stripe\StripeObject)[], additional_terms_of_service?: (object{account?: (object{date?: int, ip?: string, user_agent?: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), address?: (object{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}&\Stripe\StripeObject), created: int, date_of_birth?: (object{day: int, month: int, year: int}&\Stripe\StripeObject), documents?: (object{company_authorization?: (object{files: string[], type: string}&\Stripe\StripeObject), passport?: (object{files: string[], type: string}&\Stripe\StripeObject), primary_verification?: (object{front_back: (object{back?: string, front: string}&\Stripe\StripeObject), type: string}&\Stripe\StripeObject), secondary_verification?: (object{front_back: (object{back?: string, front: string}&\Stripe\StripeObject), type: string}&\Stripe\StripeObject), visa?: (object{files: string[], type: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), email?: string, given_name?: string, id: string, id_numbers?: (object{type: string}&\Stripe\StripeObject)[], legal_gender?: string, metadata?: \Stripe\StripeObject, nationalities?: string[], object: string, phone?: string, political_exposure?: string, relationship?: (object{authorizer?: bool, director?: bool, executive?: bool, legal_guardian?: bool, owner?: bool, percent_ownership?: string, representative?: bool, title?: string}&\Stripe\StripeObject), script_addresses?: (object{kana?: (object{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}&\Stripe\StripeObject), kanji?: (object{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), script_names?: (object{kana?: (object{given_name?: string, surname?: string}&\Stripe\StripeObject), kanji?: (object{given_name?: string, surname?: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), surname?: string, updated: int}&\Stripe\StripeObject)}&\Stripe\StripeObject) $identity Information about the company, individual, and business represented by the Account. + * @property null|(object{attestations?: (object{directorship_declaration?: (object{date?: int, ip?: string, user_agent?: string}&\Stripe\StripeObject), ownership_declaration?: (object{date?: int, ip?: string, user_agent?: string}&\Stripe\StripeObject), persons_provided?: (object{directors?: bool, executives?: bool, owners?: bool, ownership_exemption_reason?: string}&\Stripe\StripeObject), representative_declaration?: (object{date?: int, ip?: string, user_agent?: string}&\Stripe\StripeObject), terms_of_service?: (object{account?: (object{date?: int, ip?: string, user_agent?: string}&\Stripe\StripeObject), card_creator?: (object{commercial?: (object{account_holder?: (object{date?: int, ip?: string, url?: string, user_agent?: string}&\Stripe\StripeObject), celtic?: (object{apple_pay?: (object{date?: int, ip?: string, url?: string, user_agent?: string}&\Stripe\StripeObject), charge_card?: (object{bank_terms?: (object{date?: int, ip?: string, url?: string, user_agent?: string}&\Stripe\StripeObject), platform?: (object{date?: int, ip?: string, url?: string, user_agent?: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), spend_card?: (object{bank_terms?: (object{date?: int, ip?: string, url?: string, user_agent?: string}&\Stripe\StripeObject), financing_disclosures?: (object{date?: int, ip?: string, url?: string, user_agent?: string}&\Stripe\StripeObject), platform?: (object{date?: int, ip?: string, url?: string, user_agent?: string}&\Stripe\StripeObject)}&\Stripe\StripeObject)}&\Stripe\StripeObject), cross_river_bank?: (object{apple_pay?: (object{date?: int, ip?: string, url?: string, user_agent?: string}&\Stripe\StripeObject), charge_card?: (object{bank_terms?: (object{date?: int, ip?: string, url?: string, user_agent?: string}&\Stripe\StripeObject), financing_disclosures?: (object{date?: int, ip?: string, url?: string, user_agent?: string}&\Stripe\StripeObject), platform?: (object{date?: int, ip?: string, url?: string, user_agent?: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), prepaid_card?: (object{bank_terms?: (object{date?: int, ip?: string, url?: string, user_agent?: string}&\Stripe\StripeObject), platform?: (object{date?: int, ip?: string, url?: string, user_agent?: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), spend_card?: (object{bank_terms?: (object{date?: int, ip?: string, url?: string, user_agent?: string}&\Stripe\StripeObject), financing_disclosures?: (object{date?: int, ip?: string, url?: string, user_agent?: string}&\Stripe\StripeObject)}&\Stripe\StripeObject)}&\Stripe\StripeObject), fifth_third?: (object{bank_terms?: (object{date?: int, ip?: string, url?: string, user_agent?: string}&\Stripe\StripeObject), platform?: (object{date?: int, ip?: string, url?: string, user_agent?: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), global_account_holder?: (object{date?: int, ip?: string, url?: string, user_agent?: string}&\Stripe\StripeObject), lead?: (object{apple_pay?: (object{date?: int, ip?: string, url?: string, user_agent?: string}&\Stripe\StripeObject), prepaid_card?: (object{bank_terms?: (object{date?: int, ip?: string, url?: string, user_agent?: string}&\Stripe\StripeObject), platform?: (object{date?: int, ip?: string, url?: string, user_agent?: string}&\Stripe\StripeObject)}&\Stripe\StripeObject)}&\Stripe\StripeObject)}&\Stripe\StripeObject), consumer?: (object{account_holder?: (object{date?: int, ip?: string, url?: string, user_agent?: string}&\Stripe\StripeObject), celtic?: (object{apple_pay?: (object{date?: int, ip?: string, url?: string, user_agent?: string}&\Stripe\StripeObject), revolving_credit_card?: (object{bank_terms?: (object{date?: int, ip?: string, url?: string, user_agent?: string}&\Stripe\StripeObject), financing_disclosures?: (object{date?: int, ip?: string, url?: string, user_agent?: string}&\Stripe\StripeObject), platform?: (object{date?: int, ip?: string, url?: string, user_agent?: string}&\Stripe\StripeObject)}&\Stripe\StripeObject)}&\Stripe\StripeObject), cross_river_bank?: (object{prepaid_card?: (object{bank_terms?: (object{date?: int, ip?: string, url?: string, user_agent?: string}&\Stripe\StripeObject), financing_disclosures?: (object{date?: int, ip?: string, url?: string, user_agent?: string}&\Stripe\StripeObject), platform?: (object{date?: int, ip?: string, url?: string, user_agent?: string}&\Stripe\StripeObject)}&\Stripe\StripeObject)}&\Stripe\StripeObject), global_account_holder?: (object{date?: int, ip?: string, url?: string, user_agent?: string}&\Stripe\StripeObject), lead?: (object{apple_pay?: (object{date?: int, ip?: string, url?: string, user_agent?: string}&\Stripe\StripeObject), debit_card?: (object{bank_terms?: (object{date?: int, ip?: string, url?: string, user_agent?: string}&\Stripe\StripeObject), financing_disclosures?: (object{date?: int, ip?: string, url?: string, user_agent?: string}&\Stripe\StripeObject), platform?: (object{date?: int, ip?: string, url?: string, user_agent?: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), prepaid_card?: (object{bank_terms?: (object{date?: int, ip?: string, url?: string, user_agent?: string}&\Stripe\StripeObject), financing_disclosures?: (object{date?: int, ip?: string, url?: string, user_agent?: string}&\Stripe\StripeObject), platform?: (object{date?: int, ip?: string, url?: string, user_agent?: string}&\Stripe\StripeObject)}&\Stripe\StripeObject)}&\Stripe\StripeObject)}&\Stripe\StripeObject)}&\Stripe\StripeObject), consumer_money_manager?: (object{date?: int, ip?: string, user_agent?: string}&\Stripe\StripeObject), consumer_privacy_disclosures?: (object{date?: int, ip?: string, user_agent?: string}&\Stripe\StripeObject), crypto_money_manager?: (object{date?: int, ip?: string, user_agent?: string}&\Stripe\StripeObject), money_manager?: (object{date?: int, ip?: string, user_agent?: string}&\Stripe\StripeObject)}&\Stripe\StripeObject)}&\Stripe\StripeObject), business_details?: (object{address?: (object{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}&\Stripe\StripeObject), annual_revenue?: (object{amount?: \Stripe\StripeObject, fiscal_year_end?: string}&\Stripe\StripeObject), compliance_screening_description?: string, documents?: (object{bank_account_ownership_verification?: (object{files: string[], type: string}&\Stripe\StripeObject), company_license?: (object{files: string[], type: string}&\Stripe\StripeObject), company_memorandum_of_association?: (object{files: string[], type: string}&\Stripe\StripeObject), company_ministerial_decree?: (object{files: string[], type: string}&\Stripe\StripeObject), company_registration_verification?: (object{files: string[], type: string}&\Stripe\StripeObject), company_tax_id_verification?: (object{files: string[], type: string}&\Stripe\StripeObject), primary_verification?: (object{front_back: (object{back?: string, front: string}&\Stripe\StripeObject), type: string}&\Stripe\StripeObject), proof_of_address?: (object{files: string[], type: string}&\Stripe\StripeObject), proof_of_registration?: (object{files: string[], signer?: (object{person: string}&\Stripe\StripeObject), type: string}&\Stripe\StripeObject), proof_of_ultimate_beneficial_ownership?: (object{files: string[], signer?: (object{person: string}&\Stripe\StripeObject), type: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), estimated_worker_count?: int, id_numbers?: (object{registrar?: string, type: string}&\Stripe\StripeObject)[], monthly_estimated_revenue?: (object{amount?: \Stripe\StripeObject}&\Stripe\StripeObject), phone?: string, registered_name?: string, registration_date?: (object{day: int, month: int, year: int}&\Stripe\StripeObject), script_addresses?: (object{kana?: (object{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}&\Stripe\StripeObject), kanji?: (object{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), script_names?: (object{kana?: (object{registered_name?: string}&\Stripe\StripeObject), kanji?: (object{registered_name?: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), structure?: string}&\Stripe\StripeObject), country?: string, entity_type?: string, individual?: (object{account: string, additional_addresses?: (object{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, purpose: string, state?: string, town?: string}&\Stripe\StripeObject)[], additional_names?: (object{full_name?: string, given_name?: string, purpose: string, surname?: string}&\Stripe\StripeObject)[], additional_terms_of_service?: (object{account?: (object{date?: int, ip?: string, user_agent?: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), address?: (object{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}&\Stripe\StripeObject), created: int, date_of_birth?: (object{day: int, month: int, year: int}&\Stripe\StripeObject), documents?: (object{company_authorization?: (object{files: string[], type: string}&\Stripe\StripeObject), passport?: (object{files: string[], type: string}&\Stripe\StripeObject), primary_verification?: (object{front_back: (object{back?: string, front: string}&\Stripe\StripeObject), type: string}&\Stripe\StripeObject), secondary_verification?: (object{front_back: (object{back?: string, front: string}&\Stripe\StripeObject), type: string}&\Stripe\StripeObject), visa?: (object{files: string[], type: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), email?: string, given_name?: string, id: string, id_numbers?: (object{type: string}&\Stripe\StripeObject)[], legal_gender?: string, metadata?: \Stripe\StripeObject, nationalities?: string[], object: string, phone?: string, political_exposure?: string, relationship?: (object{authorizer?: bool, director?: bool, executive?: bool, legal_guardian?: bool, owner?: bool, percent_ownership?: string, representative?: bool, title?: string}&\Stripe\StripeObject), script_addresses?: (object{kana?: (object{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}&\Stripe\StripeObject), kanji?: (object{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), script_names?: (object{kana?: (object{given_name?: string, surname?: string}&\Stripe\StripeObject), kanji?: (object{given_name?: string, surname?: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), surname?: string, updated: int}&\Stripe\StripeObject)}&\Stripe\StripeObject) $identity Information about the company, individual, and business represented by the Account. * @property bool $livemode Has the value true if the object exists in live mode or the value false if the object exists in test mode. * @property null|\Stripe\StripeObject $metadata Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. * @property null|(object{entries?: (object{awaiting_action_from: string, description: string, errors: (object{code: string, description: string}&\Stripe\StripeObject)[], impact: (object{restricts_capabilities?: (object{capability: string, configuration: string, deadline: (object{status: string}&\Stripe\StripeObject)}&\Stripe\StripeObject)[]}&\Stripe\StripeObject), minimum_deadline: (object{status: string}&\Stripe\StripeObject), reference?: (object{inquiry?: string, resource?: string, type: string}&\Stripe\StripeObject), requested_reasons: (object{code: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject)[], summary?: (object{minimum_deadline?: (object{status: string, time?: int}&\Stripe\StripeObject)}&\Stripe\StripeObject)}&\Stripe\StripeObject) $requirements Information about the active requirements for the Account, including what information needs to be collected, and by when. @@ -1271,6 +1271,27 @@ public static function fieldEncodings() ], ], ], + 'sunbit_payments' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], + ], + ], + ], 'swish_payments' => [ 'kind' => 'object', 'fields' => [ @@ -1340,35 +1361,469 @@ public static function fieldEncodings() 'protections' => [ 'kind' => 'object', 'fields' => [ - 'psp_migration' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'money_manager' => [ + 'kind' => 'object', + 'fields' => [ + 'capabilities' => [ + 'kind' => 'object', + 'fields' => [ + 'business_storage' => [ + 'kind' => 'object', + 'fields' => [ + 'inbound' => [ + 'kind' => 'object', + 'fields' => [ + 'aud' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], + ], + ], + ], + 'cad' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], + ], + ], + ], + 'eur' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], + ], + ], + ], + 'gbp' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], + ], + ], + ], + 'usd' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], + ], + ], + ], + 'usdc' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'outbound' => [ + 'kind' => 'object', + 'fields' => [ + 'aud' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], + ], + ], + ], + 'cad' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], + ], + ], + ], + 'eur' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], + ], + ], + ], + 'gbp' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], + ], + ], + ], + 'usd' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], + ], + ], + ], + 'usdc' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'consumer_storage' => [ + 'kind' => 'object', + 'fields' => [ + 'inbound' => [ + 'kind' => 'object', + 'fields' => [ + 'usd' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], + ], + ], + ], + 'usdc' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'outbound' => [ + 'kind' => 'object', + 'fields' => [ + 'usd' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], + ], + ], + ], + 'usdc' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'inbound_transfers' => [ + 'kind' => 'object', + 'fields' => [ + 'bank_accounts' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'outbound_payments' => [ + 'kind' => 'object', + 'fields' => [ + 'bank_accounts' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], + ], + ], + ], + 'cards' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ 'kind' => 'object', 'fields' => [ - 'expires_at' => [ - 'kind' => 'int64_string', - ], - 'requested_at' => [ - 'kind' => 'int64_string', + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], ], ], ], ], ], - ], - ], - ], - ], - ], - ], - 'recipient' => [ - 'kind' => 'object', - 'fields' => [ - 'capabilities' => [ - 'kind' => 'object', - 'fields' => [ - 'bank_accounts' => [ - 'kind' => 'object', - 'fields' => [ - 'instant' => [ + 'crypto_wallets' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -1389,7 +1844,7 @@ public static function fieldEncodings() ], ], ], - 'local' => [ + 'financial_accounts' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -1410,7 +1865,7 @@ public static function fieldEncodings() ], ], ], - 'wire' => [ + 'paper_checks' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -1433,62 +1888,67 @@ public static function fieldEncodings() ], ], ], - 'cards' => [ + 'outbound_transfers' => [ 'kind' => 'object', 'fields' => [ - 'protections' => [ + 'bank_accounts' => [ 'kind' => 'object', 'fields' => [ - 'psp_migration' => [ + 'protections' => [ 'kind' => 'object', 'fields' => [ - 'expires_at' => [ - 'kind' => 'int64_string', - ], - 'requested_at' => [ - 'kind' => 'int64_string', + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], ], ], ], ], ], - ], - ], - 'crypto_wallets' => [ - 'kind' => 'object', - 'fields' => [ - 'protections' => [ + 'crypto_wallets' => [ 'kind' => 'object', 'fields' => [ - 'psp_migration' => [ + 'protections' => [ 'kind' => 'object', 'fields' => [ - 'expires_at' => [ - 'kind' => 'int64_string', - ], - 'requested_at' => [ - 'kind' => 'int64_string', + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], ], ], ], ], ], - ], - ], - 'paper_checks' => [ - 'kind' => 'object', - 'fields' => [ - 'protections' => [ + 'financial_accounts' => [ 'kind' => 'object', 'fields' => [ - 'psp_migration' => [ + 'protections' => [ 'kind' => 'object', 'fields' => [ - 'expires_at' => [ - 'kind' => 'int64_string', - ], - 'requested_at' => [ - 'kind' => 'int64_string', + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], ], ], ], @@ -1496,10 +1956,10 @@ public static function fieldEncodings() ], ], ], - 'stripe_balance' => [ + 'received_credits' => [ 'kind' => 'object', 'fields' => [ - 'payouts' => [ + 'bank_accounts' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -1520,7 +1980,7 @@ public static function fieldEncodings() ], ], ], - 'stripe_transfers' => [ + 'crypto_wallets' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -1543,38 +2003,23 @@ public static function fieldEncodings() ], ], ], - ], - ], - ], - ], - 'storer' => [ - 'kind' => 'object', - 'fields' => [ - 'capabilities' => [ - 'kind' => 'object', - 'fields' => [ - 'consumer' => [ + 'received_debits' => [ 'kind' => 'object', 'fields' => [ - 'holds_currencies' => [ + 'bank_accounts' => [ 'kind' => 'object', 'fields' => [ - 'usd' => [ + 'protections' => [ 'kind' => 'object', 'fields' => [ - 'protections' => [ + 'psp_migration' => [ 'kind' => 'object', 'fields' => [ - 'psp_migration' => [ - 'kind' => 'object', - 'fields' => [ - 'expires_at' => [ - 'kind' => 'int64_string', - ], - 'requested_at' => [ - 'kind' => 'int64_string', - ], - ], + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', ], ], ], @@ -1584,10 +2029,20 @@ public static function fieldEncodings() ], ], ], - 'financial_addresses' => [ + ], + ], + ], + ], + 'recipient' => [ + 'kind' => 'object', + 'fields' => [ + 'capabilities' => [ + 'kind' => 'object', + 'fields' => [ + 'bank_accounts' => [ 'kind' => 'object', 'fields' => [ - 'bank_accounts' => [ + 'ach' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -1608,7 +2063,7 @@ public static function fieldEncodings() ], ], ], - 'crypto_wallets' => [ + 'becs' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -1629,12 +2084,7 @@ public static function fieldEncodings() ], ], ], - ], - ], - 'holds_currencies' => [ - 'kind' => 'object', - 'fields' => [ - 'eur' => [ + 'eft' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -1655,7 +2105,7 @@ public static function fieldEncodings() ], ], ], - 'gbp' => [ + 'fedwire' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -1676,7 +2126,7 @@ public static function fieldEncodings() ], ], ], - 'usd' => [ + 'fps' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -1697,7 +2147,7 @@ public static function fieldEncodings() ], ], ], - 'usdc' => [ + 'instant' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -1718,12 +2168,7 @@ public static function fieldEncodings() ], ], ], - ], - ], - 'inbound_transfers' => [ - 'kind' => 'object', - 'fields' => [ - 'bank_accounts' => [ + 'local' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -1744,12 +2189,7 @@ public static function fieldEncodings() ], ], ], - ], - ], - 'outbound_payments' => [ - 'kind' => 'object', - 'fields' => [ - 'bank_accounts' => [ + 'npp' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -1770,7 +2210,7 @@ public static function fieldEncodings() ], ], ], - 'cards' => [ + 'rtp' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -1791,7 +2231,7 @@ public static function fieldEncodings() ], ], ], - 'crypto_wallets' => [ + 'sepa_credit' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -1812,7 +2252,7 @@ public static function fieldEncodings() ], ], ], - 'financial_accounts' => [ + 'sepa_instant' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -1833,7 +2273,7 @@ public static function fieldEncodings() ], ], ], - 'paper_checks' => [ + 'swift' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -1854,12 +2294,7 @@ public static function fieldEncodings() ], ], ], - ], - ], - 'outbound_transfers' => [ - 'kind' => 'object', - 'fields' => [ - 'bank_accounts' => [ + 'wire' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -1880,7 +2315,75 @@ public static function fieldEncodings() ], ], ], - 'crypto_wallets' => [ + ], + ], + 'cards' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], + ], + ], + ], + 'crypto_wallets' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], + ], + ], + ], + 'paper_checks' => [ + 'kind' => 'object', + 'fields' => [ + 'protections' => [ + 'kind' => 'object', + 'fields' => [ + 'psp_migration' => [ + 'kind' => 'object', + 'fields' => [ + 'expires_at' => [ + 'kind' => 'int64_string', + ], + 'requested_at' => [ + 'kind' => 'int64_string', + ], + ], + ], + ], + ], + ], + ], + 'stripe_balance' => [ + 'kind' => 'object', + 'fields' => [ + 'payouts' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ @@ -1901,7 +2404,7 @@ public static function fieldEncodings() ], ], ], - 'financial_accounts' => [ + 'stripe_transfers' => [ 'kind' => 'object', 'fields' => [ 'protections' => [ diff --git a/lib/V2/Core/BatchJob.php b/lib/V2/Core/BatchJob.php index 037d3b6d8..91373a4cb 100644 --- a/lib/V2/Core/BatchJob.php +++ b/lib/V2/Core/BatchJob.php @@ -11,7 +11,6 @@ * @property string $object String representing the object's type. Objects of the same type share the same value of the object field. * @property int $created Timestamp at which the batch_job was created. * @property bool $livemode Has the value true if the object exists in live mode or the value false if the object exists in test mode. - * @property int $maximum_rps The maximum requests per second defined for the batch_job. * @property \Stripe\StripeObject $metadata The metadata of the batch_job. * @property bool $skip_validation Whether validation runs before executing the batch_job. * @property string $status The current status of the batch_job. diff --git a/lib/V2/Core/Health/Alert.php b/lib/V2/Core/Health/Alert.php new file mode 100644 index 000000000..fe7f6878c --- /dev/null +++ b/lib/V2/Core/Health/Alert.php @@ -0,0 +1,152 @@ +true if the object exists in live mode or the value false if the object exists in test mode. + * @property null|(object{ingestion_method?: string}&\Stripe\StripeObject) $meter_event_summaries_delayed Populated when type is meter_event_summaries_delayed. + * @property null|(object{pipeline: string}&\Stripe\StripeObject) $metronome_notification_latency Populated when type is metronome_notification_latency. + * @property null|(object{error_code?: string, impacted_requests: int, impacted_requests_percentage?: string, payment_method_type: string, top_impacted_accounts?: (object{account: string, impacted_requests: int, impacted_requests_percentage?: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject) $payment_method_error Populated when type is payment_method_error. + * @property null|int $resolved_at The time when the user experience has returned to expected levels. Null if the alert is still open. + * @property null|(object{impacted_payments: int, impacted_payments_percentage: string}&\Stripe\StripeObject) $sepa_debit_delayed Populated when type is sepa_debit_delayed. + * @property string $severity The severity of the alert. + * @property int $started_at The time when impact on the user experience was first detected. + * @property string $status The current status of the alert. + * @property string $summary A short description of the alert. + * @property null|(object{actual_traffic: int, canonical_path?: string, expected_traffic?: int, time_window: string}&\Stripe\StripeObject) $traffic_volume_drop Populated when type is traffic_volume_drop. + * @property string $type The type of the alert. Determines which sub-hash field is populated. + * @property null|(object{impacted_requests: int}&\Stripe\StripeObject) $webhook_latency Populated when type is webhook_latency. + */ +class Alert extends \Stripe\ApiResource +{ + const OBJECT_NAME = 'v2.core.health.alert'; + + public static function fieldEncodings() + { + return [ + 'api_error' => [ + 'kind' => 'object', + 'fields' => [ + 'impacted_requests_percentage' => [ + 'kind' => 'decimal_string', + ], + 'top_impacted_accounts' => [ + 'kind' => 'array', + 'element' => [ + 'kind' => 'object', + 'fields' => [ + 'impacted_requests_percentage' => [ + 'kind' => 'decimal_string', + ], + ], + ], + ], + ], + ], + 'api_latency' => [ + 'kind' => 'object', + 'fields' => [ + 'impacted_requests_percentage' => [ + 'kind' => 'decimal_string', + ], + 'top_impacted_accounts' => [ + 'kind' => 'array', + 'element' => [ + 'kind' => 'object', + 'fields' => [ + 'impacted_requests_percentage' => [ + 'kind' => 'decimal_string', + ], + ], + ], + ], + ], + ], + 'authorization_rate_drop' => [ + 'kind' => 'object', + 'fields' => [ + 'current_percentage' => ['kind' => 'decimal_string'], + 'previous_percentage' => ['kind' => 'decimal_string'], + ], + ], + 'invoice_count_dropped' => [ + 'kind' => 'object', + 'fields' => [ + 'observed_count' => ['kind' => 'decimal_string'], + 'threshold_count' => ['kind' => 'decimal_string'], + ], + ], + 'payment_method_error' => [ + 'kind' => 'object', + 'fields' => [ + 'impacted_requests_percentage' => [ + 'kind' => 'decimal_string', + ], + 'top_impacted_accounts' => [ + 'kind' => 'array', + 'element' => [ + 'kind' => 'object', + 'fields' => [ + 'impacted_requests_percentage' => [ + 'kind' => 'decimal_string', + ], + ], + ], + ], + ], + ], + 'sepa_debit_delayed' => [ + 'kind' => 'object', + 'fields' => [ + 'impacted_payments_percentage' => [ + 'kind' => 'decimal_string', + ], + ], + ], + ]; + } + + const GROUPING_TYPE_INCIDENT = 'incident'; + const GROUPING_TYPE_STANDALONE = 'standalone'; + + const SEVERITY_CRITICAL = 'critical'; + const SEVERITY_NON_CRITICAL = 'non_critical'; + + const STATUS_OPEN = 'open'; + const STATUS_RESOLVED = 'resolved'; + + const TYPE_API_ERROR = 'api_error'; + const TYPE_API_LATENCY = 'api_latency'; + const TYPE_AUTHORIZATION_RATE_DROP = 'authorization_rate_drop'; + const TYPE_ELEMENTS_ERROR = 'elements_error'; + const TYPE_EVENT_GENERATION_FAILURE = 'event_generation_failure'; + const TYPE_FRAUD_RATE = 'fraud_rate'; + const TYPE_INVOICE_COUNT_DROPPED = 'invoice_count_dropped'; + const TYPE_ISSUING_AUTHORIZATION_REQUEST_ERRORS = 'issuing_authorization_request_errors'; + const TYPE_ISSUING_AUTHORIZATION_REQUEST_TIMEOUT = 'issuing_authorization_request_timeout'; + const TYPE_METER_EVENT_SUMMARIES_DELAYED = 'meter_event_summaries_delayed'; + const TYPE_METRONOME_NOTIFICATION_LATENCY = 'metronome_notification_latency'; + const TYPE_PAYMENT_METHOD_ERROR = 'payment_method_error'; + const TYPE_SEPA_DEBIT_DELAYED = 'sepa_debit_delayed'; + const TYPE_TRAFFIC_VOLUME_DROP = 'traffic_volume_drop'; + const TYPE_WEBHOOK_LATENCY = 'webhook_latency'; +} diff --git a/lib/V2/Core/Health/AlertHistoryEntry.php b/lib/V2/Core/Health/AlertHistoryEntry.php new file mode 100644 index 000000000..ccdbbc75e --- /dev/null +++ b/lib/V2/Core/Health/AlertHistoryEntry.php @@ -0,0 +1,140 @@ +true if the object exists in live mode or the value false if the object exists in test mode. + * @property null|(object{ingestion_method?: string}&\Stripe\StripeObject) $meter_event_summaries_delayed Populated when type is meter_event_summaries_delayed. + * @property null|(object{pipeline: string}&\Stripe\StripeObject) $metronome_notification_latency Populated when type is metronome_notification_latency. + * @property null|(object{error_code?: string, impacted_requests: int, impacted_requests_percentage?: string, payment_method_type: string, top_impacted_accounts?: (object{account: string, impacted_requests: int, impacted_requests_percentage?: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject) $payment_method_error Populated when type is payment_method_error. + * @property null|(object{impacted_payments: int, impacted_payments_percentage: string}&\Stripe\StripeObject) $sepa_debit_delayed Populated when type is sepa_debit_delayed. + * @property null|(object{actual_traffic: int, canonical_path?: string, expected_traffic?: int, time_window: string}&\Stripe\StripeObject) $traffic_volume_drop Populated when type is traffic_volume_drop. + * @property string $transition The type of transition that occurred. + * @property string $type The type of the alert. Determines which sub-hash field is populated. + * @property null|(object{impacted_requests: int}&\Stripe\StripeObject) $webhook_latency Populated when type is webhook_latency. + */ +class AlertHistoryEntry extends \Stripe\ApiResource +{ + const OBJECT_NAME = 'v2.core.health.alert_history_entry'; + + public static function fieldEncodings() + { + return [ + 'api_error' => [ + 'kind' => 'object', + 'fields' => [ + 'impacted_requests_percentage' => [ + 'kind' => 'decimal_string', + ], + 'top_impacted_accounts' => [ + 'kind' => 'array', + 'element' => [ + 'kind' => 'object', + 'fields' => [ + 'impacted_requests_percentage' => [ + 'kind' => 'decimal_string', + ], + ], + ], + ], + ], + ], + 'api_latency' => [ + 'kind' => 'object', + 'fields' => [ + 'impacted_requests_percentage' => [ + 'kind' => 'decimal_string', + ], + 'top_impacted_accounts' => [ + 'kind' => 'array', + 'element' => [ + 'kind' => 'object', + 'fields' => [ + 'impacted_requests_percentage' => [ + 'kind' => 'decimal_string', + ], + ], + ], + ], + ], + ], + 'authorization_rate_drop' => [ + 'kind' => 'object', + 'fields' => [ + 'current_percentage' => ['kind' => 'decimal_string'], + 'previous_percentage' => ['kind' => 'decimal_string'], + ], + ], + 'invoice_count_dropped' => [ + 'kind' => 'object', + 'fields' => [ + 'observed_count' => ['kind' => 'decimal_string'], + 'threshold_count' => ['kind' => 'decimal_string'], + ], + ], + 'payment_method_error' => [ + 'kind' => 'object', + 'fields' => [ + 'impacted_requests_percentage' => [ + 'kind' => 'decimal_string', + ], + 'top_impacted_accounts' => [ + 'kind' => 'array', + 'element' => [ + 'kind' => 'object', + 'fields' => [ + 'impacted_requests_percentage' => [ + 'kind' => 'decimal_string', + ], + ], + ], + ], + ], + ], + 'sepa_debit_delayed' => [ + 'kind' => 'object', + 'fields' => [ + 'impacted_payments_percentage' => [ + 'kind' => 'decimal_string', + ], + ], + ], + ]; + } + + const TRANSITION_IMPACT_UPDATED = 'impact_updated'; + const TRANSITION_OPENED = 'opened'; + const TRANSITION_RESOLVED = 'resolved'; + + const TYPE_API_ERROR = 'api_error'; + const TYPE_API_LATENCY = 'api_latency'; + const TYPE_AUTHORIZATION_RATE_DROP = 'authorization_rate_drop'; + const TYPE_ELEMENTS_ERROR = 'elements_error'; + const TYPE_EVENT_GENERATION_FAILURE = 'event_generation_failure'; + const TYPE_FRAUD_RATE = 'fraud_rate'; + const TYPE_INVOICE_COUNT_DROPPED = 'invoice_count_dropped'; + const TYPE_ISSUING_AUTHORIZATION_REQUEST_ERRORS = 'issuing_authorization_request_errors'; + const TYPE_ISSUING_AUTHORIZATION_REQUEST_TIMEOUT = 'issuing_authorization_request_timeout'; + const TYPE_METER_EVENT_SUMMARIES_DELAYED = 'meter_event_summaries_delayed'; + const TYPE_METRONOME_NOTIFICATION_LATENCY = 'metronome_notification_latency'; + const TYPE_PAYMENT_METHOD_ERROR = 'payment_method_error'; + const TYPE_SEPA_DEBIT_DELAYED = 'sepa_debit_delayed'; + const TYPE_TRAFFIC_VOLUME_DROP = 'traffic_volume_drop'; + const TYPE_WEBHOOK_LATENCY = 'webhook_latency'; +} diff --git a/lib/V2/MoneyManagement/FinancialAddress.php b/lib/V2/MoneyManagement/FinancialAddress.php index f5ff3f38a..7d56ff83f 100644 --- a/lib/V2/MoneyManagement/FinancialAddress.php +++ b/lib/V2/MoneyManagement/FinancialAddress.php @@ -10,7 +10,7 @@ * @property string $id The ID of a FinancialAddress. * @property string $object String representing the object's type. Objects of the same type share the same value of the object field. * @property int $created The creation timestamp of the FinancialAddress. - * @property null|(object{ca_bank_account?: (object{account_holder_name: string, account_number?: string, bank_name: string, institution_number: string, last4: string, transit_number: string}&\Stripe\StripeObject), crypto_wallet?: (object{address: string, memo?: string, network: string}&\Stripe\StripeObject), gb_bank_account?: (object{account_holder_name: string, account_number?: string, last4: string, sort_code: string}&\Stripe\StripeObject), mx_bank_account?: (object{account_holder_name: string, clabe: string}&\Stripe\StripeObject), sepa_bank_account?: (object{account_holder_name: string, bank_name: string, bic: string, country: string, iban: string, last4: string}&\Stripe\StripeObject), type: string, us_bank_account?: (object{account_holder_address?: (object{city: string, country: string, line1: string, line2: string, postal_code: string, state: string, town: string}&\Stripe\StripeObject), account_holder_name?: string, account_number?: string, bank_name?: string, last4: string, routing_number: string, swift_code?: string}&\Stripe\StripeObject)}&\Stripe\StripeObject) $credentials Object indicates the type of credentials that have been allocated and attached to the FinancialAddress. It contains all necessary banking details with which to perform money movements with the FinancialAddress. This field is only available for FinancialAddresses with an active status. + * @property null|(object{ca_bank_account?: (object{account_holder_name: string, account_number?: string, bank_name: string, institution_number: string, last4: string, transit_number: string}&\Stripe\StripeObject), crypto_wallet?: (object{address: string, memo?: string, network: string}&\Stripe\StripeObject), gb_bank_account?: (object{account_holder_name: string, account_number?: string, last4: string, sort_code: string}&\Stripe\StripeObject), mx_bank_account?: (object{account_holder_name: string, clabe: string}&\Stripe\StripeObject), sepa_bank_account?: (object{account_holder_name: string, bank_name: string, bic: string, country: string, iban: string, last4: string}&\Stripe\StripeObject), type: string, us_bank_account?: (object{account_holder_address?: (object{city: string, country: string, line1: string, line2: string, postal_code: string, state: string, town: string}&\Stripe\StripeObject), account_holder_name?: string, account_number?: string, bank_name?: string, bic?: string, last4: string, routing_number: string}&\Stripe\StripeObject)}&\Stripe\StripeObject) $credentials Object indicates the type of credentials that have been allocated and attached to the FinancialAddress. It contains all necessary banking details with which to perform money movements with the FinancialAddress. This field is only available for FinancialAddresses with an active status. * @property string $currency Open Enum. The currency the FinancialAddress supports. * @property string $financial_account A ID of the FinancialAccount this FinancialAddress corresponds to. * @property bool $livemode Has the value true if the object exists in live mode or the value false if the object exists in test mode. diff --git a/lib/V2/MoneyManagement/FinancialAddressDebitSimulation.php b/lib/V2/MoneyManagement/FinancialAddressDebitSimulation.php new file mode 100644 index 000000000..918ad33e9 --- /dev/null +++ b/lib/V2/MoneyManagement/FinancialAddressDebitSimulation.php @@ -0,0 +1,17 @@ +true if the object exists in live mode or the value false if the object exists in test mode. + * @property string $status The status of the request, signifying whether a simulated debit was initiated. + */ +class FinancialAddressDebitSimulation extends \Stripe\ApiResource +{ + const OBJECT_NAME = 'v2.money_management.financial_address_debit_simulation'; +} diff --git a/lib/V2/MoneyManagement/OutboundPayment.php b/lib/V2/MoneyManagement/OutboundPayment.php index acff1eb75..52190ffeb 100644 --- a/lib/V2/MoneyManagement/OutboundPayment.php +++ b/lib/V2/MoneyManagement/OutboundPayment.php @@ -12,7 +12,7 @@ * @property \Stripe\StripeObject $amount The "presentment amount" for the OutboundPayment. * @property bool $cancelable Returns true if the OutboundPayment can be canceled, and false otherwise. * @property int $created Time at which the OutboundPayment was created. Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z. - * @property null|(object{bank_account?: string, paper_check?: (object{memo: string, shipping_speed: string, signature: string}&\Stripe\StripeObject), speed?: string}&\Stripe\StripeObject) $delivery_options Delivery options to be used to send the OutboundPayment. + * @property null|(object{bank_account?: string, paper_check?: (object{attachment?: string, memo: string, shipping_speed: string, signature: string}&\Stripe\StripeObject), speed?: string}&\Stripe\StripeObject) $delivery_options Delivery options to be used to send the OutboundPayment. * @property null|string $description An arbitrary string attached to the OutboundPayment. Often useful for displaying to users. * @property null|int $expected_arrival_date The date when funds are expected to arrive in the payout method. This field is not set if the payout method is in a failed, canceled, or returned state. Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z. * @property (object{debited: \Stripe\StripeObject, financial_account: string}&\Stripe\StripeObject) $from The FinancialAccount that funds were pulled from. @@ -25,9 +25,9 @@ * @property null|string $recipient_verification The recipient verification id for this OutboundPayment. Only required for countries with regulatory mandates to verify recipient names before OutboundPayment creation. * @property string $statement_descriptor The description that appears on the receiving end for an OutboundPayment (for example, bank statement for external bank transfer). It will default to STRIPE if not set on the account settings. * @property string $status Closed Enum. Current status of the OutboundPayment: processing, failed, posted, returned, canceled. An OutboundPayment is processing if it has been created and is processing. The status changes to posted once the OutboundPayment has been "confirmed" and funds have left the account, or to failed or canceled. If an OutboundPayment fails to arrive at its payout method, its status will change to returned. - * @property null|(object{failed?: (object{reason: string}&\Stripe\StripeObject), returned?: (object{reason: string}&\Stripe\StripeObject)}&\Stripe\StripeObject) $status_details Status details for an OutboundPayment in a failed or returned state. + * @property null|(object{failed?: (object{reason: string}&\Stripe\StripeObject), processing?: (object{reason: string}&\Stripe\StripeObject), returned?: (object{reason: string}&\Stripe\StripeObject)}&\Stripe\StripeObject) $status_details Status details for an OutboundPayment in a processing, failed, or returned state. * @property null|(object{canceled_at?: int, failed_at?: int, posted_at?: int, returned_at?: int}&\Stripe\StripeObject) $status_transitions Hash containing timestamps of when the object transitioned to a particular status. - * @property (object{credited: \Stripe\StripeObject, payout_method: string, recipient: string}&\Stripe\StripeObject) $to To which payout method the OutboundPayment was sent. + * @property (object{credited: \Stripe\StripeObject, payout_method: string, payout_method_options?: (object{bank_account?: (object{preferred_network_options?: (object{ach?: (object{submission?: string, transaction_purpose?: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), preferred_networks: string[]}&\Stripe\StripeObject)}&\Stripe\StripeObject), recipient: string}&\Stripe\StripeObject) $to To which payout method the OutboundPayment was sent. * @property (object{status: string, value?: string}&\Stripe\StripeObject) $trace_id A unique identifier that can be used to track this OutboundPayment with recipient bank. Banks might call this a "reference number" or something similar. * @property null|(object{paper_check?: (object{carrier: string, check_number: string, current_postal_code: string, mailing_address: (object{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}&\Stripe\StripeObject), tracking_number: string, tracking_status: string, updated_at: int}&\Stripe\StripeObject)}&\Stripe\StripeObject) $tracking_details Information to track this OutboundPayment with the recipient bank. */ diff --git a/lib/V2/MoneyManagement/OutboundTransfer.php b/lib/V2/MoneyManagement/OutboundTransfer.php index 14cc9bc10..5e75c9e29 100644 --- a/lib/V2/MoneyManagement/OutboundTransfer.php +++ b/lib/V2/MoneyManagement/OutboundTransfer.php @@ -22,9 +22,9 @@ * @property null|string $recipient_verification The recipient verification id for this OutboundTransfer. Only required for countries with regulatory mandates to verify recipient names before OutboundTransfer creation. * @property string $statement_descriptor The description that appears on the receiving end for an OutboundTransfer (for example, bank statement for external bank transfer). It will default to STRIPE if not set on the account settings. * @property string $status Closed Enum. Current status of the OutboundTransfer: processing, failed, posted, returned, canceled. An OutboundTransfer is processing if it has been created and is processing. The status changes to posted once the OutboundTransfer has been "confirmed" and funds have left the account, or to failed or canceled. If an OutboundTransfer fails to arrive at its payout method, its status will change to returned. - * @property null|(object{failed?: (object{reason: string}&\Stripe\StripeObject), returned?: (object{reason: string}&\Stripe\StripeObject)}&\Stripe\StripeObject) $status_details Status details for an OutboundTransfer in a failed or returned state. + * @property null|(object{failed?: (object{reason: string}&\Stripe\StripeObject), processing?: (object{reason: string}&\Stripe\StripeObject), returned?: (object{reason: string}&\Stripe\StripeObject)}&\Stripe\StripeObject) $status_details Status details for an OutboundTransfer in a processing, failed, or returned state. * @property null|(object{canceled_at?: int, failed_at?: int, posted_at?: int, returned_at?: int}&\Stripe\StripeObject) $status_transitions Hash containing timestamps of when the object transitioned to a particular status. - * @property (object{credited: \Stripe\StripeObject, payout_method: string}&\Stripe\StripeObject) $to To which payout method the OutboundTransfer was sent. + * @property (object{credited: \Stripe\StripeObject, payout_method: string, payout_method_options?: (object{bank_account?: (object{preferred_networks: string[]}&\Stripe\StripeObject)}&\Stripe\StripeObject)}&\Stripe\StripeObject) $to To which payout method the OutboundTransfer was sent. * @property (object{status: string, value?: string}&\Stripe\StripeObject) $trace_id A unique identifier that can be used to track this OutboundTransfer with recipient bank. Banks might call this a "reference number" or something similar. */ class OutboundTransfer extends \Stripe\ApiResource diff --git a/lib/V2/MoneyManagement/PayoutIntent.php b/lib/V2/MoneyManagement/PayoutIntent.php new file mode 100644 index 000000000..4afa19198 --- /dev/null +++ b/lib/V2/MoneyManagement/PayoutIntent.php @@ -0,0 +1,36 @@ +true if the object exists in live mode or the value false if the object exists in test mode. + * @property null|\Stripe\StripeObject $metadata Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. + * @property null|(object{handle_failure?: (object{failure_reason: string}&\Stripe\StripeObject), type: string}&\Stripe\StripeObject) $next_action Next action required for a PayoutIntent in the requires_action state. Populated when status is requires_action. + * @property null|(object{setting: string}&\Stripe\StripeObject) $recipient_notification Details about the OutboundPayment notification settings for recipient. Only applicable to OutboundPayment. + * @property null|(object{execute_on?: string}&\Stripe\StripeObject) $schedule_options Scheduling options for the payout. If this is nil, we assume immediate execution. + * @property null|string $statement_descriptor The description that appears on the receiving end for the payout (for example, on a bank statement). + * @property string $status Open Enum. Current status of the PayoutIntent: pending, processing, posted, canceled, requires_action. + * @property null|(object{canceled_at?: int, posted_at?: int, processing_at?: int, requires_action_at?: int}&\Stripe\StripeObject) $status_transitions Hash containing timestamps of when transitioned to a particular status. + * @property (object{currency?: string, payout_method?: string, payout_method_options?: (object{bank_account?: (object{preferred_network_options?: (object{ach?: (object{submission?: string, transaction_purpose?: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), preferred_networks: string[]}&\Stripe\StripeObject)}&\Stripe\StripeObject), recipient?: string}&\Stripe\StripeObject) $to To which payout method the payout is sent. + */ +class PayoutIntent extends \Stripe\ApiResource +{ + const OBJECT_NAME = 'v2.money_management.payout_intent'; + + const STATUS_CANCELED = 'canceled'; + const STATUS_PENDING = 'pending'; + const STATUS_POSTED = 'posted'; + const STATUS_PROCESSING = 'processing'; + const STATUS_REQUIRES_ACTION = 'requires_action'; +} diff --git a/lib/V2/MoneyManagement/ReceivedCredit.php b/lib/V2/MoneyManagement/ReceivedCredit.php index efdc35edd..3da704207 100644 --- a/lib/V2/MoneyManagement/ReceivedCredit.php +++ b/lib/V2/MoneyManagement/ReceivedCredit.php @@ -11,7 +11,7 @@ * @property string $object String representing the object's type. Objects of the same type share the same value of the object field. * @property \Stripe\StripeObject $amount The amount and currency of the ReceivedCredit. * @property null|(object{from_account?: string, outbound_payment?: string, outbound_transfer?: string, payout_v1?: string, transfer?: string, type: string}&\Stripe\StripeObject) $balance_transfer This object stores details about the originating Stripe transaction that resulted in the ReceivedCredit. Present if type field value is balance_transfer. - * @property null|(object{ca_bank_account?: (object{account_holder_name?: string, bank_name?: string, last4?: string, network: string}&\Stripe\StripeObject), eu_bank_account?: (object{account_holder_name?: string, bank_name?: string, bic?: string, last4?: string, network: string}&\Stripe\StripeObject), financial_address: string, gb_bank_account?: (object{account_holder_name?: string, bank_name?: string, last4?: string, network: string, sort_code?: string}&\Stripe\StripeObject), mx_bank_account?: (object{account_holder_name?: string, bank_name?: string, last4?: string, network: string}&\Stripe\StripeObject), origin_type: string, sepa_bank_account?: (object{account_holder_name?: string, bank_name?: string, bic?: string, country?: string, iban?: string, network: string}&\Stripe\StripeObject), statement_descriptor?: string, us_bank_account?: (object{bank_name?: string, last4?: string, network: string, routing_number?: string}&\Stripe\StripeObject)}&\Stripe\StripeObject) $bank_transfer This object stores details about the originating banking transaction that resulted in the ReceivedCredit. Present if type field value is bank_transfer. + * @property null|(object{ca_bank_account?: (object{account_holder_name?: string, bank_name?: string, last4?: string, network: string}&\Stripe\StripeObject), eu_bank_account?: (object{account_holder_name?: string, bank_name?: string, bic?: string, last4?: string, network: string}&\Stripe\StripeObject), financial_address: string, gb_bank_account?: (object{account_holder_name?: string, bank_name?: string, last4?: string, network: string, sort_code?: string}&\Stripe\StripeObject), mx_bank_account?: (object{account_holder_name?: string, bank_name?: string, last4?: string, network: string}&\Stripe\StripeObject), origin_type: string, sepa_bank_account?: (object{account_holder_name?: string, bank_name?: string, bic?: string, country?: string, iban?: string, network: string}&\Stripe\StripeObject), statement_descriptor?: string, us_bank_account?: (object{account_holder_name?: string, bank_name?: string, last4?: string, network: string, routing_number?: string}&\Stripe\StripeObject)}&\Stripe\StripeObject) $bank_transfer This object stores details about the originating banking transaction that resulted in the ReceivedCredit. Present if type field value is bank_transfer. * @property null|(object{card_v1_id: string, dispute?: (object{issuing_dispute_v1: string}&\Stripe\StripeObject), refund?: (object{issuing_transaction_v1: string}&\Stripe\StripeObject)}&\Stripe\StripeObject) $card_spend This object stores details about the originating issuing card spend that resulted in the ReceivedCredit. Present if type field value is card_spend. * @property int $created Time at which the ReceivedCredit was created. Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z. * @property null|(object{crypto_wallet: (object{address: string, memo: string, network: string}&\Stripe\StripeObject), financial_address: string, origin_type: string, statement_descriptor?: string}&\Stripe\StripeObject) $crypto_wallet_transfer This object stores details about the originating crypto transaction that resulted in the ReceivedCredit. Present if type field value is crypto_wallet_transfer. diff --git a/lib/V2/MoneyManagement/ReceivedDebit.php b/lib/V2/MoneyManagement/ReceivedDebit.php index de6375583..1e6375a48 100644 --- a/lib/V2/MoneyManagement/ReceivedDebit.php +++ b/lib/V2/MoneyManagement/ReceivedDebit.php @@ -21,8 +21,8 @@ * @property bool $livemode Has the value true if the object exists in live mode or the value false if the object exists in test mode. * @property null|string $receipt_url A link to the Stripe-hosted receipt for this ReceivedDebit. * @property string $status Open Enum. The status of the ReceivedDebit. - * @property null|(object{failed: (object{reason: string}&\Stripe\StripeObject)}&\Stripe\StripeObject) $status_details Detailed information about the status of the ReceivedDebit. - * @property null|(object{canceled_at?: int, failed_at?: int, succeeded_at?: int}&\Stripe\StripeObject) $status_transitions The time at which the ReceivedDebit transitioned to a particular status. + * @property null|(object{failed: (object{reason: string}&\Stripe\StripeObject), returned: (object{reason: string}&\Stripe\StripeObject)}&\Stripe\StripeObject) $status_details Detailed information about the status of the ReceivedDebit. + * @property null|(object{canceled_at?: int, failed_at?: int, returned_at?: int, succeeded_at?: int}&\Stripe\StripeObject) $status_transitions The time at which the ReceivedDebit transitioned to a particular status. * @property null|(object{debit_agreement?: string, statement_descriptor?: string}&\Stripe\StripeObject) $stripe_balance_payment This object stores details about the Stripe Balance Payment that resulted in the ReceivedDebit. * @property string $type Open Enum. The type of the ReceivedDebit. */ diff --git a/tests/Stripe/GeneratedExamplesTest.php b/tests/Stripe/GeneratedExamplesTest.php index 9151bcd13..98f878d4b 100644 --- a/tests/Stripe/GeneratedExamplesTest.php +++ b/tests/Stripe/GeneratedExamplesTest.php @@ -9205,6 +9205,7 @@ public function testV2CommerceProductCatalogImportGet() 'id' => 'obj_123', 'livemode' => [], 'metadata' => ['key' => 'metadata'], + 'mode' => 'upsert', 'status' => 'awaiting_upload', ], ], @@ -9238,6 +9239,7 @@ public function testV2CommerceProductCatalogImportPost() 'id' => 'obj_123', 'livemode' => [], 'metadata' => ['key' => 'metadata'], + 'mode' => 'upsert', 'status' => 'awaiting_upload', ], 200, @@ -9266,6 +9268,7 @@ public function testV2CommerceProductCatalogImportGet2() 'id' => 'obj_123', 'livemode' => [], 'metadata' => ['key' => 'metadata'], + 'mode' => 'upsert', 'status' => 'awaiting_upload', ], 200, @@ -9621,7 +9624,7 @@ public function testV2CoreAccountLinkPost() 'fields' => 'eventually_due', 'future_requirements' => 'include', ], - 'configurations' => ['storer'], + 'configurations' => ['merchant'], 'refresh_url' => 'refresh_url', 'return_url' => 'return_url', ], @@ -9630,7 +9633,7 @@ public function testV2CoreAccountLinkPost() 'fields' => 'eventually_due', 'future_requirements' => 'include', ], - 'configurations' => ['storer'], + 'configurations' => ['merchant'], 'refresh_url' => 'refresh_url', 'return_url' => 'return_url', ], @@ -9677,7 +9680,7 @@ public function testV2CoreAccountLinkPost() 'fields' => 'eventually_due', 'future_requirements' => 'include', ], - 'configurations' => ['storer'], + 'configurations' => ['merchant'], 'refresh_url' => 'refresh_url', 'return_url' => 'return_url', ], @@ -9686,7 +9689,7 @@ public function testV2CoreAccountLinkPost() 'fields' => 'eventually_due', 'future_requirements' => 'include', ], - 'configurations' => ['storer'], + 'configurations' => ['merchant'], 'refresh_url' => 'refresh_url', 'return_url' => 'return_url', ], @@ -9917,7 +9920,6 @@ public function testV2CoreBatchJobPost() 'http_method' => 'delete', 'path' => '/v1/products', ], - 'metadata' => ['key' => 'metadata'], 'skip_validation' => true, ], [], @@ -9927,7 +9929,6 @@ public function testV2CoreBatchJobPost() 'created' => '1970-01-12T21:42:34.472Z', 'id' => 'obj_123', 'livemode' => [], - 'maximum_rps' => [], 'metadata' => ['key' => 'metadata'], 'skip_validation' => [], 'status' => 'batch_failed', @@ -9940,7 +9941,6 @@ public function testV2CoreBatchJobPost() 'http_method' => 'delete', 'path' => '/v1/products', ], - 'metadata' => ['key' => 'metadata'], 'skip_validation' => true, ]); self::assertInstanceOf(V2\Core\BatchJob::class, $result); @@ -9959,7 +9959,6 @@ public function testV2CoreBatchJobGet() 'created' => '1970-01-12T21:42:34.472Z', 'id' => 'obj_123', 'livemode' => [], - 'maximum_rps' => [], 'metadata' => ['key' => 'metadata'], 'skip_validation' => [], 'status' => 'batch_failed', @@ -9984,7 +9983,6 @@ public function testV2CoreBatchJobPost2() 'created' => '1970-01-12T21:42:34.472Z', 'id' => 'obj_123', 'livemode' => [], - 'maximum_rps' => [], 'metadata' => ['key' => 'metadata'], 'skip_validation' => [], 'status' => 'batch_failed', @@ -10618,6 +10616,117 @@ public function testV2CoreFeeEntryGet2() self::assertInstanceOf(V2\Core\FeeEntry::class, $result); } + public function testV2CoreHealthAlertGet() + { + $this->stubRequest( + 'get', + '/v2/core/health/alerts', + [], + [], + false, + [ + 'data' => [ + '0' => [ + 'object' => 'v2.core.health.alert', + 'created' => '1970-01-12T21:42:34.472Z', + 'documentation_links' => [ + '0' => [ + 'label' => 'label', + 'url' => 'url', + ], + ], + 'grouping_key' => 'grouping_key', + 'grouping_type' => 'incident', + 'id' => 'obj_123', + 'livemode' => [], + 'severity' => 'non_critical', + 'started_at' => '1970-01-19T03:34:50.959Z', + 'status' => 'open', + 'summary' => 'summary', + 'type' => 'api_error', + ], + ], + 'next_page_url' => null, + 'previous_page_url' => null, + ], + 200, + BaseStripeClient::DEFAULT_API_BASE + ); + $result = $this->v2Client->v2->core->health->alerts->all([]); + self::assertInstanceOf(V2\Collection::class, $result); + self::assertInstanceOf(V2\Core\Health\Alert::class, $result->data[0]); + } + + public function testV2CoreHealthAlertGet2() + { + $this->stubRequest( + 'get', + '/v2/core/health/alerts/id_123', + [], + [], + false, + [ + 'object' => 'v2.core.health.alert', + 'created' => '1970-01-12T21:42:34.472Z', + 'documentation_links' => [ + '0' => [ + 'label' => 'label', + 'url' => 'url', + ], + ], + 'grouping_key' => 'grouping_key', + 'grouping_type' => 'incident', + 'id' => 'obj_123', + 'livemode' => [], + 'severity' => 'non_critical', + 'started_at' => '1970-01-19T03:34:50.959Z', + 'status' => 'open', + 'summary' => 'summary', + 'type' => 'api_error', + ], + 200, + BaseStripeClient::DEFAULT_API_BASE + ); + $result = $this->v2Client->v2->core->health->alerts->retrieve( + 'id_123', + [] + ); + self::assertInstanceOf(V2\Core\Health\Alert::class, $result); + } + + public function testV2CoreHealthAlertsHistoryGet() + { + $this->stubRequest( + 'get', + '/v2/core/health/alerts/id_123/history', + [], + [], + false, + [ + 'data' => [ + '0' => [ + 'object' => 'v2.core.health.alert_history_entry', + 'at' => '1970-01-01T00:00:03.123Z', + 'id' => 'obj_123', + 'livemode' => [], + 'transition' => 'impact_updated', + 'type' => 'api_error', + ], + ], + 'next_page_url' => null, + 'previous_page_url' => null, + ], + 200, + BaseStripeClient::DEFAULT_API_BASE + ); + $result = $this->v2Client->v2->core->health->alerts->history->all( + 'id_123', + [] + ); + self::assertInstanceOf(V2\Collection::class, $result); + self::assertInstanceOf(V2\Core\Health\AlertHistoryEntry::class, $result->data[0]); + } + public function testV2CoreVaultGbBankAccountGet() { $this->stubRequest( @@ -12556,6 +12665,17 @@ public function testV2MoneyManagementOutboundPaymentPost() 'to' => [ 'currency' => 'usd', 'payout_method' => 'payout_method', + 'payout_method_options' => [ + 'bank_account' => [ + 'preferred_network_options' => [ + 'ach' => [ + 'submission' => 'next_day', + 'transaction_purpose' => 'payroll', + ], + ], + 'preferred_networks' => ['sepa_credit'], + ], + ], 'recipient' => 'recipient', ], ], @@ -12606,6 +12726,17 @@ public function testV2MoneyManagementOutboundPaymentPost() 'to' => [ 'currency' => 'usd', 'payout_method' => 'payout_method', + 'payout_method_options' => [ + 'bank_account' => [ + 'preferred_network_options' => [ + 'ach' => [ + 'submission' => 'next_day', + 'transaction_purpose' => 'payroll', + ], + ], + 'preferred_networks' => ['sepa_credit'], + ], + ], 'recipient' => 'recipient', ], ]); @@ -13112,6 +13243,11 @@ public function testV2MoneyManagementOutboundTransferPost() 'to' => [ 'currency' => 'usd', 'payout_method' => 'payout_method', + 'payout_method_options' => [ + 'bank_account' => [ + 'preferred_networks' => ['sepa_credit'], + ], + ], ], ], [], @@ -13159,6 +13295,9 @@ public function testV2MoneyManagementOutboundTransferPost() 'to' => [ 'currency' => 'usd', 'payout_method' => 'payout_method', + 'payout_method_options' => [ + 'bank_account' => ['preferred_networks' => ['sepa_credit']], + ], ], ]); self::assertInstanceOf(V2\MoneyManagement\OutboundTransfer::class, $result); @@ -13256,6 +13395,232 @@ public function testV2MoneyManagementOutboundTransferPost2() self::assertInstanceOf(V2\MoneyManagement\OutboundTransfer::class, $result); } + public function testV2MoneyManagementPayoutIntentGet() + { + $this->stubRequest( + 'get', + '/v2/money_management/payout_intents', + [], + [], + false, + [ + 'data' => [ + '0' => [ + 'object' => 'v2.money_management.payout_intent', + 'amount' => [ + 'currency' => 'USD', + 'value' => [], + ], + 'created' => '1970-01-12T21:42:34.472Z', + 'from' => [ + 'currency' => 'usd', + 'financial_account' => 'financial_account', + ], + 'id' => 'obj_123', + 'latest_payout' => ['type' => 'outbound_payment'], + 'livemode' => [], + 'status' => 'canceled', + 'to' => [], + ], + ], + 'next_page_url' => null, + 'previous_page_url' => null, + ], + 200, + BaseStripeClient::DEFAULT_API_BASE + ); + $result = $this->v2Client->v2->moneyManagement->payoutIntents->all([]); + self::assertInstanceOf(V2\Collection::class, $result); + self::assertInstanceOf(V2\MoneyManagement\PayoutIntent::class, $result->data[0]); + } + + public function testV2MoneyManagementPayoutIntentPost() + { + $this->stubRequest( + 'post', + '/v2/money_management/payout_intents', + [ + 'amount' => [ + 'currency' => 'USD', + 'value' => 96, + ], + 'from' => [ + 'currency' => 'usd', + 'financial_account' => 'financial_account', + ], + 'to' => [ + 'currency' => 'usd', + 'payout_method' => 'payout_method', + 'payout_method_options' => [ + 'bank_account' => [ + 'preferred_network_options' => [ + 'ach' => [ + 'submission' => 'next_day', + 'transaction_purpose' => 'payroll', + ], + ], + 'preferred_networks' => ['sepa_credit'], + ], + ], + 'recipient' => 'recipient', + ], + ], + [], + false, + [ + 'object' => 'v2.money_management.payout_intent', + 'amount' => [ + 'currency' => 'USD', + 'value' => [], + ], + 'created' => '1970-01-12T21:42:34.472Z', + 'from' => [ + 'currency' => 'usd', + 'financial_account' => 'financial_account', + ], + 'id' => 'obj_123', + 'latest_payout' => ['type' => 'outbound_payment'], + 'livemode' => [], + 'status' => 'canceled', + 'to' => [], + ], + 200, + BaseStripeClient::DEFAULT_API_BASE + ); + $result = $this->v2Client->v2->moneyManagement->payoutIntents->create([ + 'amount' => [ + 'currency' => 'USD', + 'value' => 96, + ], + 'from' => [ + 'currency' => 'usd', + 'financial_account' => 'financial_account', + ], + 'to' => [ + 'currency' => 'usd', + 'payout_method' => 'payout_method', + 'payout_method_options' => [ + 'bank_account' => [ + 'preferred_network_options' => [ + 'ach' => [ + 'submission' => 'next_day', + 'transaction_purpose' => 'payroll', + ], + ], + 'preferred_networks' => ['sepa_credit'], + ], + ], + 'recipient' => 'recipient', + ], + ]); + self::assertInstanceOf(V2\MoneyManagement\PayoutIntent::class, $result); + } + + public function testV2MoneyManagementPayoutIntentGet2() + { + $this->stubRequest( + 'get', + '/v2/money_management/payout_intents/id_123', + [], + [], + false, + [ + 'object' => 'v2.money_management.payout_intent', + 'amount' => [ + 'currency' => 'USD', + 'value' => [], + ], + 'created' => '1970-01-12T21:42:34.472Z', + 'from' => [ + 'currency' => 'usd', + 'financial_account' => 'financial_account', + ], + 'id' => 'obj_123', + 'latest_payout' => ['type' => 'outbound_payment'], + 'livemode' => [], + 'status' => 'canceled', + 'to' => [], + ], + 200, + BaseStripeClient::DEFAULT_API_BASE + ); + $result = $this->v2Client->v2->moneyManagement->payoutIntents->retrieve( + 'id_123', + [] + ); + self::assertInstanceOf(V2\MoneyManagement\PayoutIntent::class, $result); + } + + public function testV2MoneyManagementPayoutIntentPost2() + { + $this->stubRequest( + 'post', + '/v2/money_management/payout_intents/id_123', + [], + [], + false, + [ + 'object' => 'v2.money_management.payout_intent', + 'amount' => [ + 'currency' => 'USD', + 'value' => [], + ], + 'created' => '1970-01-12T21:42:34.472Z', + 'from' => [ + 'currency' => 'usd', + 'financial_account' => 'financial_account', + ], + 'id' => 'obj_123', + 'latest_payout' => ['type' => 'outbound_payment'], + 'livemode' => [], + 'status' => 'canceled', + 'to' => [], + ], + 200, + BaseStripeClient::DEFAULT_API_BASE + ); + $result = $this->v2Client->v2->moneyManagement->payoutIntents->update( + 'id_123', + [] + ); + self::assertInstanceOf(V2\MoneyManagement\PayoutIntent::class, $result); + } + + public function testV2MoneyManagementPayoutIntentPost3() + { + $this->stubRequest( + 'post', + '/v2/money_management/payout_intents/id_123/cancel', + [], + [], + false, + [ + 'object' => 'v2.money_management.payout_intent', + 'amount' => [ + 'currency' => 'USD', + 'value' => [], + ], + 'created' => '1970-01-12T21:42:34.472Z', + 'from' => [ + 'currency' => 'usd', + 'financial_account' => 'financial_account', + ], + 'id' => 'obj_123', + 'latest_payout' => ['type' => 'outbound_payment'], + 'livemode' => [], + 'status' => 'canceled', + 'to' => [], + ], + 200, + BaseStripeClient::DEFAULT_API_BASE + ); + $result = $this->v2Client->v2->moneyManagement->payoutIntents->cancel( + 'id_123', + [] + ); + self::assertInstanceOf(V2\MoneyManagement\PayoutIntent::class, $result); + } + public function testV2MoneyManagementPayoutMethodGet() { $this->stubRequest( @@ -13645,6 +14010,41 @@ public function testV2MoneyManagementRecipientVerificationPost2() self::assertInstanceOf(V2\MoneyManagement\RecipientVerification::class, $result); } + public function testV2MoneyManagementTestHelpersFinancialAddressPost() + { + $this->stubRequest( + 'post', + '/v2/money_management/test_helpers/financial_addresses/id_123/debit', + [ + 'amount' => [ + 'currency' => 'USD', + 'value' => 96, + ], + 'network' => 'ach', + ], + [], + false, + [ + 'object' => 'v2.money_management.financial_address_debit_simulation', + 'livemode' => [], + 'status' => 'status', + ], + 200, + BaseStripeClient::DEFAULT_API_BASE + ); + $result = $this->v2Client->v2->moneyManagement->testHelpers->financialAddresses->debit( + 'id_123', + [ + 'amount' => [ + 'currency' => 'USD', + 'value' => 96, + ], + 'network' => 'ach', + ] + ); + self::assertInstanceOf(V2\MoneyManagement\FinancialAddressDebitSimulation::class, $result); + } + public function testV2MoneyManagementTransactionGet() { $this->stubRequest( @@ -15344,7 +15744,7 @@ public function testControlledByAlternateResourceError() { $this->stubRequest( 'post', - '/v2/money_management/outbound_setup_intents', + '/v2/core/vault/us_bank_accounts/id_123/confirm_microdeposits', [], [], false, @@ -15359,7 +15759,10 @@ public function testControlledByAlternateResourceError() ); try { - $this->v2Client->v2->moneyManagement->outboundSetupIntents->create([]); + $this->v2Client->v2->core->vault->usBankAccounts->confirmMicrodeposits( + 'id_123', + [] + ); } catch (Exception\ControlledByAlternateResourceException $e) { } } From 0d52a2885b28b69bc0442e4560b052f1bb170e1e Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Thu, 18 Jun 2026 18:54:50 +0000 Subject: [PATCH 2/8] Update generated code for v2317 and 1debceb20294e6ac30efa795346a646e758afc01 --- CODEGEN_VERSION | 2 +- OPENAPI_VERSION | 2 +- lib/AccountSession.php | 4 ++-- lib/Charge.php | 2 +- lib/Checkout/Session.php | 3 ++- lib/GiftCardOperation.php | 2 ++ lib/Issuing/Authorization.php | 3 ++- lib/PaymentAttemptRecord.php | 19 +++++++++++++++- lib/PaymentRecord.php | 17 +++++++++++++- lib/Service/AccountSessionService.php | 2 +- lib/Service/Checkout/SessionService.php | 2 +- lib/Service/PaymentAttemptRecordService.php | 19 +++++++++++++++- lib/Service/PaymentRecordService.php | 22 ++++++++++++++++++- .../TestHelpers/Issuing/DisputeService.php | 19 ++++++++++++++++ lib/Service/V2/Billing/ContractService.php | 2 +- lib/Tax/TransactionLineItem.php | 1 - 16 files changed, 106 insertions(+), 15 deletions(-) diff --git a/CODEGEN_VERSION b/CODEGEN_VERSION index 298265bf2..9dc8b76e5 100644 --- a/CODEGEN_VERSION +++ b/CODEGEN_VERSION @@ -1 +1 @@ -dbdc3899df7b4f258f74613c02cf8ed4b80b519a \ No newline at end of file +1debceb20294e6ac30efa795346a646e758afc01 \ No newline at end of file diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 5a83b26fd..c35694dd6 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v2315 \ No newline at end of file +v2317 \ No newline at end of file diff --git a/lib/AccountSession.php b/lib/AccountSession.php index 4568c7414..b5b1efc6f 100644 --- a/lib/AccountSession.php +++ b/lib/AccountSession.php @@ -16,7 +16,7 @@ * @property string $object String representing the object's type. Objects of the same type share the same value. * @property string $account The ID of the account the AccountSession was created for * @property string $client_secret

The client secret of this AccountSession. Used on the client to set up secure access to the given account.

The client secret can be used to provide access to account from your frontend. It should not be stored, logged, or exposed to anyone other than the connected account. Make sure that you have TLS enabled on any page that includes the client secret.

Refer to our docs to setup Connect embedded components and learn about how client_secret should be handled.

- * @property (object{account_management: (object{enabled: bool, features: (object{disable_stripe_user_authentication: bool, external_account_collection: bool}&StripeObject)}&StripeObject), account_onboarding: (object{enabled: bool, features: (object{disable_stripe_user_authentication: bool, external_account_collection: bool}&StripeObject)}&StripeObject), agentic_commerce_settings?: null|(object{enabled: bool, features: (object{}&StripeObject)}&StripeObject), balance_report: (object{enabled: bool, features: (object{}&StripeObject)}&StripeObject), balances: (object{enabled: bool, features: (object{disable_stripe_user_authentication: bool, edit_payout_schedule: bool, external_account_collection: bool, instant_payouts: bool, standard_payouts: bool}&StripeObject)}&StripeObject), bills?: null|(object{enabled: bool, features: (object{bill_management: bool, disable_stripe_user_authentication: bool, send_money: bool}&StripeObject)}&StripeObject), capital_financing?: null|(object{enabled: bool, features: (object{}&StripeObject)}&StripeObject), capital_financing_application?: null|(object{enabled: bool, features: (object{}&StripeObject)}&StripeObject), capital_financing_promotion?: null|(object{enabled: bool, features: (object{}&StripeObject)}&StripeObject), check_scanning?: null|(object{enabled: bool, features: (object{}&StripeObject)}&StripeObject), disputes_list: (object{enabled: bool, features: (object{capture_payments: bool, destination_on_behalf_of_charge_management: bool, dispute_management: bool, refund_management: bool}&StripeObject)}&StripeObject), documents: (object{enabled: bool, features: (object{}&StripeObject)}&StripeObject), financial_account: (object{enabled: bool, features: (object{disable_stripe_user_authentication: bool, external_account_collection: bool, send_money: bool, transfer_balance: bool}&StripeObject)}&StripeObject), financial_account_rewards?: null|(object{enabled: bool, features: (object{}&StripeObject)}&StripeObject), financial_account_transactions: (object{enabled: bool, features: (object{card_spend_dispute_management: bool}&StripeObject)}&StripeObject), instant_payouts_promotion: (object{enabled: bool, features: (object{disable_stripe_user_authentication: bool, external_account_collection: bool, instant_payouts: bool}&StripeObject)}&StripeObject), issuing_card: (object{enabled: bool, features: (object{card_management: bool, card_spend_dispute_management: bool, cardholder_management: bool, spend_control_management: bool}&StripeObject)}&StripeObject), issuing_cards_list: (object{enabled: bool, features: (object{card_management: bool, card_spend_dispute_management: bool, cardholder_management: bool, disable_stripe_user_authentication: bool, spend_control_management: bool}&StripeObject)}&StripeObject), nesting_demo?: null|(object{enabled: bool, features: (object{}&StripeObject)}&StripeObject), network_cost_passthrough_report?: null|(object{enabled: bool, features: (object{}&StripeObject)}&StripeObject), notification_banner: (object{enabled: bool, features: (object{disable_stripe_user_authentication: bool, external_account_collection: bool}&StripeObject)}&StripeObject), payment_details: (object{enabled: bool, features: (object{capture_payments: bool, destination_on_behalf_of_charge_management: bool, dispute_management: bool, refund_management: bool}&StripeObject)}&StripeObject), payment_disputes: (object{enabled: bool, features: (object{destination_on_behalf_of_charge_management: bool, dispute_management: bool, refund_management: bool}&StripeObject)}&StripeObject), payments: (object{enabled: bool, features: (object{capture_payments: bool, destination_on_behalf_of_charge_management: bool, dispute_management: bool, refund_management: bool}&StripeObject)}&StripeObject), payout_details: (object{enabled: bool, features: (object{}&StripeObject)}&StripeObject), payout_reconciliation_report: (object{enabled: bool, features: (object{}&StripeObject)}&StripeObject), payouts: (object{enabled: bool, features: (object{disable_stripe_user_authentication: bool, edit_payout_schedule: bool, external_account_collection: bool, instant_payouts: bool, standard_payouts: bool}&StripeObject)}&StripeObject), payouts_list: (object{enabled: bool, features: (object{}&StripeObject)}&StripeObject), tax_registrations: (object{enabled: bool, features: (object{}&StripeObject)}&StripeObject), tax_settings: (object{enabled: bool, features: (object{}&StripeObject)}&StripeObject), terminal_hardware_orders?: null|(object{enabled: bool, features: (object{}&StripeObject)}&StripeObject), terminal_hardware_shop?: null|(object{enabled: bool, features: (object{}&StripeObject)}&StripeObject)}&StripeObject) $components + * @property (object{account_management: (object{enabled: bool, features: (object{disable_stripe_user_authentication: bool, external_account_collection: bool}&StripeObject)}&StripeObject), account_onboarding: (object{enabled: bool, features: (object{disable_stripe_user_authentication: bool, external_account_collection: bool}&StripeObject)}&StripeObject), agentic_commerce_settings?: null|(object{enabled: bool, features: (object{}&StripeObject)}&StripeObject), balance_report: (object{enabled: bool, features: (object{}&StripeObject)}&StripeObject), balances: (object{enabled: bool, features: (object{disable_stripe_user_authentication: bool, edit_payout_schedule: bool, external_account_collection: bool, instant_payouts: bool, standard_payouts: bool}&StripeObject)}&StripeObject), bills?: null|(object{enabled: bool, features: (object{bill_management: bool, disable_stripe_user_authentication: bool, send_money: bool}&StripeObject)}&StripeObject), capital_financing?: null|(object{enabled: bool, features: (object{}&StripeObject)}&StripeObject), capital_financing_application?: null|(object{enabled: bool, features: (object{}&StripeObject)}&StripeObject), capital_financing_promotion?: null|(object{enabled: bool, features: (object{}&StripeObject)}&StripeObject), check_scanning?: null|(object{enabled: bool, features: (object{}&StripeObject)}&StripeObject), disputes_list: (object{enabled: bool, features: (object{capture_payments: bool, destination_on_behalf_of_charge_management: bool, dispute_management: bool, refund_management: bool}&StripeObject)}&StripeObject), documents: (object{enabled: bool, features: (object{}&StripeObject)}&StripeObject), financial_account: (object{enabled: bool, features: (object{disable_stripe_user_authentication: bool, external_account_collection: bool, send_money: bool, transfer_balance: bool}&StripeObject)}&StripeObject), financial_account_rewards?: null|(object{enabled: bool, features: (object{}&StripeObject)}&StripeObject), financial_account_transactions: (object{enabled: bool, features: (object{card_spend_dispute_management: bool}&StripeObject)}&StripeObject), financial_accounts?: null|(object{enabled: bool, features: (object{bill_management: bool, card_management: bool, disable_stripe_user_authentication: bool, edit_payout_schedule: bool, send_money: bool}&StripeObject)}&StripeObject), financial_accounts_transactions?: null|(object{enabled: bool, features: (object{capture_payments: bool, card_management: bool, card_spend_dispute_management: bool, destination_on_behalf_of_charge_management: bool, dispute_management: bool, refund_management: bool}&StripeObject)}&StripeObject), instant_payouts_promotion: (object{enabled: bool, features: (object{disable_stripe_user_authentication: bool, external_account_collection: bool, instant_payouts: bool}&StripeObject)}&StripeObject), issuing_card: (object{enabled: bool, features: (object{card_management: bool, card_spend_dispute_management: bool, cardholder_management: bool, spend_control_management: bool}&StripeObject)}&StripeObject), issuing_cards_list: (object{enabled: bool, features: (object{card_management: bool, card_spend_dispute_management: bool, cardholder_management: bool, disable_stripe_user_authentication: bool, spend_control_management: bool}&StripeObject)}&StripeObject), nesting_demo?: null|(object{enabled: bool, features: (object{}&StripeObject)}&StripeObject), network_cost_passthrough_report?: null|(object{enabled: bool, features: (object{}&StripeObject)}&StripeObject), notification_banner: (object{enabled: bool, features: (object{disable_stripe_user_authentication: bool, external_account_collection: bool}&StripeObject)}&StripeObject), payment_details: (object{enabled: bool, features: (object{capture_payments: bool, destination_on_behalf_of_charge_management: bool, dispute_management: bool, refund_management: bool}&StripeObject)}&StripeObject), payment_disputes: (object{enabled: bool, features: (object{destination_on_behalf_of_charge_management: bool, dispute_management: bool, refund_management: bool}&StripeObject)}&StripeObject), payments: (object{enabled: bool, features: (object{capture_payments: bool, destination_on_behalf_of_charge_management: bool, dispute_management: bool, refund_management: bool}&StripeObject)}&StripeObject), payout_details: (object{enabled: bool, features: (object{}&StripeObject)}&StripeObject), payout_reconciliation_report: (object{enabled: bool, features: (object{}&StripeObject)}&StripeObject), payouts: (object{enabled: bool, features: (object{disable_stripe_user_authentication: bool, edit_payout_schedule: bool, external_account_collection: bool, instant_payouts: bool, standard_payouts: bool}&StripeObject)}&StripeObject), payouts_list: (object{enabled: bool, features: (object{}&StripeObject)}&StripeObject), recipients_list?: null|(object{enabled: bool, features: (object{disable_stripe_user_authentication: bool, send_money: bool}&StripeObject)}&StripeObject), tax_registrations: (object{enabled: bool, features: (object{}&StripeObject)}&StripeObject), tax_settings: (object{enabled: bool, features: (object{}&StripeObject)}&StripeObject), terminal_hardware_orders?: null|(object{enabled: bool, features: (object{}&StripeObject)}&StripeObject), terminal_hardware_shop?: null|(object{enabled: bool, features: (object{}&StripeObject)}&StripeObject)}&StripeObject) $components * @property int $expires_at The timestamp at which this AccountSession will expire. * @property bool $livemode If the object exists in live mode, the value is true. If the object exists in test mode, the value is false. */ @@ -28,7 +28,7 @@ class AccountSession extends ApiResource * Creates a AccountSession object that includes a single-use token that the * platform can use on their front-end to grant client-side API access. * - * @param null|array{account: string, components: array{account_management?: array{enabled: bool, features?: array{disable_stripe_user_authentication?: bool, external_account_collection?: bool}}, account_onboarding?: array{enabled: bool, features?: array{disable_stripe_user_authentication?: bool, external_account_collection?: bool}}, agentic_commerce_settings?: array{enabled: bool, features?: array{}}, app_install?: array{enabled: bool, features?: array{allowed_apps?: null|string[]}}, app_viewport?: array{enabled: bool, features?: array{allowed_apps?: null|string[]}}, balance_report?: array{enabled: bool, features?: array{}}, balances?: array{enabled: bool, features?: array{disable_stripe_user_authentication?: bool, edit_payout_schedule?: bool, external_account_collection?: bool, instant_payouts?: bool, standard_payouts?: bool}}, capital_financing?: array{enabled: bool, features?: array{}}, capital_financing_application?: array{enabled: bool, features?: array{}}, capital_financing_promotion?: array{enabled: bool, features?: array{}}, capital_overview?: array{enabled: bool, features?: array{}}, check_scanning?: array{enabled: bool, features?: array{create_us_paper_check_on_application?: bool}}, disputes_list?: array{enabled: bool, features?: array{capture_payments?: bool, destination_on_behalf_of_charge_management?: bool, dispute_management?: bool, refund_management?: bool}}, documents?: array{enabled: bool, features?: array{}}, export_tax_transactions?: array{enabled: bool, features?: array{}}, financial_account?: array{enabled: bool, features?: array{disable_stripe_user_authentication?: bool, external_account_collection?: bool, send_money?: bool, transfer_balance?: bool}}, financial_account_transactions?: array{enabled: bool, features?: array{card_spend_dispute_management?: bool}}, instant_payouts_promotion?: array{enabled: bool, features?: array{disable_stripe_user_authentication?: bool, external_account_collection?: bool, instant_payouts?: bool}}, issuing_card?: array{enabled: bool, features?: array{card_management?: bool, card_spend_dispute_management?: bool, cardholder_management?: bool, spend_control_management?: bool}}, issuing_cards_list?: array{enabled: bool, features?: array{card_management?: bool, card_spend_dispute_management?: bool, cardholder_management?: bool, disable_stripe_user_authentication?: bool, spend_control_management?: bool}}, notification_banner?: array{enabled: bool, features?: array{disable_stripe_user_authentication?: bool, external_account_collection?: bool}}, payment_details?: array{enabled: bool, features?: array{capture_payments?: bool, destination_on_behalf_of_charge_management?: bool, dispute_management?: bool, refund_management?: bool}}, payment_disputes?: array{enabled: bool, features?: array{destination_on_behalf_of_charge_management?: bool, dispute_management?: bool, refund_management?: bool}}, payment_method_settings?: array{enabled: bool, features?: array{}}, payments?: array{enabled: bool, features?: array{capture_payments?: bool, destination_on_behalf_of_charge_management?: bool, dispute_management?: bool, refund_management?: bool}}, payout_details?: array{enabled: bool, features?: array{}}, payout_reconciliation_report?: array{enabled: bool, features?: array{}}, payouts?: array{enabled: bool, features?: array{disable_stripe_user_authentication?: bool, edit_payout_schedule?: bool, external_account_collection?: bool, instant_payouts?: bool, standard_payouts?: bool}}, payouts_list?: array{enabled: bool, features?: array{}}, product_tax_code_selector?: array{enabled: bool, features?: array{}}, recipients?: array{enabled: bool, features?: array{send_money?: bool}}, reporting_chart?: array{enabled: bool, features?: array{}}, tax_registrations?: array{enabled: bool, features?: array{}}, tax_settings?: array{enabled: bool, features?: array{}}, tax_threshold_monitoring?: array{enabled: bool, features?: array{}}, terminal_hardware_orders?: array{enabled: bool, features?: array{}}, terminal_hardware_shop?: array{enabled: bool, features?: array{}}}, expand?: string[]} $params + * @param null|array{account: string, components: array{account_management?: array{enabled: bool, features?: array{disable_stripe_user_authentication?: bool, external_account_collection?: bool}}, account_onboarding?: array{enabled: bool, features?: array{disable_stripe_user_authentication?: bool, external_account_collection?: bool}}, agentic_commerce_settings?: array{enabled: bool, features?: array{}}, app_install?: array{enabled: bool, features?: array{allowed_apps?: null|string[]}}, app_viewport?: array{enabled: bool, features?: array{allowed_apps?: null|string[]}}, balance_report?: array{enabled: bool, features?: array{}}, balances?: array{enabled: bool, features?: array{disable_stripe_user_authentication?: bool, edit_payout_schedule?: bool, external_account_collection?: bool, instant_payouts?: bool, standard_payouts?: bool}}, capital_financing?: array{enabled: bool, features?: array{}}, capital_financing_application?: array{enabled: bool, features?: array{}}, capital_financing_promotion?: array{enabled: bool, features?: array{}}, capital_overview?: array{enabled: bool, features?: array{}}, check_scanning?: array{enabled: bool, features?: array{create_us_paper_check_on_application?: bool}}, disputes_list?: array{enabled: bool, features?: array{capture_payments?: bool, destination_on_behalf_of_charge_management?: bool, dispute_management?: bool, refund_management?: bool}}, documents?: array{enabled: bool, features?: array{}}, export_tax_transactions?: array{enabled: bool, features?: array{}}, financial_account?: array{enabled: bool, features?: array{disable_stripe_user_authentication?: bool, external_account_collection?: bool, send_money?: bool, transfer_balance?: bool}}, financial_account_transactions?: array{enabled: bool, features?: array{card_spend_dispute_management?: bool}}, financial_accounts?: array{features?: array{}}, financial_accounts_transactions?: array{features?: array{}}, instant_payouts_promotion?: array{enabled: bool, features?: array{disable_stripe_user_authentication?: bool, external_account_collection?: bool, instant_payouts?: bool}}, issuing_card?: array{enabled: bool, features?: array{card_management?: bool, card_spend_dispute_management?: bool, cardholder_management?: bool, spend_control_management?: bool}}, issuing_cards_list?: array{enabled: bool, features?: array{card_management?: bool, card_spend_dispute_management?: bool, cardholder_management?: bool, disable_stripe_user_authentication?: bool, spend_control_management?: bool}}, notification_banner?: array{enabled: bool, features?: array{disable_stripe_user_authentication?: bool, external_account_collection?: bool}}, payment_details?: array{enabled: bool, features?: array{capture_payments?: bool, destination_on_behalf_of_charge_management?: bool, dispute_management?: bool, refund_management?: bool}}, payment_disputes?: array{enabled: bool, features?: array{destination_on_behalf_of_charge_management?: bool, dispute_management?: bool, refund_management?: bool}}, payment_method_settings?: array{enabled: bool, features?: array{}}, payments?: array{enabled: bool, features?: array{capture_payments?: bool, destination_on_behalf_of_charge_management?: bool, dispute_management?: bool, refund_management?: bool}}, payout_details?: array{enabled: bool, features?: array{}}, payout_reconciliation_report?: array{enabled: bool, features?: array{}}, payouts?: array{enabled: bool, features?: array{disable_stripe_user_authentication?: bool, edit_payout_schedule?: bool, external_account_collection?: bool, instant_payouts?: bool, standard_payouts?: bool}}, payouts_list?: array{enabled: bool, features?: array{}}, product_tax_code_selector?: array{enabled: bool, features?: array{}}, recipients?: array{enabled: bool, features?: array{send_money?: bool}}, recipients_list?: array{features?: array{}}, reporting_chart?: array{enabled: bool, features?: array{}}, tax_registrations?: array{enabled: bool, features?: array{}}, tax_settings?: array{enabled: bool, features?: array{}}, tax_threshold_monitoring?: array{enabled: bool, features?: array{}}, terminal_hardware_orders?: array{enabled: bool, features?: array{}}, terminal_hardware_shop?: array{enabled: bool, features?: array{}}}, expand?: string[]} $params * @param null|array|string $options * * @return AccountSession the created resource diff --git a/lib/Charge.php b/lib/Charge.php index af34378e7..4d913b18c 100644 --- a/lib/Charge.php +++ b/lib/Charge.php @@ -40,7 +40,7 @@ * @property bool $paid true if the charge succeeded, or was successfully authorized for later capture. * @property null|PaymentIntent|string $payment_intent ID of the PaymentIntent associated with this charge, if one exists. * @property null|string $payment_method ID of the payment method used in this charge. - * @property null|(object{ach_credit_transfer?: (object{account_number: null|string, bank_name: null|string, routing_number: null|string, swift_code: null|string}&StripeObject), ach_debit?: (object{account_holder_type: null|string, bank_name: null|string, country: null|string, fingerprint: null|string, last4: null|string, routing_number: null|string}&StripeObject), acss_debit?: (object{bank_name: null|string, expected_debit_date?: string, fingerprint: null|string, institution_number: null|string, last4: null|string, mandate?: string, transit_number: null|string}&StripeObject), affirm?: (object{location?: string, reader?: string, transaction_id: null|string}&StripeObject), afterpay_clearpay?: (object{order_id: null|string, reference: null|string}&StripeObject), alipay?: (object{buyer_id?: string, fingerprint: null|string, transaction_id: null|string}&StripeObject), alma?: (object{installments?: (object{count: int}&StripeObject), transaction_id: null|string}&StripeObject), amazon_pay?: (object{funding?: (object{card?: (object{brand: null|string, brand_product?: null|string, country: null|string, exp_month: null|int, exp_year: null|int, funding: null|string, last4: null|string}&StripeObject), type: null|string}&StripeObject), transaction_id: null|string}&StripeObject), au_becs_debit?: (object{bsb_number: null|string, expected_debit_date?: string, fingerprint: null|string, last4: null|string, mandate?: string}&StripeObject), bacs_debit?: (object{expected_debit_date?: string, fingerprint: null|string, last4: null|string, mandate: null|string, sort_code: null|string}&StripeObject), bancontact?: (object{bank_code: null|string, bank_name: null|string, bic: null|string, generated_sepa_debit: null|PaymentMethod|string, generated_sepa_debit_mandate: null|Mandate|string, iban_last4: null|string, preferred_language: null|string, verified_name: null|string}&StripeObject), billie?: (object{transaction_id: null|string}&StripeObject), bizum?: (object{transaction_id: null|string}&StripeObject), blik?: (object{buyer_id: null|string}&StripeObject), boleto?: (object{tax_id: string}&StripeObject), card?: (object{account_funding?: (object{status: string}&StripeObject), amount_authorized: null|int, amount_requested?: null|int, authorization_code: null|string, benefits?: (object{fr_meal_voucher?: (object{siret: string}&StripeObject), issuer: null|string}&StripeObject), brand: null|string, capture_before?: int, checks: null|(object{address_line1_check: null|string, address_postal_code_check: null|string, cvc_check: null|string}&StripeObject), country: null|string, decremental_authorization?: (object{status: string}&StripeObject), description?: null|string, exp_month: int, exp_year: int, extended_authorization?: (object{status: string}&StripeObject), fingerprint?: null|string, funding: null|string, iin?: null|string, incremental_authorization?: (object{status: string}&StripeObject), installments: null|(object{plan: null|(object{count: null|int, interval: null|string, type: string}&StripeObject)}&StripeObject), issuer?: null|string, last4: null|string, mandate: null|string, moto?: null|bool, multicapture?: (object{status: string}&StripeObject), network: null|string, network_token?: null|(object{used: bool}&StripeObject), network_transaction_id: null|string, overcapture?: (object{maximum_amount_capturable: int, status: string}&StripeObject), partial_authorization?: (object{status: string}&StripeObject), reauthorization?: null|(object{status: string}&StripeObject), reauthorize_before?: null|int, regulated_status: null|string, three_d_secure: null|(object{authentication_flow: null|string, electronic_commerce_indicator: null|string, exemption_indicator: null|string, exemption_indicator_applied?: bool, result: null|string, result_reason: null|string, transaction_id: null|string, version: null|string}&StripeObject), wallet: null|(object{amex_express_checkout?: (object{}&StripeObject), apple_pay?: (object{}&StripeObject), dynamic_last4: null|string, google_pay?: (object{}&StripeObject), link?: (object{}&StripeObject), masterpass?: (object{billing_address: null|(object{city: null|string, country: null|string, line1: null|string, line2: null|string, postal_code: null|string, state: null|string}&StripeObject), email: null|string, name: null|string, shipping_address: null|(object{city: null|string, country: null|string, line1: null|string, line2: null|string, postal_code: null|string, state: null|string}&StripeObject)}&StripeObject), samsung_pay?: (object{}&StripeObject), type: string, visa_checkout?: (object{billing_address: null|(object{city: null|string, country: null|string, line1: null|string, line2: null|string, postal_code: null|string, state: null|string}&StripeObject), email: null|string, name: null|string, shipping_address: null|(object{city: null|string, country: null|string, line1: null|string, line2: null|string, postal_code: null|string, state: null|string}&StripeObject)}&StripeObject)}&StripeObject)}&StripeObject), card_present?: (object{amount_authorized: null|int, brand: null|string, brand_product: null|string, capture_before?: int, cardholder_name: null|string, country: null|string, description?: null|string, emv_auth_data: null|string, exp_month: int, exp_year: int, fingerprint: null|string, funding: null|string, generated_card: null|string, iin?: null|string, incremental_authorization_supported: bool, issuer?: null|string, last4: null|string, location?: string, multicapture?: (object{status: string}&StripeObject), network: null|string, network_transaction_id: null|string, offline: null|(object{stored_at: null|int, type: null|string}&StripeObject), overcapture_supported: bool, preferred_locales: null|string[], read_method: null|string, reader?: string, reauthorization?: null|(object{status: string}&StripeObject), reauthorize_before?: null|int, receipt: null|(object{account_type?: string, application_cryptogram: null|string, application_preferred_name: null|string, authorization_code: null|string, authorization_response_code: null|string, cardholder_verification_method: null|string, dedicated_file_name: null|string, terminal_verification_results: null|string, transaction_status_information: null|string}&StripeObject), wallet?: (object{type: string}&StripeObject)}&StripeObject), cashapp?: (object{buyer_id: null|string, cashtag: null|string, transaction_id: null|string}&StripeObject), crypto?: (object{buyer_address?: string, network?: string, token_currency?: string, transaction_hash?: string}&StripeObject), customer_balance?: (object{}&StripeObject), eps?: (object{bank: null|string, verified_name: null|string}&StripeObject), fpx?: (object{account_holder_type: null|string, bank: string, transaction_id: null|string}&StripeObject), gift_card?: (object{balance: (object{amount: int, currency: string}&StripeObject), brand: string, exp_month: null|int, exp_year: null|int, first6: string, last4: null|string, transaction_id: string}&StripeObject), giropay?: (object{bank_code: null|string, bank_name: null|string, bic: null|string, verified_name: null|string}&StripeObject), gopay?: (object{}&StripeObject), grabpay?: (object{transaction_id: null|string}&StripeObject), id_bank_transfer?: (object{account_number: string, bank: string, bank_code?: string, bank_name?: string, display_name?: string}&StripeObject), ideal?: (object{bank: null|string, bic: null|string, generated_sepa_debit: null|PaymentMethod|string, generated_sepa_debit_mandate: null|Mandate|string, iban_last4: null|string, transaction_id: null|string, verified_name: null|string}&StripeObject), interac_present?: (object{brand: null|string, cardholder_name: null|string, country: null|string, description?: null|string, emv_auth_data: null|string, exp_month: int, exp_year: int, fingerprint: null|string, funding: null|string, generated_card: null|string, iin?: null|string, issuer?: null|string, last4: null|string, location?: string, network: null|string, network_transaction_id: null|string, preferred_locales: null|string[], read_method: null|string, reader?: string, receipt: null|(object{account_type?: string, application_cryptogram: null|string, application_preferred_name: null|string, authorization_code: null|string, authorization_response_code: null|string, cardholder_verification_method: null|string, dedicated_file_name: null|string, terminal_verification_results: null|string, transaction_status_information: null|string}&StripeObject)}&StripeObject), kakao_pay?: (object{buyer_id: null|string, transaction_id: null|string}&StripeObject), klarna?: (object{location?: string, payer_details: null|(object{address: null|(object{country: null|string}&StripeObject)}&StripeObject), payment_method_category: null|string, preferred_locale: null|string, reader?: string}&StripeObject), konbini?: (object{store: null|(object{chain: null|string}&StripeObject)}&StripeObject), kr_card?: (object{brand: null|string, buyer_id: null|string, last4: null|string, transaction_id: null|string}&StripeObject), link?: (object{country: null|string}&StripeObject), mb_way?: (object{}&StripeObject), mobilepay?: (object{card: null|(object{brand: null|string, country: null|string, exp_month: null|int, exp_year: null|int, last4: null|string}&StripeObject)}&StripeObject), multibanco?: (object{entity: null|string, reference: null|string}&StripeObject), naver_pay?: (object{buyer_id: null|string, transaction_id: null|string}&StripeObject), nz_bank_account?: (object{account_holder_name: null|string, bank_code: string, bank_name: string, branch_code: string, expected_debit_date?: string, last4: string, suffix: null|string}&StripeObject), oxxo?: (object{number: null|string}&StripeObject), p24?: (object{bank: null|string, reference: null|string, verified_name: null|string}&StripeObject), pay_by_bank?: (object{}&StripeObject), payco?: (object{buyer_id: null|string, transaction_id: null|string}&StripeObject), paynow?: (object{location?: string, reader?: string, reference: null|string}&StripeObject), paypal?: (object{country: null|string, payer_email: null|string, payer_id: null|string, payer_name: null|string, seller_protection: null|(object{dispute_categories: null|string[], status: string}&StripeObject), shipping?: null|(object{city: null|string, country: null|string, line1: null|string, line2: null|string, postal_code: null|string, state: null|string}&StripeObject), transaction_id: null|string, verified_address?: null|(object{city: null|string, country: null|string, line1: null|string, line2: null|string, postal_code: null|string, state: null|string}&StripeObject), verified_email?: null|string, verified_name?: null|string}&StripeObject), paypay?: (object{}&StripeObject), payto?: (object{bsb_number: null|string, last4: null|string, mandate?: string, pay_id: null|string}&StripeObject), pix?: (object{bank_transaction_id?: null|string, mandate?: string}&StripeObject), promptpay?: (object{reference: null|string}&StripeObject), qris?: (object{}&StripeObject), rechnung?: (object{payment_portal_url: null|string}&StripeObject), revolut_pay?: (object{funding?: (object{card?: (object{brand: null|string, brand_product?: null|string, country: null|string, exp_month: null|int, exp_year: null|int, funding: null|string, last4: null|string}&StripeObject), type: null|string}&StripeObject), transaction_id: null|string}&StripeObject), samsung_pay?: (object{buyer_id: null|string, transaction_id: null|string}&StripeObject), satispay?: (object{transaction_id: null|string}&StripeObject), scalapay?: (object{transaction_id: null|string}&StripeObject), sepa_credit_transfer?: (object{bank_name: null|string, bic: null|string, iban: null|string}&StripeObject), sepa_debit?: (object{bank_code: null|string, branch_code: null|string, country: null|string, expected_debit_date?: string, fingerprint: null|string, last4: null|string, mandate: null|string}&StripeObject), shopeepay?: (object{}&StripeObject), sofort?: (object{bank_code: null|string, bank_name: null|string, bic: null|string, country: null|string, generated_sepa_debit: null|PaymentMethod|string, generated_sepa_debit_mandate: null|Mandate|string, iban_last4: null|string, preferred_language: null|string, verified_name: null|string}&StripeObject), stripe_account?: (object{}&StripeObject), stripe_balance?: (object{account?: null|string}&StripeObject), sunbit?: (object{transaction_id: null|string}&StripeObject), swish?: (object{fingerprint: null|string, payment_reference: null|string, verified_phone_last4: null|string}&StripeObject), tamara?: (object{transaction_id: null|string}&StripeObject), twint?: (object{mandate?: string}&StripeObject), type: string, upi?: (object{vpa: null|string}&StripeObject), us_bank_account?: (object{account_holder_type: null|string, account_type: null|string, bank_name: null|string, expected_debit_date?: string, fingerprint: null|string, last4: null|string, mandate?: Mandate|string, payment_reference: null|string, routing_number: null|string}&StripeObject), wechat?: (object{}&StripeObject), wechat_pay?: (object{fingerprint: null|string, location?: string, reader?: string, transaction_id: null|string}&StripeObject), zip?: (object{}&StripeObject)}&StripeObject) $payment_method_details Details about the payment method at the time of the transaction. + * @property null|(object{ach_credit_transfer?: (object{account_number: null|string, bank_name: null|string, routing_number: null|string, swift_code: null|string}&StripeObject), ach_debit?: (object{account_holder_type: null|string, bank_name: null|string, country: null|string, fingerprint: null|string, last4: null|string, routing_number: null|string}&StripeObject), acss_debit?: (object{bank_name: null|string, expected_debit_date?: string, fingerprint: null|string, institution_number: null|string, last4: null|string, mandate?: string, transit_number: null|string}&StripeObject), affirm?: (object{location?: string, reader?: string, transaction_id: null|string}&StripeObject), afterpay_clearpay?: (object{order_id: null|string, reference: null|string}&StripeObject), alipay?: (object{buyer_id?: string, fingerprint: null|string, transaction_id: null|string}&StripeObject), alma?: (object{installments?: (object{count: int}&StripeObject), transaction_id: null|string}&StripeObject), amazon_pay?: (object{funding?: (object{card?: (object{brand: null|string, brand_product?: null|string, country: null|string, exp_month: null|int, exp_year: null|int, funding: null|string, last4: null|string}&StripeObject), type: null|string}&StripeObject), transaction_id: null|string}&StripeObject), au_becs_debit?: (object{bsb_number: null|string, expected_debit_date?: string, fingerprint: null|string, last4: null|string, mandate?: string}&StripeObject), bacs_debit?: (object{expected_debit_date?: string, fingerprint: null|string, last4: null|string, mandate: null|string, sort_code: null|string}&StripeObject), bancontact?: (object{bank_code: null|string, bank_name: null|string, bic: null|string, generated_sepa_debit: null|PaymentMethod|string, generated_sepa_debit_mandate: null|Mandate|string, iban_last4: null|string, preferred_language: null|string, verified_name: null|string}&StripeObject), billie?: (object{transaction_id: null|string}&StripeObject), bizum?: (object{transaction_id: null|string}&StripeObject), blik?: (object{buyer_id: null|string}&StripeObject), boleto?: (object{tax_id: string}&StripeObject), card?: (object{account_funding?: (object{status: string}&StripeObject), amount_authorized: null|int, amount_requested?: null|int, authorization_code: null|string, benefits?: (object{fr_meal_voucher?: (object{siret: string}&StripeObject), issuer: null|string}&StripeObject), brand: null|string, capture_before?: int, checks: null|(object{address_line1_check: null|string, address_postal_code_check: null|string, cvc_check: null|string}&StripeObject), country: null|string, decremental_authorization?: (object{status: string}&StripeObject), description?: null|string, exp_month: int, exp_year: int, extended_authorization?: (object{status: string}&StripeObject), fingerprint?: null|string, funding: null|string, iin?: null|string, incremental_authorization?: (object{status: string}&StripeObject), installments: null|(object{plan: null|(object{count: null|int, interval: null|string, type: string}&StripeObject)}&StripeObject), issuer?: null|string, last4: null|string, mandate: null|string, moto?: null|bool, multicapture?: (object{status: string}&StripeObject), network: null|string, network_token?: null|(object{used: bool}&StripeObject), network_transaction_id: null|string, overcapture?: (object{maximum_amount_capturable: int, status: string}&StripeObject), partial_authorization?: (object{status: string}&StripeObject), reauthorization?: null|(object{status: string}&StripeObject), reauthorize_before?: null|int, regulated_status: null|string, three_d_secure: null|(object{authentication_flow: null|string, electronic_commerce_indicator: null|string, exemption_indicator: null|string, exemption_indicator_applied?: bool, result: null|string, result_reason: null|string, transaction_id: null|string, version: null|string}&StripeObject), wallet: null|(object{amex_express_checkout?: (object{}&StripeObject), apple_pay?: (object{}&StripeObject), dynamic_last4: null|string, google_pay?: (object{}&StripeObject), link?: (object{}&StripeObject), masterpass?: (object{billing_address: null|(object{city: null|string, country: null|string, line1: null|string, line2: null|string, postal_code: null|string, state: null|string}&StripeObject), email: null|string, name: null|string, shipping_address: null|(object{city: null|string, country: null|string, line1: null|string, line2: null|string, postal_code: null|string, state: null|string}&StripeObject)}&StripeObject), samsung_pay?: (object{}&StripeObject), type: string, visa_checkout?: (object{billing_address: null|(object{city: null|string, country: null|string, line1: null|string, line2: null|string, postal_code: null|string, state: null|string}&StripeObject), email: null|string, name: null|string, shipping_address: null|(object{city: null|string, country: null|string, line1: null|string, line2: null|string, postal_code: null|string, state: null|string}&StripeObject)}&StripeObject)}&StripeObject)}&StripeObject), card_present?: (object{amount_authorized: null|int, brand: null|string, brand_product: null|string, capture_before?: int, cardholder_name: null|string, country: null|string, description?: null|string, emv_auth_data: null|string, exp_month: int, exp_year: int, fingerprint: null|string, funding: null|string, generated_card: null|string, iin?: null|string, incremental_authorization_supported: bool, issuer?: null|string, last4: null|string, location?: string, multicapture?: (object{status: string}&StripeObject), network: null|string, network_transaction_id: null|string, offline: null|(object{stored_at: null|int, type: null|string}&StripeObject), overcapture_supported: bool, preferred_locales: null|string[], read_method: null|string, reader?: string, reauthorization?: null|(object{status: string}&StripeObject), reauthorize_before?: null|int, receipt: null|(object{account_type?: string, application_cryptogram: null|string, application_preferred_name: null|string, authorization_code: null|string, authorization_response_code: null|string, cardholder_verification_method: null|string, dedicated_file_name: null|string, terminal_verification_results: null|string, transaction_status_information: null|string}&StripeObject), wallet?: (object{type: string}&StripeObject)}&StripeObject), cashapp?: (object{buyer_id: null|string, cashtag: null|string, transaction_id: null|string}&StripeObject), crypto?: (object{buyer_address?: string, network?: string, token_currency?: string, transaction_hash?: string}&StripeObject), customer_balance?: (object{}&StripeObject), eps?: (object{bank: null|string, verified_name: null|string}&StripeObject), fpx?: (object{account_holder_type: null|string, bank: string, transaction_id: null|string}&StripeObject), gift_card?: (object{balance: (object{amount: int, currency: string}&StripeObject), brand: string, exp_month: null|int, exp_year: null|int, first6: string, last4: null|string, location?: string, reader?: string, transaction_id: string}&StripeObject), giropay?: (object{bank_code: null|string, bank_name: null|string, bic: null|string, verified_name: null|string}&StripeObject), gopay?: (object{}&StripeObject), grabpay?: (object{transaction_id: null|string}&StripeObject), id_bank_transfer?: (object{account_number: string, bank: string, bank_code?: string, bank_name?: string, display_name?: string}&StripeObject), ideal?: (object{bank: null|string, bic: null|string, generated_sepa_debit: null|PaymentMethod|string, generated_sepa_debit_mandate: null|Mandate|string, iban_last4: null|string, transaction_id: null|string, verified_name: null|string}&StripeObject), interac_present?: (object{brand: null|string, cardholder_name: null|string, country: null|string, description?: null|string, emv_auth_data: null|string, exp_month: int, exp_year: int, fingerprint: null|string, funding: null|string, generated_card: null|string, iin?: null|string, issuer?: null|string, last4: null|string, location?: string, network: null|string, network_transaction_id: null|string, preferred_locales: null|string[], read_method: null|string, reader?: string, receipt: null|(object{account_type?: string, application_cryptogram: null|string, application_preferred_name: null|string, authorization_code: null|string, authorization_response_code: null|string, cardholder_verification_method: null|string, dedicated_file_name: null|string, terminal_verification_results: null|string, transaction_status_information: null|string}&StripeObject)}&StripeObject), kakao_pay?: (object{buyer_id: null|string, transaction_id: null|string}&StripeObject), klarna?: (object{location?: string, payer_details: null|(object{address: null|(object{country: null|string}&StripeObject)}&StripeObject), payment_method_category: null|string, preferred_locale: null|string, reader?: string}&StripeObject), konbini?: (object{store: null|(object{chain: null|string}&StripeObject)}&StripeObject), kr_card?: (object{brand: null|string, buyer_id: null|string, last4: null|string, transaction_id: null|string}&StripeObject), link?: (object{country: null|string}&StripeObject), mb_way?: (object{}&StripeObject), mobilepay?: (object{card: null|(object{brand: null|string, country: null|string, exp_month: null|int, exp_year: null|int, last4: null|string}&StripeObject)}&StripeObject), multibanco?: (object{entity: null|string, reference: null|string}&StripeObject), naver_pay?: (object{buyer_id: null|string, transaction_id: null|string}&StripeObject), nz_bank_account?: (object{account_holder_name: null|string, bank_code: string, bank_name: string, branch_code: string, expected_debit_date?: string, last4: string, suffix: null|string}&StripeObject), oxxo?: (object{number: null|string}&StripeObject), p24?: (object{bank: null|string, reference: null|string, verified_name: null|string}&StripeObject), pay_by_bank?: (object{}&StripeObject), payco?: (object{buyer_id: null|string, transaction_id: null|string}&StripeObject), paynow?: (object{location?: string, reader?: string, reference: null|string}&StripeObject), paypal?: (object{country: null|string, payer_email: null|string, payer_id: null|string, payer_name: null|string, seller_protection: null|(object{dispute_categories: null|string[], status: string}&StripeObject), shipping?: null|(object{city: null|string, country: null|string, line1: null|string, line2: null|string, postal_code: null|string, state: null|string}&StripeObject), transaction_id: null|string, verified_address?: null|(object{city: null|string, country: null|string, line1: null|string, line2: null|string, postal_code: null|string, state: null|string}&StripeObject), verified_email?: null|string, verified_name?: null|string}&StripeObject), paypay?: (object{}&StripeObject), payto?: (object{bsb_number: null|string, last4: null|string, mandate?: string, pay_id: null|string}&StripeObject), pix?: (object{bank_transaction_id?: null|string, mandate?: string}&StripeObject), promptpay?: (object{reference: null|string}&StripeObject), qris?: (object{}&StripeObject), rechnung?: (object{payment_portal_url: null|string}&StripeObject), revolut_pay?: (object{funding?: (object{card?: (object{brand: null|string, brand_product?: null|string, country: null|string, exp_month: null|int, exp_year: null|int, funding: null|string, last4: null|string}&StripeObject), type: null|string}&StripeObject), transaction_id: null|string}&StripeObject), samsung_pay?: (object{buyer_id: null|string, transaction_id: null|string}&StripeObject), satispay?: (object{transaction_id: null|string}&StripeObject), scalapay?: (object{transaction_id: null|string}&StripeObject), sepa_credit_transfer?: (object{bank_name: null|string, bic: null|string, iban: null|string}&StripeObject), sepa_debit?: (object{bank_code: null|string, branch_code: null|string, country: null|string, expected_debit_date?: string, fingerprint: null|string, last4: null|string, mandate: null|string}&StripeObject), shopeepay?: (object{}&StripeObject), sofort?: (object{bank_code: null|string, bank_name: null|string, bic: null|string, country: null|string, generated_sepa_debit: null|PaymentMethod|string, generated_sepa_debit_mandate: null|Mandate|string, iban_last4: null|string, preferred_language: null|string, verified_name: null|string}&StripeObject), stripe_account?: (object{}&StripeObject), stripe_balance?: (object{account?: null|string}&StripeObject), sunbit?: (object{transaction_id: null|string}&StripeObject), swish?: (object{fingerprint: null|string, payment_reference: null|string, verified_phone_last4: null|string}&StripeObject), tamara?: (object{transaction_id: null|string}&StripeObject), twint?: (object{mandate?: string}&StripeObject), type: string, upi?: (object{vpa: null|string}&StripeObject), us_bank_account?: (object{account_holder_type: null|string, account_type: null|string, bank_name: null|string, expected_debit_date?: string, fingerprint: null|string, last4: null|string, mandate?: Mandate|string, payment_reference: null|string, routing_number: null|string}&StripeObject), wechat?: (object{}&StripeObject), wechat_pay?: (object{fingerprint: null|string, location?: string, reader?: string, transaction_id: null|string}&StripeObject), zip?: (object{}&StripeObject)}&StripeObject) $payment_method_details Details about the payment method at the time of the transaction. * @property null|(object{presentment_amount: int, presentment_currency: string}&StripeObject) $presentment_details * @property null|(object{session?: string}&StripeObject) $radar_options Options to configure Radar. See Radar Session for more information. * @property null|string $receipt_email This is the email address that the receipt for this charge was sent to. diff --git a/lib/Checkout/Session.php b/lib/Checkout/Session.php index b223d990d..92ccd3303 100644 --- a/lib/Checkout/Session.php +++ b/lib/Checkout/Session.php @@ -57,6 +57,7 @@ * @property null|string $integration_identifier The integration identifier for this Checkout Session. Multiple Checkout Sessions can have the same integration identifier. * @property null|string|\Stripe\Invoice $invoice ID of the invoice created by the Checkout Session, if it exists. * @property null|(object{enabled: bool, invoice_data: (object{account_tax_ids: null|(string|\Stripe\TaxId)[], custom_fields: null|(object{name: string, value: string}&\Stripe\StripeObject)[], description: null|string, footer: null|string, issuer: null|(object{account?: string|\Stripe\Account, type: string}&\Stripe\StripeObject), metadata: null|\Stripe\StripeObject, rendering_options: null|(object{amount_tax_display: null|string, template: null|string}&\Stripe\StripeObject)}&\Stripe\StripeObject)}&\Stripe\StripeObject) $invoice_creation Details on the state of invoice creation for the Checkout Session. + * @property null|(object{key: string, type: string}&\Stripe\StripeObject)[] $items The items to be purchased by the customer. * @property null|\Stripe\Collection<\Stripe\LineItem> $line_items The line items purchased by the customer. * @property bool $livemode If the object exists in live mode, the value is true. If the object exists in test mode, the value is false. * @property null|string $locale The IETF language tag of the locale Checkout is displayed in. If blank or auto, the browser's locale is used. @@ -147,7 +148,7 @@ class Session extends \Stripe\ApiResource /** * Creates a Checkout Session object. * - * @param null|array{adaptive_pricing?: array{enabled?: bool}, after_expiration?: array{recovery?: array{allow_promotion_codes?: bool, enabled: bool}}, allow_promotion_codes?: bool, approval_method?: string, automatic_surcharge?: array{calculation_basis?: string, enabled: bool, tax_behavior?: string}, automatic_tax?: array{enabled: bool, liability?: array{account?: string, type: string}}, billing_address_collection?: string, branding_settings?: array{background_color?: null|string, border_style?: null|string, button_color?: null|string, display_name?: string, font_family?: null|string, icon?: array{file?: string, type: string, url?: string}, logo?: array{file?: string, type: string, url?: string}}, cancel_url?: string, client_reference_id?: string, consent_collection?: array{payment_method_reuse_agreement?: array{position: string}, promotions?: string, terms_of_service?: string}, currency?: string, custom_fields?: array{dropdown?: array{default_value?: string, options: array{label: string, value: string}[]}, key: string, label: array{custom: string, type: string}, numeric?: array{default_value?: string, maximum_length?: int, minimum_length?: int}, optional?: bool, text?: array{default_value?: string, maximum_length?: int, minimum_length?: int}, type: string}[], custom_payment_method_types?: string[], custom_text?: array{after_submit?: null|array{message: string}, shipping_address?: null|array{message: string}, submit?: null|array{message: string}, terms_of_service_acceptance?: null|array{message: string}}, customer?: string, customer_account?: string, customer_creation?: string, customer_email?: string, customer_update?: array{address?: string, name?: string, shipping?: string}, discounts?: (array{coupon?: string, coupon_data?: array{amount_off?: int, currency?: string, duration?: string, metadata?: null|array, name?: string, percent_off?: float}, promotion_code?: string})[], excluded_payment_method_types?: string[], expand?: string[], expires_at?: int, integration_identifier?: string, invoice_creation?: array{enabled: bool, invoice_data?: array{account_tax_ids?: null|string[], custom_fields?: null|array{name: string, value: string}[], description?: string, footer?: string, issuer?: array{account?: string, type: string}, metadata?: array, rendering_options?: null|array{amount_tax_display?: null|string, template?: string}}}, items?: array{type: string}[], line_items?: (array{adjustable_quantity?: array{enabled: bool, maximum?: int, minimum?: int}, dynamic_tax_rates?: string[], metadata?: array, price?: string, price_data?: array{currency: string, product?: string, product_data?: array{description?: string, images?: string[], metadata?: array, name: string, tax_code?: string, tax_details?: array{performance_location?: string, tax_code?: null|string}, unit_label?: string}, recurring?: array{interval: string, interval_count?: int}, tax_behavior?: string, unit_amount?: int, unit_amount_decimal?: string}, quantity?: int, tax_rates?: string[]})[], locale?: string, managed_payments?: array{enabled?: bool}, metadata?: array, mode?: string, name_collection?: array{business?: array{enabled: bool, optional?: bool}, individual?: array{enabled: bool, optional?: bool}}, optional_items?: array{adjustable_quantity?: array{enabled: bool, maximum?: int, minimum?: int}, price: string, quantity: int}[], origin_context?: string, payment_intent_data?: array{application_fee_amount?: int, capture_method?: string, description?: string, metadata?: array, on_behalf_of?: string, receipt_email?: string, setup_future_usage?: string, shipping?: array{address: array{city?: string, country?: string, line1: string, line2?: string, postal_code?: string, state?: string}, carrier?: string, name: string, phone?: string, tracking_number?: string}, statement_descriptor?: string, statement_descriptor_suffix?: string, transfer_data?: array{amount?: int, destination: string}, transfer_group?: string}, payment_method_collection?: string, payment_method_configuration?: string, payment_method_data?: array{allow_redisplay?: string}, payment_method_options?: array{acss_debit?: array{currency?: string, mandate_options?: array{custom_mandate_url?: null|string, default_for?: string[], interval_description?: string, payment_schedule?: string, transaction_type?: string}, setup_future_usage?: string, target_date?: string, verification_method?: string}, affirm?: array{capture_method?: string, setup_future_usage?: string}, afterpay_clearpay?: array{capture_method?: string, setup_future_usage?: string}, alipay?: array{setup_future_usage?: string}, alma?: array{capture_method?: string}, amazon_pay?: array{capture_method?: string, setup_future_usage?: string}, au_becs_debit?: array{setup_future_usage?: string, target_date?: string}, bacs_debit?: array{mandate_options?: array{reference_prefix?: null|string}, setup_future_usage?: string, target_date?: string}, bancontact?: array{setup_future_usage?: string}, billie?: array{capture_method?: string}, bizum?: array{mandate_options?: array{}}, blik?: array{mandate_options?: array{expires_after?: int}, setup_future_usage?: null|string}, boleto?: array{expires_after_days?: int, setup_future_usage?: string}, card?: array{capture_method?: string, installments?: array{enabled?: bool}, request_decremental_authorization?: string, request_extended_authorization?: string, request_incremental_authorization?: string, request_multicapture?: string, request_overcapture?: string, request_three_d_secure?: string, restrictions?: array{brands_blocked?: string[]}, setup_future_usage?: string, statement_descriptor_suffix_kana?: string, statement_descriptor_suffix_kanji?: string}, cashapp?: array{capture_method?: string, setup_future_usage?: string}, crypto?: array{setup_future_usage?: string}, customer_balance?: array{bank_transfer?: array{eu_bank_transfer?: array{country: string}, requested_address_types?: string[], type: string}, funding_type?: string, setup_future_usage?: string}, demo_pay?: array{setup_future_usage?: string}, eps?: array{setup_future_usage?: string}, fpx?: array{setup_future_usage?: string}, giropay?: array{setup_future_usage?: string}, grabpay?: array{setup_future_usage?: string}, ideal?: array{setup_future_usage?: string}, kakao_pay?: array{capture_method?: string, setup_future_usage?: string}, klarna?: array{capture_method?: string, setup_future_usage?: string, subscriptions?: null|array{interval: string, interval_count?: int, name?: string, next_billing: array{amount: int, date: string}, reference: string}[]}, konbini?: array{expires_after_days?: int, setup_future_usage?: string}, kr_card?: array{capture_method?: string, setup_future_usage?: string}, link?: array{capture_method?: string, setup_future_usage?: string}, mobilepay?: array{capture_method?: string, setup_future_usage?: string}, multibanco?: array{setup_future_usage?: string}, naver_pay?: array{capture_method?: string, setup_future_usage?: string}, oxxo?: array{expires_after_days?: int, setup_future_usage?: string}, p24?: array{setup_future_usage?: string, tos_shown_and_accepted?: bool}, pay_by_bank?: array{}, payco?: array{capture_method?: string}, paynow?: array{setup_future_usage?: string}, paypal?: array{capture_method?: null|string, preferred_locale?: string, reference?: string, reference_id?: string, risk_correlation_id?: string, setup_future_usage?: null|string, subsellers?: string[]}, payto?: array{mandate_options?: array{amount?: null|int, amount_type?: null|string, end_date?: null|string, payment_schedule?: null|string, payments_per_period?: null|int, purpose?: null|string, start_date?: null|string}, setup_future_usage?: string}, pix?: array{amount_includes_iof?: string, expires_after_seconds?: int, mandate_options?: array{amount?: int, amount_includes_iof?: string, amount_type?: string, currency?: string, end_date?: string, payment_schedule?: string, reference?: string, start_date?: string}, setup_future_usage?: string}, revolut_pay?: array{capture_method?: string, setup_future_usage?: string}, samsung_pay?: array{capture_method?: string}, satispay?: array{capture_method?: string}, scalapay?: array{capture_method?: string}, sepa_debit?: array{mandate_options?: array{reference_prefix?: null|string}, setup_future_usage?: string, target_date?: string}, sofort?: array{setup_future_usage?: string}, swish?: array{reference?: string}, twint?: array{setup_future_usage?: string}, upi?: array{mandate_options?: array{amount?: int, amount_type?: string, description?: string, end_date?: int}, setup_future_usage?: null|string}, us_bank_account?: array{financial_connections?: array{permissions?: string[], prefetch?: string[]}, setup_future_usage?: string, target_date?: string, verification_method?: string}, wechat_pay?: array{app_id?: string, client: string, setup_future_usage?: string}}, payment_method_types?: string[], permissions?: array{update?: array{line_items?: string, shipping_details?: string}, update_discounts?: string, update_line_items?: string, update_shipping_details?: string}, phone_number_collection?: array{enabled: bool}, redirect_on_completion?: string, return_url?: string, saved_payment_method_options?: array{allow_redisplay_filters?: string[], payment_method_remove?: string, payment_method_save?: string}, setup_intent_data?: array{description?: string, metadata?: array, on_behalf_of?: string}, shipping_address_collection?: array{allowed_countries: string[]}, shipping_options?: array{shipping_rate?: string, shipping_rate_data?: array{delivery_estimate?: array{maximum?: array{unit: string, value: int}, minimum?: array{unit: string, value: int}}, display_name: string, fixed_amount?: array{amount: int, currency: string, currency_options?: array}, metadata?: array, tax_behavior?: string, tax_code?: string, type?: string}}[], submit_type?: string, subscription_data?: array{application_fee_percent?: float, billing_cycle_anchor?: int, billing_mode?: array{flexible?: array{proration_discounts?: string}, type: string}, default_tax_rates?: string[], description?: string, invoice_settings?: array{issuer?: array{account?: string, type: string}}, metadata?: array, on_behalf_of?: string, pending_invoice_item_interval?: array{interval: string, interval_count?: int}, proration_behavior?: string, transfer_data?: array{amount_percent?: float, destination: string}, trial_end?: int, trial_period_days?: int, trial_settings?: array{end_behavior: array{missing_payment_method: string}}}, success_url?: string, tax_id_collection?: array{enabled: bool, required?: string}, ui_mode?: string, wallet_options?: array{link?: array{display?: string}}, checkout_items?: array{type: string, rate_card_subscription_item?: array{rate_card: string, metadata?: array, rate_card_version?: string}, pricing_plan_subscription_item?: array{pricing_plan: string, pricing_plan_version?: string, metadata?: array, component_configurations?: array}}[]} $params + * @param null|array{adaptive_pricing?: array{enabled?: bool}, after_expiration?: array{recovery?: array{allow_promotion_codes?: bool, enabled: bool}}, allow_promotion_codes?: bool, approval_method?: string, automatic_surcharge?: array{calculation_basis?: string, enabled: bool, tax_behavior?: string}, automatic_tax?: array{enabled: bool, liability?: array{account?: string, type: string}}, billing_address_collection?: string, branding_settings?: array{background_color?: null|string, border_style?: null|string, button_color?: null|string, display_name?: string, font_family?: null|string, icon?: array{file?: string, type: string, url?: string}, logo?: array{file?: string, type: string, url?: string}}, cancel_url?: string, client_reference_id?: string, consent_collection?: array{payment_method_reuse_agreement?: array{position: string}, promotions?: string, terms_of_service?: string}, currency?: string, custom_fields?: array{dropdown?: array{default_value?: string, options: array{label: string, value: string}[]}, key: string, label: array{custom: string, type: string}, numeric?: array{default_value?: string, maximum_length?: int, minimum_length?: int}, optional?: bool, text?: array{default_value?: string, maximum_length?: int, minimum_length?: int}, type: string}[], custom_payment_method_types?: string[], custom_text?: array{after_submit?: null|array{message: string}, shipping_address?: null|array{message: string}, submit?: null|array{message: string}, terms_of_service_acceptance?: null|array{message: string}}, customer?: string, customer_account?: string, customer_creation?: string, customer_email?: string, customer_update?: array{address?: string, name?: string, shipping?: string}, discounts?: (array{coupon?: string, coupon_data?: array{amount_off?: int, currency?: string, duration?: string, metadata?: null|array, name?: string, percent_off?: float}, promotion_code?: string})[], excluded_payment_method_types?: string[], expand?: string[], expires_at?: int, integration_identifier?: string, invoice_creation?: array{enabled: bool, invoice_data?: array{account_tax_ids?: null|string[], custom_fields?: null|array{name: string, value: string}[], description?: string, footer?: string, issuer?: array{account?: string, type: string}, metadata?: array, rendering_options?: null|array{amount_tax_display?: null|string, template?: string}}}, items?: (array{subscription?: array{billing_cycle_anchor_config?: array{day_of_month: int, hour?: int, minute?: int, month?: int, second?: int}, billing_mode?: array{flexible?: array{proration_discounts?: string}, type: string}, description?: string, items: (array{price?: string, price_data?: array{currency: string, product?: string, product_data?: array{description?: string, images?: string[], metadata?: array, name: string, tax_code?: string, tax_details?: array{performance_location?: string, tax_code?: null|string}, unit_label?: string}, recurring?: array{interval: string, interval_count?: int}, tax_behavior?: string, unit_amount?: int, unit_amount_decimal?: string}, quantity?: int})[], metadata?: array, pending_invoice_item_interval?: array{interval: string, interval_count?: int}, proration_behavior?: string, trial_end?: int, trial_period_days?: int, trial_settings?: array{end_behavior: array{missing_payment_method: string}}}, type: string})[], line_items?: (array{adjustable_quantity?: array{enabled: bool, maximum?: int, minimum?: int}, dynamic_tax_rates?: string[], metadata?: array, price?: string, price_data?: array{currency: string, product?: string, product_data?: array{description?: string, images?: string[], metadata?: array, name: string, tax_code?: string, tax_details?: array{performance_location?: string, tax_code?: null|string}, unit_label?: string}, recurring?: array{interval: string, interval_count?: int}, tax_behavior?: string, unit_amount?: int, unit_amount_decimal?: string}, quantity?: int, tax_rates?: string[]})[], locale?: string, managed_payments?: array{enabled?: bool}, metadata?: array, mode?: string, name_collection?: array{business?: array{enabled: bool, optional?: bool}, individual?: array{enabled: bool, optional?: bool}}, optional_items?: array{adjustable_quantity?: array{enabled: bool, maximum?: int, minimum?: int}, price: string, quantity: int}[], origin_context?: string, payment_intent_data?: array{application_fee_amount?: int, capture_method?: string, description?: string, metadata?: array, on_behalf_of?: string, receipt_email?: string, setup_future_usage?: string, shipping?: array{address: array{city?: string, country?: string, line1: string, line2?: string, postal_code?: string, state?: string}, carrier?: string, name: string, phone?: string, tracking_number?: string}, statement_descriptor?: string, statement_descriptor_suffix?: string, transfer_data?: array{amount?: int, destination: string}, transfer_group?: string}, payment_method_collection?: string, payment_method_configuration?: string, payment_method_data?: array{allow_redisplay?: string}, payment_method_options?: array{acss_debit?: array{currency?: string, mandate_options?: array{custom_mandate_url?: null|string, default_for?: string[], interval_description?: string, payment_schedule?: string, transaction_type?: string}, setup_future_usage?: string, target_date?: string, verification_method?: string}, affirm?: array{capture_method?: string, setup_future_usage?: string}, afterpay_clearpay?: array{capture_method?: string, setup_future_usage?: string}, alipay?: array{setup_future_usage?: string}, alma?: array{capture_method?: string}, amazon_pay?: array{capture_method?: string, setup_future_usage?: string}, au_becs_debit?: array{setup_future_usage?: string, target_date?: string}, bacs_debit?: array{mandate_options?: array{reference_prefix?: null|string}, setup_future_usage?: string, target_date?: string}, bancontact?: array{setup_future_usage?: string}, billie?: array{capture_method?: string}, bizum?: array{mandate_options?: array{}}, blik?: array{mandate_options?: array{expires_after?: int}, setup_future_usage?: null|string}, boleto?: array{expires_after_days?: int, setup_future_usage?: string}, card?: array{capture_method?: string, installments?: array{enabled?: bool}, request_decremental_authorization?: string, request_extended_authorization?: string, request_incremental_authorization?: string, request_multicapture?: string, request_overcapture?: string, request_three_d_secure?: string, restrictions?: array{brands_blocked?: string[]}, setup_future_usage?: string, statement_descriptor_suffix_kana?: string, statement_descriptor_suffix_kanji?: string}, cashapp?: array{capture_method?: string, setup_future_usage?: string}, crypto?: array{setup_future_usage?: string}, customer_balance?: array{bank_transfer?: array{eu_bank_transfer?: array{country: string}, requested_address_types?: string[], type: string}, funding_type?: string, setup_future_usage?: string}, demo_pay?: array{setup_future_usage?: string}, eps?: array{setup_future_usage?: string}, fpx?: array{setup_future_usage?: string}, giropay?: array{setup_future_usage?: string}, grabpay?: array{setup_future_usage?: string}, ideal?: array{setup_future_usage?: string}, kakao_pay?: array{capture_method?: string, setup_future_usage?: string}, klarna?: array{capture_method?: string, setup_future_usage?: string, subscriptions?: null|array{interval: string, interval_count?: int, name?: string, next_billing: array{amount: int, date: string}, reference: string}[]}, konbini?: array{expires_after_days?: int, setup_future_usage?: string}, kr_card?: array{capture_method?: string, setup_future_usage?: string}, link?: array{capture_method?: string, setup_future_usage?: string}, mobilepay?: array{capture_method?: string, setup_future_usage?: string}, multibanco?: array{setup_future_usage?: string}, naver_pay?: array{capture_method?: string, setup_future_usage?: string}, oxxo?: array{expires_after_days?: int, setup_future_usage?: string}, p24?: array{setup_future_usage?: string, tos_shown_and_accepted?: bool}, pay_by_bank?: array{}, payco?: array{capture_method?: string}, paynow?: array{setup_future_usage?: string}, paypal?: array{capture_method?: null|string, preferred_locale?: string, reference?: string, reference_id?: string, risk_correlation_id?: string, setup_future_usage?: null|string, subsellers?: string[]}, payto?: array{mandate_options?: array{amount?: null|int, amount_type?: null|string, end_date?: null|string, payment_schedule?: null|string, payments_per_period?: null|int, purpose?: null|string, start_date?: null|string}, setup_future_usage?: string}, pix?: array{amount_includes_iof?: string, expires_after_seconds?: int, mandate_options?: array{amount?: int, amount_includes_iof?: string, amount_type?: string, currency?: string, end_date?: string, payment_schedule?: string, reference?: string, start_date?: string}, setup_future_usage?: string}, revolut_pay?: array{capture_method?: string, setup_future_usage?: string}, samsung_pay?: array{capture_method?: string}, satispay?: array{capture_method?: string}, scalapay?: array{capture_method?: string}, sepa_debit?: array{mandate_options?: array{reference_prefix?: null|string}, setup_future_usage?: string, target_date?: string}, sofort?: array{setup_future_usage?: string}, swish?: array{reference?: string}, twint?: array{setup_future_usage?: string}, upi?: array{mandate_options?: array{amount?: int, amount_type?: string, description?: string, end_date?: int}, setup_future_usage?: null|string}, us_bank_account?: array{financial_connections?: array{permissions?: string[], prefetch?: string[]}, setup_future_usage?: string, target_date?: string, verification_method?: string}, wechat_pay?: array{app_id?: string, client: string, setup_future_usage?: string}}, payment_method_types?: string[], permissions?: array{update?: array{line_items?: string, shipping_details?: string}, update_discounts?: string, update_line_items?: string, update_shipping_details?: string}, phone_number_collection?: array{enabled: bool}, redirect_on_completion?: string, return_url?: string, saved_payment_method_options?: array{allow_redisplay_filters?: string[], payment_method_remove?: string, payment_method_save?: string}, setup_intent_data?: array{description?: string, metadata?: array, on_behalf_of?: string}, shipping_address_collection?: array{allowed_countries: string[]}, shipping_options?: array{shipping_rate?: string, shipping_rate_data?: array{delivery_estimate?: array{maximum?: array{unit: string, value: int}, minimum?: array{unit: string, value: int}}, display_name: string, fixed_amount?: array{amount: int, currency: string, currency_options?: array}, metadata?: array, tax_behavior?: string, tax_code?: string, type?: string}}[], submit_type?: string, subscription_data?: array{application_fee_percent?: float, billing_cycle_anchor?: int, billing_mode?: array{flexible?: array{proration_discounts?: string}, type: string}, default_tax_rates?: string[], description?: string, invoice_settings?: array{issuer?: array{account?: string, type: string}}, metadata?: array, on_behalf_of?: string, pending_invoice_item_interval?: array{interval: string, interval_count?: int}, proration_behavior?: string, transfer_data?: array{amount_percent?: float, destination: string}, trial_end?: int, trial_period_days?: int, trial_settings?: array{end_behavior: array{missing_payment_method: string}}}, success_url?: string, tax_id_collection?: array{enabled: bool, required?: string}, ui_mode?: string, wallet_options?: array{link?: array{display?: string}}, checkout_items?: array{type: string, rate_card_subscription_item?: array{rate_card: string, metadata?: array, rate_card_version?: string}, pricing_plan_subscription_item?: array{pricing_plan: string, pricing_plan_version?: string, metadata?: array, component_configurations?: array}}[]} $params * @param null|array|string $options * * @return Session the created resource diff --git a/lib/GiftCardOperation.php b/lib/GiftCardOperation.php index 7c1dbc239..f48e00173 100644 --- a/lib/GiftCardOperation.php +++ b/lib/GiftCardOperation.php @@ -21,7 +21,9 @@ * @property null|string $failure_code The failure code of the operation. Only present if the status is failed. * @property GiftCard|string $gift_card The gift card this operation was performed on. * @property bool $livemode If the object exists in live mode, the value is true. If the object exists in test mode, the value is false. + * @property null|string $location ID of the location that this transaction's reader is assigned to. * @property null|string $on_behalf_of The connected account whose credentials were used to perform this operation. + * @property null|string $reader ID of the reader this transaction was made on. * @property null|(object{balance: (object{amount: int, currency: string}&StripeObject), previous_balance: null|(object{amount: int, currency: string}&StripeObject)}&StripeObject) $reload Details about a gift card reload operation. * @property null|(object{balance: (object{amount: int, currency: string}&StripeObject), voided_operation: string}&StripeObject) $reload_void Details about a gift card reload void operation. * @property string $status The status of the operation. diff --git a/lib/Issuing/Authorization.php b/lib/Issuing/Authorization.php index 39aa1e06e..ece054a10 100644 --- a/lib/Issuing/Authorization.php +++ b/lib/Issuing/Authorization.php @@ -17,7 +17,7 @@ * @property null|(object{atm_fee: null|int, cashback_amount: null|int}&\Stripe\StripeObject) $amount_details Detailed breakdown of amount components. These amounts are denominated in currency and in the smallest currency unit. * @property bool $approved Whether the authorization has been approved. * @property string $authorization_method How the card details were provided. - * @property null|(object{account_type: string, amount: int, currency: string}&\Stripe\StripeObject) $balance_response + * @property null|(object{account_type: string, available_balance: int, currency: string, current_balance: int}&\Stripe\StripeObject) $balance_response * @property \Stripe\BalanceTransaction[] $balance_transactions List of balance transactions associated with this authorization. * @property Card $card You can create physical or virtual cards that are issued to cardholders. * @property null|string $card_presence Whether the card was present at the point of sale for the authorization. @@ -25,6 +25,7 @@ * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch. * @property null|((object{crypto_transaction_confirmed: null|(object{amount: string, amount_mcc_upcharged: null|string, chain: string, confirmed_at: int, currency: string, fees: (object{amount: string, currency: string, type: string}&\Stripe\StripeObject)[], from_address: string, memo: null|string, to_address: string, transaction_hash: string}&\Stripe\StripeObject), crypto_transaction_failed: null|(object{amount: string, amount_mcc_upcharged: null|string, chain: string, currency: string, failed_at: int, failure_reason: string, fees: (object{amount: string, currency: string, type: string}&\Stripe\StripeObject)[], from_address: string, memo: null|string, to_address: null|string, transaction_hash: null|string}&\Stripe\StripeObject), type: string}&\Stripe\StripeObject))[] $crypto_transactions Array of onchain crypto transactions linked to this resource. * @property string $currency The currency of the cardholder. This currency can be different from the currency presented at authorization and the merchant_currency field on this authorization. Three-letter ISO currency code, in lowercase. Must be a supported currency. + * @property null|(object{merchant: null|(object{data_sources: string[], industry: (object{id: string, names: string[]}&\Stripe\StripeObject), location: null|(object{address: null|(object{city: null|string, country: string, line1: null|string, line2: null|string, postal_code: null|string, state: null|string}&\Stripe\StripeObject), coordinates: null|(object{latitude: null|float, longitude: null|float}&\Stripe\StripeObject)}&\Stripe\StripeObject), logo: null|string, name: null|string, phone: null|string, spade: null|(object{counterparty_id: null|string, location_id: null|string}&\Stripe\StripeObject), url: null|string}&\Stripe\StripeObject), third_parties: null|((object{data_sources: string[], logo: null|string, name: null|string, spade: null|(object{third_party_id: null|string}&\Stripe\StripeObject), type: string}&\Stripe\StripeObject))[]}&\Stripe\StripeObject) $enriched_merchant_data Enriched merchant data for this authorization. * @property null|(object{cardholder_prompt_data: null|(object{alphanumeric_id: null|string, driver_id: null|string, odometer: null|int, unspecified_id: null|string, user_id: null|string, vehicle_number: null|string}&\Stripe\StripeObject), purchase_type: null|string, reported_breakdown: null|(object{fuel: null|(object{gross_amount_decimal: null|string}&\Stripe\StripeObject), non_fuel: null|(object{gross_amount_decimal: null|string}&\Stripe\StripeObject), tax: null|(object{local_amount_decimal: null|string, national_amount_decimal: null|string}&\Stripe\StripeObject)}&\Stripe\StripeObject), service_type: null|string}&\Stripe\StripeObject) $fleet Fleet-specific information for authorizations using Fleet cards. * @property null|((object{channel: string, status: string, undeliverable_reason: null|string}&\Stripe\StripeObject))[] $fraud_challenges Fraud challenges sent to the cardholder, if this authorization was declined for fraud risk reasons. * @property null|(object{industry_product_code: null|string, quantity_decimal: null|string, type: null|string, unit: null|string, unit_cost_decimal: null|string}&\Stripe\StripeObject) $fuel Information about fuel that was purchased with this transaction. Typically this information is received from the merchant after the authorization has been approved and the fuel dispensed. diff --git a/lib/PaymentAttemptRecord.php b/lib/PaymentAttemptRecord.php index 7bc230f7a..d48e8da26 100644 --- a/lib/PaymentAttemptRecord.php +++ b/lib/PaymentAttemptRecord.php @@ -26,7 +26,7 @@ * @property null|string $description An arbitrary string attached to the object. Often useful for displaying to users. * @property bool $livemode If the object exists in live mode, the value is true. If the object exists in test mode, the value is false. * @property StripeObject $metadata Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. - * @property null|(object{ach_credit_transfer?: (object{account_number: null|string, bank_name: null|string, routing_number: null|string, swift_code: null|string}&StripeObject), ach_debit?: (object{account_holder_type: null|string, bank_name: null|string, country: null|string, fingerprint: null|string, last4: null|string, routing_number: null|string}&StripeObject), acss_debit?: (object{bank_name: null|string, expected_debit_date?: string, fingerprint: null|string, institution_number: null|string, last4: null|string, mandate?: string, transit_number: null|string}&StripeObject), affirm?: (object{location?: string, reader?: string, transaction_id: null|string}&StripeObject), afterpay_clearpay?: (object{order_id: null|string, reference: null|string}&StripeObject), alipay?: (object{buyer_id?: string, fingerprint: null|string, transaction_id: null|string}&StripeObject), alma?: (object{installments?: (object{count: int}&StripeObject), transaction_id: null|string}&StripeObject), amazon_pay?: (object{funding?: (object{card?: (object{brand: null|string, brand_product?: null|string, country: null|string, exp_month: null|int, exp_year: null|int, funding: null|string, last4: null|string}&StripeObject), type: null|string}&StripeObject), transaction_id: null|string}&StripeObject), au_becs_debit?: (object{bsb_number: null|string, expected_debit_date?: string, fingerprint: null|string, last4: null|string, mandate?: string}&StripeObject), bacs_debit?: (object{expected_debit_date?: string, fingerprint: null|string, last4: null|string, mandate: null|string, sort_code: null|string}&StripeObject), bancontact?: (object{bank_code: null|string, bank_name: null|string, bic: null|string, generated_sepa_debit: null|PaymentMethod|string, generated_sepa_debit_mandate: null|Mandate|string, iban_last4: null|string, preferred_language: null|string, verified_name: null|string}&StripeObject), billie?: (object{transaction_id: null|string}&StripeObject), billing_details: null|(object{address: (object{city: null|string, country: null|string, line1: null|string, line2: null|string, postal_code: null|string, state: null|string}&StripeObject), email: null|string, name: null|string, phone: null|string}&StripeObject), bizum?: (object{transaction_id: null|string}&StripeObject), blik?: (object{buyer_id: null|string}&StripeObject), boleto?: (object{tax_id: null|string}&StripeObject), card?: (object{authorization_code: null|string, brand: null|string, capture_before?: int, checks: null|(object{address_line1_check: null|string, address_postal_code_check: null|string, cvc_check: null|string}&StripeObject), country: null|string, description: null|string, exp_month: null|int, exp_year: null|int, fingerprint?: null|string, funding: null|string, iin: null|string, installments: null|(object{plan: null|(object{count: null|int, interval: null|string, type: string}&StripeObject)}&StripeObject), issuer: null|string, last4: null|string, moto?: null|bool, network: null|string, network_advice_code: null|string, network_decline_code: null|string, network_token?: null|(object{used: bool}&StripeObject), network_transaction_id: null|string, stored_credential_usage: null|string, three_d_secure: null|(object{authentication_flow: null|string, cryptogram: null|string, electronic_commerce_indicator: null|string, exemption_indicator: null|string, exemption_indicator_applied: null|bool, result: null|string, result_reason: null|string, version: null|string}&StripeObject), wallet: null|(object{apple_pay?: (object{type: string}&StripeObject), dynamic_last4?: string, google_pay?: (object{}&StripeObject), type: string}&StripeObject)}&StripeObject), card_present?: (object{amount_authorized: null|int, brand: null|string, brand_product: null|string, capture_before?: int, cardholder_name: null|string, country: null|string, description?: null|string, emv_auth_data: null|string, exp_month: int, exp_year: int, fingerprint: null|string, funding: null|string, generated_card: null|string, iin?: null|string, incremental_authorization_supported: bool, issuer?: null|string, last4: null|string, location?: string, multicapture?: (object{status: string}&StripeObject), network: null|string, network_transaction_id: null|string, offline: null|(object{stored_at: null|int, type: null|string}&StripeObject), overcapture_supported: bool, preferred_locales: null|string[], read_method: null|string, reader?: string, reauthorization?: null|(object{status: string}&StripeObject), reauthorize_before?: null|int, receipt: null|(object{account_type?: string, application_cryptogram: null|string, application_preferred_name: null|string, authorization_code: null|string, authorization_response_code: null|string, cardholder_verification_method: null|string, dedicated_file_name: null|string, terminal_verification_results: null|string, transaction_status_information: null|string}&StripeObject), wallet?: (object{type: string}&StripeObject)}&StripeObject), cashapp?: (object{buyer_id: null|string, cashtag: null|string, transaction_id: null|string}&StripeObject), crypto?: (object{buyer_address?: string, network?: string, token_currency?: string, transaction_hash?: string}&StripeObject), custom?: (object{display_name: string, type: null|string}&StripeObject), customer_balance?: (object{}&StripeObject), eps?: (object{bank: null|string, verified_name: null|string}&StripeObject), fpx?: (object{account_holder_type: null|string, bank: string, transaction_id: null|string}&StripeObject), gift_card?: (object{balance: null|(object{amount: null|int, currency: null|string}&StripeObject), brand: null|string, exp_month: null|int, exp_year: null|int, first6: null|string, last4: null|string, transaction_id: null|string}&StripeObject), giropay?: (object{bank_code: null|string, bank_name: null|string, bic: null|string, verified_name: null|string}&StripeObject), gopay?: (object{}&StripeObject), grabpay?: (object{transaction_id: null|string}&StripeObject), id_bank_transfer?: (object{account_number: string, bank: string, bank_code?: string, bank_name?: string, display_name?: string}&StripeObject), ideal?: (object{bank: null|string, bic: null|string, generated_sepa_debit: null|PaymentMethod|string, generated_sepa_debit_mandate: null|Mandate|string, iban_last4: null|string, transaction_id: null|string, verified_name: null|string}&StripeObject), interac_present?: (object{brand: null|string, cardholder_name: null|string, country: null|string, description?: null|string, emv_auth_data: null|string, exp_month: int, exp_year: int, fingerprint: null|string, funding: null|string, generated_card: null|string, iin?: null|string, issuer?: null|string, last4: null|string, location?: string, network: null|string, network_transaction_id: null|string, preferred_locales: null|string[], read_method: null|string, reader?: string, receipt: null|(object{account_type?: string, application_cryptogram: null|string, application_preferred_name: null|string, authorization_code: null|string, authorization_response_code: null|string, cardholder_verification_method: null|string, dedicated_file_name: null|string, terminal_verification_results: null|string, transaction_status_information: null|string}&StripeObject)}&StripeObject), kakao_pay?: (object{buyer_id: null|string, transaction_id: null|string}&StripeObject), klarna?: (object{location?: string, payer_details: null|(object{address: null|(object{country: null|string}&StripeObject)}&StripeObject), payment_method_category: null|string, preferred_locale: null|string, reader?: string}&StripeObject), konbini?: (object{store: null|(object{chain: null|string}&StripeObject)}&StripeObject), kr_card?: (object{brand: null|string, buyer_id: null|string, last4: null|string, transaction_id: null|string}&StripeObject), link?: (object{country: null|string}&StripeObject), mb_way?: (object{}&StripeObject), mobilepay?: (object{card: null|(object{brand: null|string, country: null|string, exp_month: null|int, exp_year: null|int, last4: null|string}&StripeObject)}&StripeObject), multibanco?: (object{entity: null|string, reference: null|string}&StripeObject), naver_pay?: (object{buyer_id: null|string, transaction_id: null|string}&StripeObject), nz_bank_account?: (object{account_holder_name: null|string, bank_code: string, bank_name: string, branch_code: string, expected_debit_date?: string, last4: string, suffix: null|string}&StripeObject), oxxo?: (object{number: null|string}&StripeObject), p24?: (object{bank: null|string, reference: null|string, verified_name: null|string}&StripeObject), pay_by_bank?: (object{}&StripeObject), payco?: (object{buyer_id: null|string, transaction_id: null|string}&StripeObject), payment_method: null|string, paynow?: (object{location?: string, reader?: string, reference: null|string}&StripeObject), paypal?: (object{country: null|string, payer_email: null|string, payer_id: null|string, payer_name: null|string, seller_protection: null|(object{dispute_categories: null|string[], status: string}&StripeObject), shipping?: null|(object{city: null|string, country: null|string, line1: null|string, line2: null|string, postal_code: null|string, state: null|string}&StripeObject), transaction_id: null|string, verified_address?: null|(object{city: null|string, country: null|string, line1: null|string, line2: null|string, postal_code: null|string, state: null|string}&StripeObject), verified_email?: null|string, verified_name?: null|string}&StripeObject), paypay?: (object{}&StripeObject), payto?: (object{bsb_number: null|string, last4: null|string, mandate?: string, pay_id: null|string}&StripeObject), pix?: (object{bank_transaction_id?: null|string, mandate?: string}&StripeObject), promptpay?: (object{reference: null|string}&StripeObject), qris?: (object{}&StripeObject), rechnung?: (object{payment_portal_url: null|string}&StripeObject), revolut_pay?: (object{funding?: (object{card?: (object{brand: null|string, brand_product?: null|string, country: null|string, exp_month: null|int, exp_year: null|int, funding: null|string, last4: null|string}&StripeObject), type: null|string}&StripeObject), transaction_id: null|string}&StripeObject), samsung_pay?: (object{buyer_id: null|string, transaction_id: null|string}&StripeObject), satispay?: (object{transaction_id: null|string}&StripeObject), scalapay?: (object{transaction_id: null|string}&StripeObject), sepa_credit_transfer?: (object{bank_name: null|string, bic: null|string, iban: null|string}&StripeObject), sepa_debit?: (object{bank_code: null|string, branch_code: null|string, country: null|string, expected_debit_date?: string, fingerprint: null|string, last4: null|string, mandate: null|string}&StripeObject), shopeepay?: (object{}&StripeObject), sofort?: (object{bank_code: null|string, bank_name: null|string, bic: null|string, country: null|string, generated_sepa_debit: null|PaymentMethod|string, generated_sepa_debit_mandate: null|Mandate|string, iban_last4: null|string, preferred_language: null|string, verified_name: null|string}&StripeObject), stripe_account?: (object{}&StripeObject), stripe_balance?: (object{account?: null|string}&StripeObject), sunbit?: (object{transaction_id: null|string}&StripeObject), swish?: (object{fingerprint: null|string, payment_reference: null|string, verified_phone_last4: null|string}&StripeObject), tamara?: (object{transaction_id: null|string}&StripeObject), twint?: (object{mandate?: string}&StripeObject), type: string, upi?: (object{vpa: null|string}&StripeObject), us_bank_account?: (object{account_holder_type: null|string, account_type: null|string, bank_name: null|string, expected_debit_date?: string, fingerprint: null|string, last4: null|string, mandate?: Mandate|string, payment_reference: null|string, routing_number: null|string}&StripeObject), wechat?: (object{}&StripeObject), wechat_pay?: (object{fingerprint: null|string, location?: string, reader?: string, transaction_id: null|string}&StripeObject), zip?: (object{}&StripeObject)}&StripeObject) $payment_method_details Information about the Payment Method debited for this payment. + * @property null|(object{ach_credit_transfer?: (object{account_number: null|string, bank_name: null|string, routing_number: null|string, swift_code: null|string}&StripeObject), ach_debit?: (object{account_holder_type: null|string, bank_name: null|string, country: null|string, fingerprint: null|string, last4: null|string, routing_number: null|string}&StripeObject), acss_debit?: (object{bank_name: null|string, expected_debit_date?: string, fingerprint: null|string, institution_number: null|string, last4: null|string, mandate?: string, transit_number: null|string}&StripeObject), affirm?: (object{location?: string, reader?: string, transaction_id: null|string}&StripeObject), afterpay_clearpay?: (object{order_id: null|string, reference: null|string}&StripeObject), alipay?: (object{buyer_id?: string, fingerprint: null|string, transaction_id: null|string}&StripeObject), alma?: (object{installments?: (object{count: int}&StripeObject), transaction_id: null|string}&StripeObject), amazon_pay?: (object{funding?: (object{card?: (object{brand: null|string, brand_product?: null|string, country: null|string, exp_month: null|int, exp_year: null|int, funding: null|string, last4: null|string}&StripeObject), type: null|string}&StripeObject), transaction_id: null|string}&StripeObject), au_becs_debit?: (object{bsb_number: null|string, expected_debit_date?: string, fingerprint: null|string, last4: null|string, mandate?: string}&StripeObject), bacs_debit?: (object{expected_debit_date?: string, fingerprint: null|string, last4: null|string, mandate: null|string, sort_code: null|string}&StripeObject), bancontact?: (object{bank_code: null|string, bank_name: null|string, bic: null|string, generated_sepa_debit: null|PaymentMethod|string, generated_sepa_debit_mandate: null|Mandate|string, iban_last4: null|string, preferred_language: null|string, verified_name: null|string}&StripeObject), billie?: (object{transaction_id: null|string}&StripeObject), billing_details: null|(object{address: (object{city: null|string, country: null|string, line1: null|string, line2: null|string, postal_code: null|string, state: null|string}&StripeObject), email: null|string, name: null|string, phone: null|string}&StripeObject), bizum?: (object{transaction_id: null|string}&StripeObject), blik?: (object{buyer_id: null|string}&StripeObject), boleto?: (object{tax_id: null|string}&StripeObject), card?: (object{authorization_code: null|string, brand: null|string, capture_before?: int, checks: null|(object{address_line1_check: null|string, address_postal_code_check: null|string, cvc_check: null|string}&StripeObject), country: null|string, description: null|string, exp_month: null|int, exp_year: null|int, fingerprint?: null|string, funding: null|string, iin: null|string, installments: null|(object{plan: null|(object{count: null|int, interval: null|string, type: string}&StripeObject)}&StripeObject), issuer: null|string, last4: null|string, moto?: null|bool, network: null|string, network_advice_code: null|string, network_decline_code: null|string, network_token?: null|(object{used: bool}&StripeObject), network_transaction_id: null|string, stored_credential_usage: null|string, three_d_secure: null|(object{authentication_flow: null|string, cryptogram: null|string, electronic_commerce_indicator: null|string, exemption_indicator: null|string, exemption_indicator_applied: null|bool, result: null|string, result_reason: null|string, version: null|string}&StripeObject), wallet: null|(object{apple_pay?: (object{type: string}&StripeObject), dynamic_last4?: string, google_pay?: (object{}&StripeObject), type: string}&StripeObject)}&StripeObject), card_present?: (object{amount_authorized: null|int, brand: null|string, brand_product: null|string, capture_before?: int, cardholder_name: null|string, country: null|string, description?: null|string, emv_auth_data: null|string, exp_month: int, exp_year: int, fingerprint: null|string, funding: null|string, generated_card: null|string, iin?: null|string, incremental_authorization_supported: bool, issuer?: null|string, last4: null|string, location?: string, multicapture?: (object{status: string}&StripeObject), network: null|string, network_transaction_id: null|string, offline: null|(object{stored_at: null|int, type: null|string}&StripeObject), overcapture_supported: bool, preferred_locales: null|string[], read_method: null|string, reader?: string, reauthorization?: null|(object{status: string}&StripeObject), reauthorize_before?: null|int, receipt: null|(object{account_type?: string, application_cryptogram: null|string, application_preferred_name: null|string, authorization_code: null|string, authorization_response_code: null|string, cardholder_verification_method: null|string, dedicated_file_name: null|string, terminal_verification_results: null|string, transaction_status_information: null|string}&StripeObject), wallet?: (object{type: string}&StripeObject)}&StripeObject), cashapp?: (object{buyer_id: null|string, cashtag: null|string, transaction_id: null|string}&StripeObject), crypto?: (object{buyer_address?: string, network?: string, token_currency?: string, transaction_hash?: string}&StripeObject), custom?: (object{display_name: string, type: null|string}&StripeObject), customer_balance?: (object{}&StripeObject), eps?: (object{bank: null|string, verified_name: null|string}&StripeObject), fpx?: (object{account_holder_type: null|string, bank: string, transaction_id: null|string}&StripeObject), gift_card?: (object{balance: null|(object{amount: null|int, currency: null|string}&StripeObject), brand: null|string, exp_month: null|int, exp_year: null|int, first6: null|string, last4: null|string, location?: string, reader?: string, transaction_id: null|string}&StripeObject), giropay?: (object{bank_code: null|string, bank_name: null|string, bic: null|string, verified_name: null|string}&StripeObject), gopay?: (object{}&StripeObject), grabpay?: (object{transaction_id: null|string}&StripeObject), id_bank_transfer?: (object{account_number: string, bank: string, bank_code?: string, bank_name?: string, display_name?: string}&StripeObject), ideal?: (object{bank: null|string, bic: null|string, generated_sepa_debit: null|PaymentMethod|string, generated_sepa_debit_mandate: null|Mandate|string, iban_last4: null|string, transaction_id: null|string, verified_name: null|string}&StripeObject), interac_present?: (object{brand: null|string, cardholder_name: null|string, country: null|string, description?: null|string, emv_auth_data: null|string, exp_month: int, exp_year: int, fingerprint: null|string, funding: null|string, generated_card: null|string, iin?: null|string, issuer?: null|string, last4: null|string, location?: string, network: null|string, network_transaction_id: null|string, preferred_locales: null|string[], read_method: null|string, reader?: string, receipt: null|(object{account_type?: string, application_cryptogram: null|string, application_preferred_name: null|string, authorization_code: null|string, authorization_response_code: null|string, cardholder_verification_method: null|string, dedicated_file_name: null|string, terminal_verification_results: null|string, transaction_status_information: null|string}&StripeObject)}&StripeObject), kakao_pay?: (object{buyer_id: null|string, transaction_id: null|string}&StripeObject), klarna?: (object{location?: string, payer_details: null|(object{address: null|(object{country: null|string}&StripeObject)}&StripeObject), payment_method_category: null|string, preferred_locale: null|string, reader?: string}&StripeObject), konbini?: (object{store: null|(object{chain: null|string}&StripeObject)}&StripeObject), kr_card?: (object{brand: null|string, buyer_id: null|string, last4: null|string, transaction_id: null|string}&StripeObject), link?: (object{country: null|string}&StripeObject), mb_way?: (object{}&StripeObject), mobilepay?: (object{card: null|(object{brand: null|string, country: null|string, exp_month: null|int, exp_year: null|int, last4: null|string}&StripeObject)}&StripeObject), multibanco?: (object{entity: null|string, reference: null|string}&StripeObject), naver_pay?: (object{buyer_id: null|string, transaction_id: null|string}&StripeObject), nz_bank_account?: (object{account_holder_name: null|string, bank_code: string, bank_name: string, branch_code: string, expected_debit_date?: string, last4: string, suffix: null|string}&StripeObject), oxxo?: (object{number: null|string}&StripeObject), p24?: (object{bank: null|string, reference: null|string, verified_name: null|string}&StripeObject), pay_by_bank?: (object{}&StripeObject), payco?: (object{buyer_id: null|string, transaction_id: null|string}&StripeObject), payment_method: null|string, paynow?: (object{location?: string, reader?: string, reference: null|string}&StripeObject), paypal?: (object{country: null|string, payer_email: null|string, payer_id: null|string, payer_name: null|string, seller_protection: null|(object{dispute_categories: null|string[], status: string}&StripeObject), shipping?: null|(object{city: null|string, country: null|string, line1: null|string, line2: null|string, postal_code: null|string, state: null|string}&StripeObject), transaction_id: null|string, verified_address?: null|(object{city: null|string, country: null|string, line1: null|string, line2: null|string, postal_code: null|string, state: null|string}&StripeObject), verified_email?: null|string, verified_name?: null|string}&StripeObject), paypay?: (object{}&StripeObject), payto?: (object{bsb_number: null|string, last4: null|string, mandate?: string, pay_id: null|string}&StripeObject), pix?: (object{bank_transaction_id?: null|string, mandate?: string}&StripeObject), promptpay?: (object{reference: null|string}&StripeObject), qris?: (object{}&StripeObject), rechnung?: (object{payment_portal_url: null|string}&StripeObject), revolut_pay?: (object{funding?: (object{card?: (object{brand: null|string, brand_product?: null|string, country: null|string, exp_month: null|int, exp_year: null|int, funding: null|string, last4: null|string}&StripeObject), type: null|string}&StripeObject), transaction_id: null|string}&StripeObject), samsung_pay?: (object{buyer_id: null|string, transaction_id: null|string}&StripeObject), satispay?: (object{transaction_id: null|string}&StripeObject), scalapay?: (object{transaction_id: null|string}&StripeObject), sepa_credit_transfer?: (object{bank_name: null|string, bic: null|string, iban: null|string}&StripeObject), sepa_debit?: (object{bank_code: null|string, branch_code: null|string, country: null|string, expected_debit_date?: string, fingerprint: null|string, last4: null|string, mandate: null|string}&StripeObject), shopeepay?: (object{}&StripeObject), sofort?: (object{bank_code: null|string, bank_name: null|string, bic: null|string, country: null|string, generated_sepa_debit: null|PaymentMethod|string, generated_sepa_debit_mandate: null|Mandate|string, iban_last4: null|string, preferred_language: null|string, verified_name: null|string}&StripeObject), stripe_account?: (object{}&StripeObject), stripe_balance?: (object{account?: null|string}&StripeObject), sunbit?: (object{transaction_id: null|string}&StripeObject), swish?: (object{fingerprint: null|string, payment_reference: null|string, verified_phone_last4: null|string}&StripeObject), tamara?: (object{transaction_id: null|string}&StripeObject), twint?: (object{mandate?: string}&StripeObject), type: string, upi?: (object{vpa: null|string}&StripeObject), us_bank_account?: (object{account_holder_type: null|string, account_type: null|string, bank_name: null|string, expected_debit_date?: string, fingerprint: null|string, last4: null|string, mandate?: Mandate|string, payment_reference: null|string, routing_number: null|string}&StripeObject), wechat?: (object{}&StripeObject), wechat_pay?: (object{fingerprint: null|string, location?: string, reader?: string, transaction_id: null|string}&StripeObject), zip?: (object{}&StripeObject)}&StripeObject) $payment_method_details Information about the Payment Method debited for this payment. * @property null|string $payment_record ID of the Payment Record this Payment Attempt Record belongs to. * @property (object{custom?: (object{payment_reference: null|string}&StripeObject), fiserv_valuelink?: (object{payment_reference: string}&StripeObject), givex?: (object{payment_reference: string}&StripeObject), svs?: (object{payment_reference: string}&StripeObject), type: string}&StripeObject) $processor_details Processor information associated with this payment. * @property string $reported_by Indicates who reported the payment. @@ -129,6 +129,23 @@ public function reportCanceled($params = null, $opts = null) return $this; } + /** + * @param null|array $params + * @param null|array|string $opts + * + * @return PaymentAttemptRecord the reported payment attempt record + * + * @throws Exception\ApiErrorException if the request fails + */ + public function reportEarlyFraudWarning($params = null, $opts = null) + { + $url = $this->instanceUrl() . '/report_early_fraud_warning'; + list($response, $opts) = $this->_request('post', $url, $params, $opts); + $this->refreshFrom($response, $opts); + + return $this; + } + /** * @param null|array $params * @param null|array|string $opts diff --git a/lib/PaymentRecord.php b/lib/PaymentRecord.php index 907a6e36f..568dbb126 100644 --- a/lib/PaymentRecord.php +++ b/lib/PaymentRecord.php @@ -27,7 +27,7 @@ * @property null|string $latest_payment_attempt_record ID of the latest Payment Attempt Record attached to this Payment Record. * @property bool $livemode If the object exists in live mode, the value is true. If the object exists in test mode, the value is false. * @property StripeObject $metadata Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. - * @property null|(object{ach_credit_transfer?: (object{account_number: null|string, bank_name: null|string, routing_number: null|string, swift_code: null|string}&StripeObject), ach_debit?: (object{account_holder_type: null|string, bank_name: null|string, country: null|string, fingerprint: null|string, last4: null|string, routing_number: null|string}&StripeObject), acss_debit?: (object{bank_name: null|string, expected_debit_date?: string, fingerprint: null|string, institution_number: null|string, last4: null|string, mandate?: string, transit_number: null|string}&StripeObject), affirm?: (object{location?: string, reader?: string, transaction_id: null|string}&StripeObject), afterpay_clearpay?: (object{order_id: null|string, reference: null|string}&StripeObject), alipay?: (object{buyer_id?: string, fingerprint: null|string, transaction_id: null|string}&StripeObject), alma?: (object{installments?: (object{count: int}&StripeObject), transaction_id: null|string}&StripeObject), amazon_pay?: (object{funding?: (object{card?: (object{brand: null|string, brand_product?: null|string, country: null|string, exp_month: null|int, exp_year: null|int, funding: null|string, last4: null|string}&StripeObject), type: null|string}&StripeObject), transaction_id: null|string}&StripeObject), au_becs_debit?: (object{bsb_number: null|string, expected_debit_date?: string, fingerprint: null|string, last4: null|string, mandate?: string}&StripeObject), bacs_debit?: (object{expected_debit_date?: string, fingerprint: null|string, last4: null|string, mandate: null|string, sort_code: null|string}&StripeObject), bancontact?: (object{bank_code: null|string, bank_name: null|string, bic: null|string, generated_sepa_debit: null|PaymentMethod|string, generated_sepa_debit_mandate: null|Mandate|string, iban_last4: null|string, preferred_language: null|string, verified_name: null|string}&StripeObject), billie?: (object{transaction_id: null|string}&StripeObject), billing_details: null|(object{address: (object{city: null|string, country: null|string, line1: null|string, line2: null|string, postal_code: null|string, state: null|string}&StripeObject), email: null|string, name: null|string, phone: null|string}&StripeObject), bizum?: (object{transaction_id: null|string}&StripeObject), blik?: (object{buyer_id: null|string}&StripeObject), boleto?: (object{tax_id: null|string}&StripeObject), card?: (object{authorization_code: null|string, brand: null|string, capture_before?: int, checks: null|(object{address_line1_check: null|string, address_postal_code_check: null|string, cvc_check: null|string}&StripeObject), country: null|string, description: null|string, exp_month: null|int, exp_year: null|int, fingerprint?: null|string, funding: null|string, iin: null|string, installments: null|(object{plan: null|(object{count: null|int, interval: null|string, type: string}&StripeObject)}&StripeObject), issuer: null|string, last4: null|string, moto?: null|bool, network: null|string, network_advice_code: null|string, network_decline_code: null|string, network_token?: null|(object{used: bool}&StripeObject), network_transaction_id: null|string, stored_credential_usage: null|string, three_d_secure: null|(object{authentication_flow: null|string, cryptogram: null|string, electronic_commerce_indicator: null|string, exemption_indicator: null|string, exemption_indicator_applied: null|bool, result: null|string, result_reason: null|string, version: null|string}&StripeObject), wallet: null|(object{apple_pay?: (object{type: string}&StripeObject), dynamic_last4?: string, google_pay?: (object{}&StripeObject), type: string}&StripeObject)}&StripeObject), card_present?: (object{amount_authorized: null|int, brand: null|string, brand_product: null|string, capture_before?: int, cardholder_name: null|string, country: null|string, description?: null|string, emv_auth_data: null|string, exp_month: int, exp_year: int, fingerprint: null|string, funding: null|string, generated_card: null|string, iin?: null|string, incremental_authorization_supported: bool, issuer?: null|string, last4: null|string, location?: string, multicapture?: (object{status: string}&StripeObject), network: null|string, network_transaction_id: null|string, offline: null|(object{stored_at: null|int, type: null|string}&StripeObject), overcapture_supported: bool, preferred_locales: null|string[], read_method: null|string, reader?: string, reauthorization?: null|(object{status: string}&StripeObject), reauthorize_before?: null|int, receipt: null|(object{account_type?: string, application_cryptogram: null|string, application_preferred_name: null|string, authorization_code: null|string, authorization_response_code: null|string, cardholder_verification_method: null|string, dedicated_file_name: null|string, terminal_verification_results: null|string, transaction_status_information: null|string}&StripeObject), wallet?: (object{type: string}&StripeObject)}&StripeObject), cashapp?: (object{buyer_id: null|string, cashtag: null|string, transaction_id: null|string}&StripeObject), crypto?: (object{buyer_address?: string, network?: string, token_currency?: string, transaction_hash?: string}&StripeObject), custom?: (object{display_name: string, type: null|string}&StripeObject), customer_balance?: (object{}&StripeObject), eps?: (object{bank: null|string, verified_name: null|string}&StripeObject), fpx?: (object{account_holder_type: null|string, bank: string, transaction_id: null|string}&StripeObject), gift_card?: (object{balance: null|(object{amount: null|int, currency: null|string}&StripeObject), brand: null|string, exp_month: null|int, exp_year: null|int, first6: null|string, last4: null|string, transaction_id: null|string}&StripeObject), giropay?: (object{bank_code: null|string, bank_name: null|string, bic: null|string, verified_name: null|string}&StripeObject), gopay?: (object{}&StripeObject), grabpay?: (object{transaction_id: null|string}&StripeObject), id_bank_transfer?: (object{account_number: string, bank: string, bank_code?: string, bank_name?: string, display_name?: string}&StripeObject), ideal?: (object{bank: null|string, bic: null|string, generated_sepa_debit: null|PaymentMethod|string, generated_sepa_debit_mandate: null|Mandate|string, iban_last4: null|string, transaction_id: null|string, verified_name: null|string}&StripeObject), interac_present?: (object{brand: null|string, cardholder_name: null|string, country: null|string, description?: null|string, emv_auth_data: null|string, exp_month: int, exp_year: int, fingerprint: null|string, funding: null|string, generated_card: null|string, iin?: null|string, issuer?: null|string, last4: null|string, location?: string, network: null|string, network_transaction_id: null|string, preferred_locales: null|string[], read_method: null|string, reader?: string, receipt: null|(object{account_type?: string, application_cryptogram: null|string, application_preferred_name: null|string, authorization_code: null|string, authorization_response_code: null|string, cardholder_verification_method: null|string, dedicated_file_name: null|string, terminal_verification_results: null|string, transaction_status_information: null|string}&StripeObject)}&StripeObject), kakao_pay?: (object{buyer_id: null|string, transaction_id: null|string}&StripeObject), klarna?: (object{location?: string, payer_details: null|(object{address: null|(object{country: null|string}&StripeObject)}&StripeObject), payment_method_category: null|string, preferred_locale: null|string, reader?: string}&StripeObject), konbini?: (object{store: null|(object{chain: null|string}&StripeObject)}&StripeObject), kr_card?: (object{brand: null|string, buyer_id: null|string, last4: null|string, transaction_id: null|string}&StripeObject), link?: (object{country: null|string}&StripeObject), mb_way?: (object{}&StripeObject), mobilepay?: (object{card: null|(object{brand: null|string, country: null|string, exp_month: null|int, exp_year: null|int, last4: null|string}&StripeObject)}&StripeObject), multibanco?: (object{entity: null|string, reference: null|string}&StripeObject), naver_pay?: (object{buyer_id: null|string, transaction_id: null|string}&StripeObject), nz_bank_account?: (object{account_holder_name: null|string, bank_code: string, bank_name: string, branch_code: string, expected_debit_date?: string, last4: string, suffix: null|string}&StripeObject), oxxo?: (object{number: null|string}&StripeObject), p24?: (object{bank: null|string, reference: null|string, verified_name: null|string}&StripeObject), pay_by_bank?: (object{}&StripeObject), payco?: (object{buyer_id: null|string, transaction_id: null|string}&StripeObject), payment_method: null|string, paynow?: (object{location?: string, reader?: string, reference: null|string}&StripeObject), paypal?: (object{country: null|string, payer_email: null|string, payer_id: null|string, payer_name: null|string, seller_protection: null|(object{dispute_categories: null|string[], status: string}&StripeObject), shipping?: null|(object{city: null|string, country: null|string, line1: null|string, line2: null|string, postal_code: null|string, state: null|string}&StripeObject), transaction_id: null|string, verified_address?: null|(object{city: null|string, country: null|string, line1: null|string, line2: null|string, postal_code: null|string, state: null|string}&StripeObject), verified_email?: null|string, verified_name?: null|string}&StripeObject), paypay?: (object{}&StripeObject), payto?: (object{bsb_number: null|string, last4: null|string, mandate?: string, pay_id: null|string}&StripeObject), pix?: (object{bank_transaction_id?: null|string, mandate?: string}&StripeObject), promptpay?: (object{reference: null|string}&StripeObject), qris?: (object{}&StripeObject), rechnung?: (object{payment_portal_url: null|string}&StripeObject), revolut_pay?: (object{funding?: (object{card?: (object{brand: null|string, brand_product?: null|string, country: null|string, exp_month: null|int, exp_year: null|int, funding: null|string, last4: null|string}&StripeObject), type: null|string}&StripeObject), transaction_id: null|string}&StripeObject), samsung_pay?: (object{buyer_id: null|string, transaction_id: null|string}&StripeObject), satispay?: (object{transaction_id: null|string}&StripeObject), scalapay?: (object{transaction_id: null|string}&StripeObject), sepa_credit_transfer?: (object{bank_name: null|string, bic: null|string, iban: null|string}&StripeObject), sepa_debit?: (object{bank_code: null|string, branch_code: null|string, country: null|string, expected_debit_date?: string, fingerprint: null|string, last4: null|string, mandate: null|string}&StripeObject), shopeepay?: (object{}&StripeObject), sofort?: (object{bank_code: null|string, bank_name: null|string, bic: null|string, country: null|string, generated_sepa_debit: null|PaymentMethod|string, generated_sepa_debit_mandate: null|Mandate|string, iban_last4: null|string, preferred_language: null|string, verified_name: null|string}&StripeObject), stripe_account?: (object{}&StripeObject), stripe_balance?: (object{account?: null|string}&StripeObject), sunbit?: (object{transaction_id: null|string}&StripeObject), swish?: (object{fingerprint: null|string, payment_reference: null|string, verified_phone_last4: null|string}&StripeObject), tamara?: (object{transaction_id: null|string}&StripeObject), twint?: (object{mandate?: string}&StripeObject), type: string, upi?: (object{vpa: null|string}&StripeObject), us_bank_account?: (object{account_holder_type: null|string, account_type: null|string, bank_name: null|string, expected_debit_date?: string, fingerprint: null|string, last4: null|string, mandate?: Mandate|string, payment_reference: null|string, routing_number: null|string}&StripeObject), wechat?: (object{}&StripeObject), wechat_pay?: (object{fingerprint: null|string, location?: string, reader?: string, transaction_id: null|string}&StripeObject), zip?: (object{}&StripeObject)}&StripeObject) $payment_method_details Information about the Payment Method debited for this payment. + * @property null|(object{ach_credit_transfer?: (object{account_number: null|string, bank_name: null|string, routing_number: null|string, swift_code: null|string}&StripeObject), ach_debit?: (object{account_holder_type: null|string, bank_name: null|string, country: null|string, fingerprint: null|string, last4: null|string, routing_number: null|string}&StripeObject), acss_debit?: (object{bank_name: null|string, expected_debit_date?: string, fingerprint: null|string, institution_number: null|string, last4: null|string, mandate?: string, transit_number: null|string}&StripeObject), affirm?: (object{location?: string, reader?: string, transaction_id: null|string}&StripeObject), afterpay_clearpay?: (object{order_id: null|string, reference: null|string}&StripeObject), alipay?: (object{buyer_id?: string, fingerprint: null|string, transaction_id: null|string}&StripeObject), alma?: (object{installments?: (object{count: int}&StripeObject), transaction_id: null|string}&StripeObject), amazon_pay?: (object{funding?: (object{card?: (object{brand: null|string, brand_product?: null|string, country: null|string, exp_month: null|int, exp_year: null|int, funding: null|string, last4: null|string}&StripeObject), type: null|string}&StripeObject), transaction_id: null|string}&StripeObject), au_becs_debit?: (object{bsb_number: null|string, expected_debit_date?: string, fingerprint: null|string, last4: null|string, mandate?: string}&StripeObject), bacs_debit?: (object{expected_debit_date?: string, fingerprint: null|string, last4: null|string, mandate: null|string, sort_code: null|string}&StripeObject), bancontact?: (object{bank_code: null|string, bank_name: null|string, bic: null|string, generated_sepa_debit: null|PaymentMethod|string, generated_sepa_debit_mandate: null|Mandate|string, iban_last4: null|string, preferred_language: null|string, verified_name: null|string}&StripeObject), billie?: (object{transaction_id: null|string}&StripeObject), billing_details: null|(object{address: (object{city: null|string, country: null|string, line1: null|string, line2: null|string, postal_code: null|string, state: null|string}&StripeObject), email: null|string, name: null|string, phone: null|string}&StripeObject), bizum?: (object{transaction_id: null|string}&StripeObject), blik?: (object{buyer_id: null|string}&StripeObject), boleto?: (object{tax_id: null|string}&StripeObject), card?: (object{authorization_code: null|string, brand: null|string, capture_before?: int, checks: null|(object{address_line1_check: null|string, address_postal_code_check: null|string, cvc_check: null|string}&StripeObject), country: null|string, description: null|string, exp_month: null|int, exp_year: null|int, fingerprint?: null|string, funding: null|string, iin: null|string, installments: null|(object{plan: null|(object{count: null|int, interval: null|string, type: string}&StripeObject)}&StripeObject), issuer: null|string, last4: null|string, moto?: null|bool, network: null|string, network_advice_code: null|string, network_decline_code: null|string, network_token?: null|(object{used: bool}&StripeObject), network_transaction_id: null|string, stored_credential_usage: null|string, three_d_secure: null|(object{authentication_flow: null|string, cryptogram: null|string, electronic_commerce_indicator: null|string, exemption_indicator: null|string, exemption_indicator_applied: null|bool, result: null|string, result_reason: null|string, version: null|string}&StripeObject), wallet: null|(object{apple_pay?: (object{type: string}&StripeObject), dynamic_last4?: string, google_pay?: (object{}&StripeObject), type: string}&StripeObject)}&StripeObject), card_present?: (object{amount_authorized: null|int, brand: null|string, brand_product: null|string, capture_before?: int, cardholder_name: null|string, country: null|string, description?: null|string, emv_auth_data: null|string, exp_month: int, exp_year: int, fingerprint: null|string, funding: null|string, generated_card: null|string, iin?: null|string, incremental_authorization_supported: bool, issuer?: null|string, last4: null|string, location?: string, multicapture?: (object{status: string}&StripeObject), network: null|string, network_transaction_id: null|string, offline: null|(object{stored_at: null|int, type: null|string}&StripeObject), overcapture_supported: bool, preferred_locales: null|string[], read_method: null|string, reader?: string, reauthorization?: null|(object{status: string}&StripeObject), reauthorize_before?: null|int, receipt: null|(object{account_type?: string, application_cryptogram: null|string, application_preferred_name: null|string, authorization_code: null|string, authorization_response_code: null|string, cardholder_verification_method: null|string, dedicated_file_name: null|string, terminal_verification_results: null|string, transaction_status_information: null|string}&StripeObject), wallet?: (object{type: string}&StripeObject)}&StripeObject), cashapp?: (object{buyer_id: null|string, cashtag: null|string, transaction_id: null|string}&StripeObject), crypto?: (object{buyer_address?: string, network?: string, token_currency?: string, transaction_hash?: string}&StripeObject), custom?: (object{display_name: string, type: null|string}&StripeObject), customer_balance?: (object{}&StripeObject), eps?: (object{bank: null|string, verified_name: null|string}&StripeObject), fpx?: (object{account_holder_type: null|string, bank: string, transaction_id: null|string}&StripeObject), gift_card?: (object{balance: null|(object{amount: null|int, currency: null|string}&StripeObject), brand: null|string, exp_month: null|int, exp_year: null|int, first6: null|string, last4: null|string, location?: string, reader?: string, transaction_id: null|string}&StripeObject), giropay?: (object{bank_code: null|string, bank_name: null|string, bic: null|string, verified_name: null|string}&StripeObject), gopay?: (object{}&StripeObject), grabpay?: (object{transaction_id: null|string}&StripeObject), id_bank_transfer?: (object{account_number: string, bank: string, bank_code?: string, bank_name?: string, display_name?: string}&StripeObject), ideal?: (object{bank: null|string, bic: null|string, generated_sepa_debit: null|PaymentMethod|string, generated_sepa_debit_mandate: null|Mandate|string, iban_last4: null|string, transaction_id: null|string, verified_name: null|string}&StripeObject), interac_present?: (object{brand: null|string, cardholder_name: null|string, country: null|string, description?: null|string, emv_auth_data: null|string, exp_month: int, exp_year: int, fingerprint: null|string, funding: null|string, generated_card: null|string, iin?: null|string, issuer?: null|string, last4: null|string, location?: string, network: null|string, network_transaction_id: null|string, preferred_locales: null|string[], read_method: null|string, reader?: string, receipt: null|(object{account_type?: string, application_cryptogram: null|string, application_preferred_name: null|string, authorization_code: null|string, authorization_response_code: null|string, cardholder_verification_method: null|string, dedicated_file_name: null|string, terminal_verification_results: null|string, transaction_status_information: null|string}&StripeObject)}&StripeObject), kakao_pay?: (object{buyer_id: null|string, transaction_id: null|string}&StripeObject), klarna?: (object{location?: string, payer_details: null|(object{address: null|(object{country: null|string}&StripeObject)}&StripeObject), payment_method_category: null|string, preferred_locale: null|string, reader?: string}&StripeObject), konbini?: (object{store: null|(object{chain: null|string}&StripeObject)}&StripeObject), kr_card?: (object{brand: null|string, buyer_id: null|string, last4: null|string, transaction_id: null|string}&StripeObject), link?: (object{country: null|string}&StripeObject), mb_way?: (object{}&StripeObject), mobilepay?: (object{card: null|(object{brand: null|string, country: null|string, exp_month: null|int, exp_year: null|int, last4: null|string}&StripeObject)}&StripeObject), multibanco?: (object{entity: null|string, reference: null|string}&StripeObject), naver_pay?: (object{buyer_id: null|string, transaction_id: null|string}&StripeObject), nz_bank_account?: (object{account_holder_name: null|string, bank_code: string, bank_name: string, branch_code: string, expected_debit_date?: string, last4: string, suffix: null|string}&StripeObject), oxxo?: (object{number: null|string}&StripeObject), p24?: (object{bank: null|string, reference: null|string, verified_name: null|string}&StripeObject), pay_by_bank?: (object{}&StripeObject), payco?: (object{buyer_id: null|string, transaction_id: null|string}&StripeObject), payment_method: null|string, paynow?: (object{location?: string, reader?: string, reference: null|string}&StripeObject), paypal?: (object{country: null|string, payer_email: null|string, payer_id: null|string, payer_name: null|string, seller_protection: null|(object{dispute_categories: null|string[], status: string}&StripeObject), shipping?: null|(object{city: null|string, country: null|string, line1: null|string, line2: null|string, postal_code: null|string, state: null|string}&StripeObject), transaction_id: null|string, verified_address?: null|(object{city: null|string, country: null|string, line1: null|string, line2: null|string, postal_code: null|string, state: null|string}&StripeObject), verified_email?: null|string, verified_name?: null|string}&StripeObject), paypay?: (object{}&StripeObject), payto?: (object{bsb_number: null|string, last4: null|string, mandate?: string, pay_id: null|string}&StripeObject), pix?: (object{bank_transaction_id?: null|string, mandate?: string}&StripeObject), promptpay?: (object{reference: null|string}&StripeObject), qris?: (object{}&StripeObject), rechnung?: (object{payment_portal_url: null|string}&StripeObject), revolut_pay?: (object{funding?: (object{card?: (object{brand: null|string, brand_product?: null|string, country: null|string, exp_month: null|int, exp_year: null|int, funding: null|string, last4: null|string}&StripeObject), type: null|string}&StripeObject), transaction_id: null|string}&StripeObject), samsung_pay?: (object{buyer_id: null|string, transaction_id: null|string}&StripeObject), satispay?: (object{transaction_id: null|string}&StripeObject), scalapay?: (object{transaction_id: null|string}&StripeObject), sepa_credit_transfer?: (object{bank_name: null|string, bic: null|string, iban: null|string}&StripeObject), sepa_debit?: (object{bank_code: null|string, branch_code: null|string, country: null|string, expected_debit_date?: string, fingerprint: null|string, last4: null|string, mandate: null|string}&StripeObject), shopeepay?: (object{}&StripeObject), sofort?: (object{bank_code: null|string, bank_name: null|string, bic: null|string, country: null|string, generated_sepa_debit: null|PaymentMethod|string, generated_sepa_debit_mandate: null|Mandate|string, iban_last4: null|string, preferred_language: null|string, verified_name: null|string}&StripeObject), stripe_account?: (object{}&StripeObject), stripe_balance?: (object{account?: null|string}&StripeObject), sunbit?: (object{transaction_id: null|string}&StripeObject), swish?: (object{fingerprint: null|string, payment_reference: null|string, verified_phone_last4: null|string}&StripeObject), tamara?: (object{transaction_id: null|string}&StripeObject), twint?: (object{mandate?: string}&StripeObject), type: string, upi?: (object{vpa: null|string}&StripeObject), us_bank_account?: (object{account_holder_type: null|string, account_type: null|string, bank_name: null|string, expected_debit_date?: string, fingerprint: null|string, last4: null|string, mandate?: Mandate|string, payment_reference: null|string, routing_number: null|string}&StripeObject), wechat?: (object{}&StripeObject), wechat_pay?: (object{fingerprint: null|string, location?: string, reader?: string, transaction_id: null|string}&StripeObject), zip?: (object{}&StripeObject)}&StripeObject) $payment_method_details Information about the Payment Method debited for this payment. * @property (object{custom?: (object{payment_reference: null|string}&StripeObject), fiserv_valuelink?: (object{payment_reference: string}&StripeObject), givex?: (object{payment_reference: string}&StripeObject), svs?: (object{payment_reference: string}&StripeObject), type: string}&StripeObject) $processor_details Processor information associated with this payment. * @property string $reported_by Indicates who reported the payment. * @property null|(object{address: (object{city: null|string, country: null|string, line1: null|string, line2: null|string, postal_code: null|string, state: null|string}&StripeObject), name: null|string, phone: null|string}&StripeObject) $shipping_details Shipping information for this payment. @@ -180,4 +180,19 @@ public function reportRefund($params = null, $opts = null) return $this; } + + /** + * @param null|array $params + * @param null|array|string $opts + * + * @return SearchResult the payment record search results + * + * @throws Exception\ApiErrorException if the request fails + */ + public static function search($params = null, $opts = null) + { + $url = '/v1/payment_records/search'; + + return static::_requestPage($url, SearchResult::class, $params, $opts); + } } diff --git a/lib/Service/AccountSessionService.php b/lib/Service/AccountSessionService.php index f8fc13102..385eb8a4d 100644 --- a/lib/Service/AccountSessionService.php +++ b/lib/Service/AccountSessionService.php @@ -15,7 +15,7 @@ class AccountSessionService extends AbstractService * Creates a AccountSession object that includes a single-use token that the * platform can use on their front-end to grant client-side API access. * - * @param null|array{account: string, components: array{account_management?: array{enabled: bool, features?: array{disable_stripe_user_authentication?: bool, external_account_collection?: bool}}, account_onboarding?: array{enabled: bool, features?: array{disable_stripe_user_authentication?: bool, external_account_collection?: bool}}, agentic_commerce_settings?: array{enabled: bool, features?: array{}}, app_install?: array{enabled: bool, features?: array{allowed_apps?: null|string[]}}, app_viewport?: array{enabled: bool, features?: array{allowed_apps?: null|string[]}}, balance_report?: array{enabled: bool, features?: array{}}, balances?: array{enabled: bool, features?: array{disable_stripe_user_authentication?: bool, edit_payout_schedule?: bool, external_account_collection?: bool, instant_payouts?: bool, standard_payouts?: bool}}, capital_financing?: array{enabled: bool, features?: array{}}, capital_financing_application?: array{enabled: bool, features?: array{}}, capital_financing_promotion?: array{enabled: bool, features?: array{}}, capital_overview?: array{enabled: bool, features?: array{}}, check_scanning?: array{enabled: bool, features?: array{create_us_paper_check_on_application?: bool}}, disputes_list?: array{enabled: bool, features?: array{capture_payments?: bool, destination_on_behalf_of_charge_management?: bool, dispute_management?: bool, refund_management?: bool}}, documents?: array{enabled: bool, features?: array{}}, export_tax_transactions?: array{enabled: bool, features?: array{}}, financial_account?: array{enabled: bool, features?: array{disable_stripe_user_authentication?: bool, external_account_collection?: bool, send_money?: bool, transfer_balance?: bool}}, financial_account_transactions?: array{enabled: bool, features?: array{card_spend_dispute_management?: bool}}, instant_payouts_promotion?: array{enabled: bool, features?: array{disable_stripe_user_authentication?: bool, external_account_collection?: bool, instant_payouts?: bool}}, issuing_card?: array{enabled: bool, features?: array{card_management?: bool, card_spend_dispute_management?: bool, cardholder_management?: bool, spend_control_management?: bool}}, issuing_cards_list?: array{enabled: bool, features?: array{card_management?: bool, card_spend_dispute_management?: bool, cardholder_management?: bool, disable_stripe_user_authentication?: bool, spend_control_management?: bool}}, notification_banner?: array{enabled: bool, features?: array{disable_stripe_user_authentication?: bool, external_account_collection?: bool}}, payment_details?: array{enabled: bool, features?: array{capture_payments?: bool, destination_on_behalf_of_charge_management?: bool, dispute_management?: bool, refund_management?: bool}}, payment_disputes?: array{enabled: bool, features?: array{destination_on_behalf_of_charge_management?: bool, dispute_management?: bool, refund_management?: bool}}, payment_method_settings?: array{enabled: bool, features?: array{}}, payments?: array{enabled: bool, features?: array{capture_payments?: bool, destination_on_behalf_of_charge_management?: bool, dispute_management?: bool, refund_management?: bool}}, payout_details?: array{enabled: bool, features?: array{}}, payout_reconciliation_report?: array{enabled: bool, features?: array{}}, payouts?: array{enabled: bool, features?: array{disable_stripe_user_authentication?: bool, edit_payout_schedule?: bool, external_account_collection?: bool, instant_payouts?: bool, standard_payouts?: bool}}, payouts_list?: array{enabled: bool, features?: array{}}, product_tax_code_selector?: array{enabled: bool, features?: array{}}, recipients?: array{enabled: bool, features?: array{send_money?: bool}}, reporting_chart?: array{enabled: bool, features?: array{}}, tax_registrations?: array{enabled: bool, features?: array{}}, tax_settings?: array{enabled: bool, features?: array{}}, tax_threshold_monitoring?: array{enabled: bool, features?: array{}}, terminal_hardware_orders?: array{enabled: bool, features?: array{}}, terminal_hardware_shop?: array{enabled: bool, features?: array{}}}, expand?: string[]} $params + * @param null|array{account: string, components: array{account_management?: array{enabled: bool, features?: array{disable_stripe_user_authentication?: bool, external_account_collection?: bool}}, account_onboarding?: array{enabled: bool, features?: array{disable_stripe_user_authentication?: bool, external_account_collection?: bool}}, agentic_commerce_settings?: array{enabled: bool, features?: array{}}, app_install?: array{enabled: bool, features?: array{allowed_apps?: null|string[]}}, app_viewport?: array{enabled: bool, features?: array{allowed_apps?: null|string[]}}, balance_report?: array{enabled: bool, features?: array{}}, balances?: array{enabled: bool, features?: array{disable_stripe_user_authentication?: bool, edit_payout_schedule?: bool, external_account_collection?: bool, instant_payouts?: bool, standard_payouts?: bool}}, capital_financing?: array{enabled: bool, features?: array{}}, capital_financing_application?: array{enabled: bool, features?: array{}}, capital_financing_promotion?: array{enabled: bool, features?: array{}}, capital_overview?: array{enabled: bool, features?: array{}}, check_scanning?: array{enabled: bool, features?: array{create_us_paper_check_on_application?: bool}}, disputes_list?: array{enabled: bool, features?: array{capture_payments?: bool, destination_on_behalf_of_charge_management?: bool, dispute_management?: bool, refund_management?: bool}}, documents?: array{enabled: bool, features?: array{}}, export_tax_transactions?: array{enabled: bool, features?: array{}}, financial_account?: array{enabled: bool, features?: array{disable_stripe_user_authentication?: bool, external_account_collection?: bool, send_money?: bool, transfer_balance?: bool}}, financial_account_transactions?: array{enabled: bool, features?: array{card_spend_dispute_management?: bool}}, financial_accounts?: array{features?: array{}}, financial_accounts_transactions?: array{features?: array{}}, instant_payouts_promotion?: array{enabled: bool, features?: array{disable_stripe_user_authentication?: bool, external_account_collection?: bool, instant_payouts?: bool}}, issuing_card?: array{enabled: bool, features?: array{card_management?: bool, card_spend_dispute_management?: bool, cardholder_management?: bool, spend_control_management?: bool}}, issuing_cards_list?: array{enabled: bool, features?: array{card_management?: bool, card_spend_dispute_management?: bool, cardholder_management?: bool, disable_stripe_user_authentication?: bool, spend_control_management?: bool}}, notification_banner?: array{enabled: bool, features?: array{disable_stripe_user_authentication?: bool, external_account_collection?: bool}}, payment_details?: array{enabled: bool, features?: array{capture_payments?: bool, destination_on_behalf_of_charge_management?: bool, dispute_management?: bool, refund_management?: bool}}, payment_disputes?: array{enabled: bool, features?: array{destination_on_behalf_of_charge_management?: bool, dispute_management?: bool, refund_management?: bool}}, payment_method_settings?: array{enabled: bool, features?: array{}}, payments?: array{enabled: bool, features?: array{capture_payments?: bool, destination_on_behalf_of_charge_management?: bool, dispute_management?: bool, refund_management?: bool}}, payout_details?: array{enabled: bool, features?: array{}}, payout_reconciliation_report?: array{enabled: bool, features?: array{}}, payouts?: array{enabled: bool, features?: array{disable_stripe_user_authentication?: bool, edit_payout_schedule?: bool, external_account_collection?: bool, instant_payouts?: bool, standard_payouts?: bool}}, payouts_list?: array{enabled: bool, features?: array{}}, product_tax_code_selector?: array{enabled: bool, features?: array{}}, recipients?: array{enabled: bool, features?: array{send_money?: bool}}, recipients_list?: array{features?: array{}}, reporting_chart?: array{enabled: bool, features?: array{}}, tax_registrations?: array{enabled: bool, features?: array{}}, tax_settings?: array{enabled: bool, features?: array{}}, tax_threshold_monitoring?: array{enabled: bool, features?: array{}}, terminal_hardware_orders?: array{enabled: bool, features?: array{}}, terminal_hardware_shop?: array{enabled: bool, features?: array{}}}, expand?: string[]} $params * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @return \Stripe\AccountSession diff --git a/lib/Service/Checkout/SessionService.php b/lib/Service/Checkout/SessionService.php index 516b57424..7010c51f8 100644 --- a/lib/Service/Checkout/SessionService.php +++ b/lib/Service/Checkout/SessionService.php @@ -65,7 +65,7 @@ public function approve($id, $params = null, $opts = null) /** * Creates a Checkout Session object. * - * @param null|array{adaptive_pricing?: array{enabled?: bool}, after_expiration?: array{recovery?: array{allow_promotion_codes?: bool, enabled: bool}}, allow_promotion_codes?: bool, approval_method?: string, automatic_surcharge?: array{calculation_basis?: string, enabled: bool, tax_behavior?: string}, automatic_tax?: array{enabled: bool, liability?: array{account?: string, type: string}}, billing_address_collection?: string, branding_settings?: array{background_color?: null|string, border_style?: null|string, button_color?: null|string, display_name?: string, font_family?: null|string, icon?: array{file?: string, type: string, url?: string}, logo?: array{file?: string, type: string, url?: string}}, cancel_url?: string, client_reference_id?: string, consent_collection?: array{payment_method_reuse_agreement?: array{position: string}, promotions?: string, terms_of_service?: string}, currency?: string, custom_fields?: array{dropdown?: array{default_value?: string, options: array{label: string, value: string}[]}, key: string, label: array{custom: string, type: string}, numeric?: array{default_value?: string, maximum_length?: int, minimum_length?: int}, optional?: bool, text?: array{default_value?: string, maximum_length?: int, minimum_length?: int}, type: string}[], custom_payment_method_types?: string[], custom_text?: array{after_submit?: null|array{message: string}, shipping_address?: null|array{message: string}, submit?: null|array{message: string}, terms_of_service_acceptance?: null|array{message: string}}, customer?: string, customer_account?: string, customer_creation?: string, customer_email?: string, customer_update?: array{address?: string, name?: string, shipping?: string}, discounts?: (array{coupon?: string, coupon_data?: array{amount_off?: int, currency?: string, duration?: string, metadata?: null|array, name?: string, percent_off?: float}, promotion_code?: string})[], excluded_payment_method_types?: string[], expand?: string[], expires_at?: int, integration_identifier?: string, invoice_creation?: array{enabled: bool, invoice_data?: array{account_tax_ids?: null|string[], custom_fields?: null|array{name: string, value: string}[], description?: string, footer?: string, issuer?: array{account?: string, type: string}, metadata?: array, rendering_options?: null|array{amount_tax_display?: null|string, template?: string}}}, items?: array{type: string}[], line_items?: (array{adjustable_quantity?: array{enabled: bool, maximum?: int, minimum?: int}, dynamic_tax_rates?: string[], metadata?: array, price?: string, price_data?: array{currency: string, product?: string, product_data?: array{description?: string, images?: string[], metadata?: array, name: string, tax_code?: string, tax_details?: array{performance_location?: string, tax_code?: null|string}, unit_label?: string}, recurring?: array{interval: string, interval_count?: int}, tax_behavior?: string, unit_amount?: int, unit_amount_decimal?: string}, quantity?: int, tax_rates?: string[]})[], locale?: string, managed_payments?: array{enabled?: bool}, metadata?: array, mode?: string, name_collection?: array{business?: array{enabled: bool, optional?: bool}, individual?: array{enabled: bool, optional?: bool}}, optional_items?: array{adjustable_quantity?: array{enabled: bool, maximum?: int, minimum?: int}, price: string, quantity: int}[], origin_context?: string, payment_intent_data?: array{application_fee_amount?: int, capture_method?: string, description?: string, metadata?: array, on_behalf_of?: string, receipt_email?: string, setup_future_usage?: string, shipping?: array{address: array{city?: string, country?: string, line1: string, line2?: string, postal_code?: string, state?: string}, carrier?: string, name: string, phone?: string, tracking_number?: string}, statement_descriptor?: string, statement_descriptor_suffix?: string, transfer_data?: array{amount?: int, destination: string}, transfer_group?: string}, payment_method_collection?: string, payment_method_configuration?: string, payment_method_data?: array{allow_redisplay?: string}, payment_method_options?: array{acss_debit?: array{currency?: string, mandate_options?: array{custom_mandate_url?: null|string, default_for?: string[], interval_description?: string, payment_schedule?: string, transaction_type?: string}, setup_future_usage?: string, target_date?: string, verification_method?: string}, affirm?: array{capture_method?: string, setup_future_usage?: string}, afterpay_clearpay?: array{capture_method?: string, setup_future_usage?: string}, alipay?: array{setup_future_usage?: string}, alma?: array{capture_method?: string}, amazon_pay?: array{capture_method?: string, setup_future_usage?: string}, au_becs_debit?: array{setup_future_usage?: string, target_date?: string}, bacs_debit?: array{mandate_options?: array{reference_prefix?: null|string}, setup_future_usage?: string, target_date?: string}, bancontact?: array{setup_future_usage?: string}, billie?: array{capture_method?: string}, bizum?: array{mandate_options?: array{}}, blik?: array{mandate_options?: array{expires_after?: int}, setup_future_usage?: null|string}, boleto?: array{expires_after_days?: int, setup_future_usage?: string}, card?: array{capture_method?: string, installments?: array{enabled?: bool}, request_decremental_authorization?: string, request_extended_authorization?: string, request_incremental_authorization?: string, request_multicapture?: string, request_overcapture?: string, request_three_d_secure?: string, restrictions?: array{brands_blocked?: string[]}, setup_future_usage?: string, statement_descriptor_suffix_kana?: string, statement_descriptor_suffix_kanji?: string}, cashapp?: array{capture_method?: string, setup_future_usage?: string}, crypto?: array{setup_future_usage?: string}, customer_balance?: array{bank_transfer?: array{eu_bank_transfer?: array{country: string}, requested_address_types?: string[], type: string}, funding_type?: string, setup_future_usage?: string}, demo_pay?: array{setup_future_usage?: string}, eps?: array{setup_future_usage?: string}, fpx?: array{setup_future_usage?: string}, giropay?: array{setup_future_usage?: string}, grabpay?: array{setup_future_usage?: string}, ideal?: array{setup_future_usage?: string}, kakao_pay?: array{capture_method?: string, setup_future_usage?: string}, klarna?: array{capture_method?: string, setup_future_usage?: string, subscriptions?: null|array{interval: string, interval_count?: int, name?: string, next_billing: array{amount: int, date: string}, reference: string}[]}, konbini?: array{expires_after_days?: int, setup_future_usage?: string}, kr_card?: array{capture_method?: string, setup_future_usage?: string}, link?: array{capture_method?: string, setup_future_usage?: string}, mobilepay?: array{capture_method?: string, setup_future_usage?: string}, multibanco?: array{setup_future_usage?: string}, naver_pay?: array{capture_method?: string, setup_future_usage?: string}, oxxo?: array{expires_after_days?: int, setup_future_usage?: string}, p24?: array{setup_future_usage?: string, tos_shown_and_accepted?: bool}, pay_by_bank?: array{}, payco?: array{capture_method?: string}, paynow?: array{setup_future_usage?: string}, paypal?: array{capture_method?: null|string, preferred_locale?: string, reference?: string, reference_id?: string, risk_correlation_id?: string, setup_future_usage?: null|string, subsellers?: string[]}, payto?: array{mandate_options?: array{amount?: null|int, amount_type?: null|string, end_date?: null|string, payment_schedule?: null|string, payments_per_period?: null|int, purpose?: null|string, start_date?: null|string}, setup_future_usage?: string}, pix?: array{amount_includes_iof?: string, expires_after_seconds?: int, mandate_options?: array{amount?: int, amount_includes_iof?: string, amount_type?: string, currency?: string, end_date?: string, payment_schedule?: string, reference?: string, start_date?: string}, setup_future_usage?: string}, revolut_pay?: array{capture_method?: string, setup_future_usage?: string}, samsung_pay?: array{capture_method?: string}, satispay?: array{capture_method?: string}, scalapay?: array{capture_method?: string}, sepa_debit?: array{mandate_options?: array{reference_prefix?: null|string}, setup_future_usage?: string, target_date?: string}, sofort?: array{setup_future_usage?: string}, swish?: array{reference?: string}, twint?: array{setup_future_usage?: string}, upi?: array{mandate_options?: array{amount?: int, amount_type?: string, description?: string, end_date?: int}, setup_future_usage?: null|string}, us_bank_account?: array{financial_connections?: array{permissions?: string[], prefetch?: string[]}, setup_future_usage?: string, target_date?: string, verification_method?: string}, wechat_pay?: array{app_id?: string, client: string, setup_future_usage?: string}}, payment_method_types?: string[], permissions?: array{update?: array{line_items?: string, shipping_details?: string}, update_discounts?: string, update_line_items?: string, update_shipping_details?: string}, phone_number_collection?: array{enabled: bool}, redirect_on_completion?: string, return_url?: string, saved_payment_method_options?: array{allow_redisplay_filters?: string[], payment_method_remove?: string, payment_method_save?: string}, setup_intent_data?: array{description?: string, metadata?: array, on_behalf_of?: string}, shipping_address_collection?: array{allowed_countries: string[]}, shipping_options?: array{shipping_rate?: string, shipping_rate_data?: array{delivery_estimate?: array{maximum?: array{unit: string, value: int}, minimum?: array{unit: string, value: int}}, display_name: string, fixed_amount?: array{amount: int, currency: string, currency_options?: array}, metadata?: array, tax_behavior?: string, tax_code?: string, type?: string}}[], submit_type?: string, subscription_data?: array{application_fee_percent?: float, billing_cycle_anchor?: int, billing_mode?: array{flexible?: array{proration_discounts?: string}, type: string}, default_tax_rates?: string[], description?: string, invoice_settings?: array{issuer?: array{account?: string, type: string}}, metadata?: array, on_behalf_of?: string, pending_invoice_item_interval?: array{interval: string, interval_count?: int}, proration_behavior?: string, transfer_data?: array{amount_percent?: float, destination: string}, trial_end?: int, trial_period_days?: int, trial_settings?: array{end_behavior: array{missing_payment_method: string}}}, success_url?: string, tax_id_collection?: array{enabled: bool, required?: string}, ui_mode?: string, wallet_options?: array{link?: array{display?: string}}, checkout_items?: array{type: string, rate_card_subscription_item?: array{rate_card: string, metadata?: array, rate_card_version?: string}, pricing_plan_subscription_item?: array{pricing_plan: string, pricing_plan_version?: string, metadata?: array, component_configurations?: array}}[]} $params + * @param null|array{adaptive_pricing?: array{enabled?: bool}, after_expiration?: array{recovery?: array{allow_promotion_codes?: bool, enabled: bool}}, allow_promotion_codes?: bool, approval_method?: string, automatic_surcharge?: array{calculation_basis?: string, enabled: bool, tax_behavior?: string}, automatic_tax?: array{enabled: bool, liability?: array{account?: string, type: string}}, billing_address_collection?: string, branding_settings?: array{background_color?: null|string, border_style?: null|string, button_color?: null|string, display_name?: string, font_family?: null|string, icon?: array{file?: string, type: string, url?: string}, logo?: array{file?: string, type: string, url?: string}}, cancel_url?: string, client_reference_id?: string, consent_collection?: array{payment_method_reuse_agreement?: array{position: string}, promotions?: string, terms_of_service?: string}, currency?: string, custom_fields?: array{dropdown?: array{default_value?: string, options: array{label: string, value: string}[]}, key: string, label: array{custom: string, type: string}, numeric?: array{default_value?: string, maximum_length?: int, minimum_length?: int}, optional?: bool, text?: array{default_value?: string, maximum_length?: int, minimum_length?: int}, type: string}[], custom_payment_method_types?: string[], custom_text?: array{after_submit?: null|array{message: string}, shipping_address?: null|array{message: string}, submit?: null|array{message: string}, terms_of_service_acceptance?: null|array{message: string}}, customer?: string, customer_account?: string, customer_creation?: string, customer_email?: string, customer_update?: array{address?: string, name?: string, shipping?: string}, discounts?: (array{coupon?: string, coupon_data?: array{amount_off?: int, currency?: string, duration?: string, metadata?: null|array, name?: string, percent_off?: float}, promotion_code?: string})[], excluded_payment_method_types?: string[], expand?: string[], expires_at?: int, integration_identifier?: string, invoice_creation?: array{enabled: bool, invoice_data?: array{account_tax_ids?: null|string[], custom_fields?: null|array{name: string, value: string}[], description?: string, footer?: string, issuer?: array{account?: string, type: string}, metadata?: array, rendering_options?: null|array{amount_tax_display?: null|string, template?: string}}}, items?: (array{subscription?: array{billing_cycle_anchor_config?: array{day_of_month: int, hour?: int, minute?: int, month?: int, second?: int}, billing_mode?: array{flexible?: array{proration_discounts?: string}, type: string}, description?: string, items: (array{price?: string, price_data?: array{currency: string, product?: string, product_data?: array{description?: string, images?: string[], metadata?: array, name: string, tax_code?: string, tax_details?: array{performance_location?: string, tax_code?: null|string}, unit_label?: string}, recurring?: array{interval: string, interval_count?: int}, tax_behavior?: string, unit_amount?: int, unit_amount_decimal?: string}, quantity?: int})[], metadata?: array, pending_invoice_item_interval?: array{interval: string, interval_count?: int}, proration_behavior?: string, trial_end?: int, trial_period_days?: int, trial_settings?: array{end_behavior: array{missing_payment_method: string}}}, type: string})[], line_items?: (array{adjustable_quantity?: array{enabled: bool, maximum?: int, minimum?: int}, dynamic_tax_rates?: string[], metadata?: array, price?: string, price_data?: array{currency: string, product?: string, product_data?: array{description?: string, images?: string[], metadata?: array, name: string, tax_code?: string, tax_details?: array{performance_location?: string, tax_code?: null|string}, unit_label?: string}, recurring?: array{interval: string, interval_count?: int}, tax_behavior?: string, unit_amount?: int, unit_amount_decimal?: string}, quantity?: int, tax_rates?: string[]})[], locale?: string, managed_payments?: array{enabled?: bool}, metadata?: array, mode?: string, name_collection?: array{business?: array{enabled: bool, optional?: bool}, individual?: array{enabled: bool, optional?: bool}}, optional_items?: array{adjustable_quantity?: array{enabled: bool, maximum?: int, minimum?: int}, price: string, quantity: int}[], origin_context?: string, payment_intent_data?: array{application_fee_amount?: int, capture_method?: string, description?: string, metadata?: array, on_behalf_of?: string, receipt_email?: string, setup_future_usage?: string, shipping?: array{address: array{city?: string, country?: string, line1: string, line2?: string, postal_code?: string, state?: string}, carrier?: string, name: string, phone?: string, tracking_number?: string}, statement_descriptor?: string, statement_descriptor_suffix?: string, transfer_data?: array{amount?: int, destination: string}, transfer_group?: string}, payment_method_collection?: string, payment_method_configuration?: string, payment_method_data?: array{allow_redisplay?: string}, payment_method_options?: array{acss_debit?: array{currency?: string, mandate_options?: array{custom_mandate_url?: null|string, default_for?: string[], interval_description?: string, payment_schedule?: string, transaction_type?: string}, setup_future_usage?: string, target_date?: string, verification_method?: string}, affirm?: array{capture_method?: string, setup_future_usage?: string}, afterpay_clearpay?: array{capture_method?: string, setup_future_usage?: string}, alipay?: array{setup_future_usage?: string}, alma?: array{capture_method?: string}, amazon_pay?: array{capture_method?: string, setup_future_usage?: string}, au_becs_debit?: array{setup_future_usage?: string, target_date?: string}, bacs_debit?: array{mandate_options?: array{reference_prefix?: null|string}, setup_future_usage?: string, target_date?: string}, bancontact?: array{setup_future_usage?: string}, billie?: array{capture_method?: string}, bizum?: array{mandate_options?: array{}}, blik?: array{mandate_options?: array{expires_after?: int}, setup_future_usage?: null|string}, boleto?: array{expires_after_days?: int, setup_future_usage?: string}, card?: array{capture_method?: string, installments?: array{enabled?: bool}, request_decremental_authorization?: string, request_extended_authorization?: string, request_incremental_authorization?: string, request_multicapture?: string, request_overcapture?: string, request_three_d_secure?: string, restrictions?: array{brands_blocked?: string[]}, setup_future_usage?: string, statement_descriptor_suffix_kana?: string, statement_descriptor_suffix_kanji?: string}, cashapp?: array{capture_method?: string, setup_future_usage?: string}, crypto?: array{setup_future_usage?: string}, customer_balance?: array{bank_transfer?: array{eu_bank_transfer?: array{country: string}, requested_address_types?: string[], type: string}, funding_type?: string, setup_future_usage?: string}, demo_pay?: array{setup_future_usage?: string}, eps?: array{setup_future_usage?: string}, fpx?: array{setup_future_usage?: string}, giropay?: array{setup_future_usage?: string}, grabpay?: array{setup_future_usage?: string}, ideal?: array{setup_future_usage?: string}, kakao_pay?: array{capture_method?: string, setup_future_usage?: string}, klarna?: array{capture_method?: string, setup_future_usage?: string, subscriptions?: null|array{interval: string, interval_count?: int, name?: string, next_billing: array{amount: int, date: string}, reference: string}[]}, konbini?: array{expires_after_days?: int, setup_future_usage?: string}, kr_card?: array{capture_method?: string, setup_future_usage?: string}, link?: array{capture_method?: string, setup_future_usage?: string}, mobilepay?: array{capture_method?: string, setup_future_usage?: string}, multibanco?: array{setup_future_usage?: string}, naver_pay?: array{capture_method?: string, setup_future_usage?: string}, oxxo?: array{expires_after_days?: int, setup_future_usage?: string}, p24?: array{setup_future_usage?: string, tos_shown_and_accepted?: bool}, pay_by_bank?: array{}, payco?: array{capture_method?: string}, paynow?: array{setup_future_usage?: string}, paypal?: array{capture_method?: null|string, preferred_locale?: string, reference?: string, reference_id?: string, risk_correlation_id?: string, setup_future_usage?: null|string, subsellers?: string[]}, payto?: array{mandate_options?: array{amount?: null|int, amount_type?: null|string, end_date?: null|string, payment_schedule?: null|string, payments_per_period?: null|int, purpose?: null|string, start_date?: null|string}, setup_future_usage?: string}, pix?: array{amount_includes_iof?: string, expires_after_seconds?: int, mandate_options?: array{amount?: int, amount_includes_iof?: string, amount_type?: string, currency?: string, end_date?: string, payment_schedule?: string, reference?: string, start_date?: string}, setup_future_usage?: string}, revolut_pay?: array{capture_method?: string, setup_future_usage?: string}, samsung_pay?: array{capture_method?: string}, satispay?: array{capture_method?: string}, scalapay?: array{capture_method?: string}, sepa_debit?: array{mandate_options?: array{reference_prefix?: null|string}, setup_future_usage?: string, target_date?: string}, sofort?: array{setup_future_usage?: string}, swish?: array{reference?: string}, twint?: array{setup_future_usage?: string}, upi?: array{mandate_options?: array{amount?: int, amount_type?: string, description?: string, end_date?: int}, setup_future_usage?: null|string}, us_bank_account?: array{financial_connections?: array{permissions?: string[], prefetch?: string[]}, setup_future_usage?: string, target_date?: string, verification_method?: string}, wechat_pay?: array{app_id?: string, client: string, setup_future_usage?: string}}, payment_method_types?: string[], permissions?: array{update?: array{line_items?: string, shipping_details?: string}, update_discounts?: string, update_line_items?: string, update_shipping_details?: string}, phone_number_collection?: array{enabled: bool}, redirect_on_completion?: string, return_url?: string, saved_payment_method_options?: array{allow_redisplay_filters?: string[], payment_method_remove?: string, payment_method_save?: string}, setup_intent_data?: array{description?: string, metadata?: array, on_behalf_of?: string}, shipping_address_collection?: array{allowed_countries: string[]}, shipping_options?: array{shipping_rate?: string, shipping_rate_data?: array{delivery_estimate?: array{maximum?: array{unit: string, value: int}, minimum?: array{unit: string, value: int}}, display_name: string, fixed_amount?: array{amount: int, currency: string, currency_options?: array}, metadata?: array, tax_behavior?: string, tax_code?: string, type?: string}}[], submit_type?: string, subscription_data?: array{application_fee_percent?: float, billing_cycle_anchor?: int, billing_mode?: array{flexible?: array{proration_discounts?: string}, type: string}, default_tax_rates?: string[], description?: string, invoice_settings?: array{issuer?: array{account?: string, type: string}}, metadata?: array, on_behalf_of?: string, pending_invoice_item_interval?: array{interval: string, interval_count?: int}, proration_behavior?: string, transfer_data?: array{amount_percent?: float, destination: string}, trial_end?: int, trial_period_days?: int, trial_settings?: array{end_behavior: array{missing_payment_method: string}}}, success_url?: string, tax_id_collection?: array{enabled: bool, required?: string}, ui_mode?: string, wallet_options?: array{link?: array{display?: string}}, checkout_items?: array{type: string, rate_card_subscription_item?: array{rate_card: string, metadata?: array, rate_card_version?: string}, pricing_plan_subscription_item?: array{pricing_plan: string, pricing_plan_version?: string, metadata?: array, component_configurations?: array}}[]} $params * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @return \Stripe\Checkout\Session diff --git a/lib/Service/PaymentAttemptRecordService.php b/lib/Service/PaymentAttemptRecordService.php index eb6bc7372..097d4c585 100644 --- a/lib/Service/PaymentAttemptRecordService.php +++ b/lib/Service/PaymentAttemptRecordService.php @@ -74,6 +74,23 @@ public function reportCanceled($id, $params = null, $opts = null) return $this->request('post', $this->buildPath('/v1/payment_attempt_records/%s/report_canceled', $id), $params, $opts); } + /** + * Report that the specified Payment Attempt Record received an early fraud + * warning. + * + * @param string $id + * @param null|array{expand?: string[], fraud_type: string, metadata?: null|array, occurred_at: int} $params + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts + * + * @return \Stripe\PaymentAttemptRecord + * + * @throws \Stripe\Exception\ApiErrorException if the request fails + */ + public function reportEarlyFraudWarning($id, $params = null, $opts = null) + { + return $this->request('post', $this->buildPath('/v1/payment_attempt_records/%s/report_early_fraud_warning', $id), $params, $opts); + } + /** * Report that the specified Payment Attempt Record failed. * @@ -126,7 +143,7 @@ public function reportInformational($id, $params = null, $opts = null) * Report that the specified Payment Attempt Record was refunded. * * @param string $id - * @param null|array{amount?: array{currency: string, value: int}, expand?: string[], failed?: array{failed_at?: int, failure_reason?: string}, initiated_at?: int, metadata?: null|array, outcome: string, processor_details: array{custom?: array{refund_reference: string}, type: string}, refund_group?: string, refunded?: array{refunded_at: int}} $params + * @param null|array{amount?: array{currency: string, value: int}, expand?: string[], failed?: array{failed_at?: int, failure_reason?: string}, initiated_at?: int, metadata?: null|array, outcome?: string, processor_details: array{custom?: array{refund_reference: string}, type: string}, refund_group?: string, refunded?: array{refunded_at: int}} $params * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @return \Stripe\PaymentAttemptRecord diff --git a/lib/Service/PaymentRecordService.php b/lib/Service/PaymentRecordService.php index 70505c0d5..a57b28571 100644 --- a/lib/Service/PaymentRecordService.php +++ b/lib/Service/PaymentRecordService.php @@ -118,7 +118,7 @@ public function reportPaymentAttemptInformational($id, $params = null, $opts = n * refunded. * * @param string $id - * @param null|array{amount?: array{currency: string, value: int}, expand?: string[], failed?: array{failed_at?: int, failure_reason?: string}, initiated_at?: int, metadata?: null|array, outcome: string, processor_details: array{custom?: array{refund_reference: string}, type: string}, refund_group?: string, refunded?: array{refunded_at: int}} $params + * @param null|array{amount?: array{currency: string, value: int}, expand?: string[], failed?: array{failed_at?: int, failure_reason?: string}, initiated_at?: int, metadata?: null|array, outcome?: string, processor_details: array{custom?: array{refund_reference: string}, type: string}, refund_group?: string, refunded?: array{refunded_at: int}} $params * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @return \Stripe\PaymentRecord @@ -145,4 +145,24 @@ public function retrieve($id, $params = null, $opts = null) { return $this->request('get', $this->buildPath('/v1/payment_records/%s', $id), $params, $opts); } + + /** + * Search for PaymentRecords you’ve previously created using Stripe’s Search Query Language. 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{expand?: string[], limit?: int, page?: string, query: string} $params + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts + * + * @return \Stripe\SearchResult<\Stripe\PaymentRecord> + * + * @throws \Stripe\Exception\ApiErrorException if the request fails + */ + public function search($params = null, $opts = null) + { + return $this->requestSearchResult('get', '/v1/payment_records/search', $params, $opts); + } } diff --git a/lib/Service/TestHelpers/Issuing/DisputeService.php b/lib/Service/TestHelpers/Issuing/DisputeService.php index 54a543acd..d0eca3ada 100644 --- a/lib/Service/TestHelpers/Issuing/DisputeService.php +++ b/lib/Service/TestHelpers/Issuing/DisputeService.php @@ -27,6 +27,25 @@ public function close($id, $params = null, $opts = null) return $this->request('post', $this->buildPath('/v1/test_helpers/issuing/disputes/%s/close', $id), $params, $opts); } + /** + * Test helper: overrides the grant_deadline and + * revocable_after timestamps on a test-mode Issuing dispute’s + * provisional credit, allowing tests to simulate timer-driven status transitions + * without waiting for real regulatory deadlines to pass. + * + * @param string $id + * @param null|array{expand?: string[], grant_deadline?: int, revocable_after?: int} $params + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts + * + * @return \Stripe\Issuing\Dispute + * + * @throws \Stripe\Exception\ApiErrorException if the request fails + */ + public function provisionalCredit($id, $params = null, $opts = null) + { + return $this->request('post', $this->buildPath('/v1/test_helpers/issuing/disputes/%s/provisional_credit', $id), $params, $opts); + } + /** * Test helper: populates network_lifecycle.dispute_response on a * test-mode Visa Issuing Dispute using placeholder file tokens. Only supported for diff --git a/lib/Service/V2/Billing/ContractService.php b/lib/Service/V2/Billing/ContractService.php index 420ca0d9b..46e77564c 100644 --- a/lib/Service/V2/Billing/ContractService.php +++ b/lib/Service/V2/Billing/ContractService.php @@ -160,7 +160,7 @@ public function all($params = null, $opts = null) * Cancel a Contract object by ID. * * @param string $id - * @param null|array{include?: string[]} $params + * @param null|array{cancel_pricing_lines?: array{id?: string, lookup_key?: string, proration_behavior?: string}[], include?: string[], proration_behavior?: string} $params * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @return \Stripe\V2\Billing\Contract diff --git a/lib/Tax/TransactionLineItem.php b/lib/Tax/TransactionLineItem.php index 83993ee3b..2ed489361 100644 --- a/lib/Tax/TransactionLineItem.php +++ b/lib/Tax/TransactionLineItem.php @@ -11,7 +11,6 @@ * @property int $amount_tax The amount of tax calculated for this line item, in the smallest currency unit. * @property bool $livemode If the object exists in live mode, the value is true. If the object exists in test mode, the value is false. * @property null|\Stripe\StripeObject $metadata Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. - * @property null|(object{address: (object{city: null|string, country: string, line1: null|string, line2: null|string, postal_code: null|string, state: null|string}&\Stripe\StripeObject)}&\Stripe\StripeObject) $performance_location_details The address of the location where this line item's event or service takes place. Depending on the tax code, providing a performance location is required, optional, or not supported. Use this to provide the address inline without pre-creating a TaxLocation object. Can't be used with performance_location. * @property null|string $product The ID of an existing Product. * @property int $quantity The number of units of the item being purchased. For reversals, this is the quantity reversed. * @property string $reference A custom identifier for this line item in the transaction. From 2adb58dbcaf40008c242576360c1b690b915f366 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Thu, 18 Jun 2026 20:47:06 +0000 Subject: [PATCH 3/8] Update generated code for v2317 and bb93b01c5feaafbbf418073c1f13a09c411a75f5 --- CODEGEN_VERSION | 2 +- init.php | 6 +- lib/Service/V2/Billing/ContractService.php | 688 ++++++++++++---- .../LicensePricing/QuantityChangeService.php | 30 - .../PricingLinesServiceFactory.php} | 6 +- .../PricingLines/QuantityChangeService.php | 45 ++ lib/Util/ObjectTypes.php | 2 +- lib/V2/Billing/Contract.php | 93 ++- ... => ContractPricingLineQuantityChange.php} | 17 +- tests/Stripe/GeneratedExamplesTest.php | 742 +++--------------- 10 files changed, 746 insertions(+), 885 deletions(-) delete mode 100644 lib/Service/V2/Billing/Contracts/LicensePricing/QuantityChangeService.php rename lib/Service/V2/Billing/Contracts/{LicensePricing/LicensePricingServiceFactory.php => PricingLines/PricingLinesServiceFactory.php} (65%) create mode 100644 lib/Service/V2/Billing/Contracts/PricingLines/QuantityChangeService.php rename lib/V2/Billing/{ContractLicensePricingQuantityChange.php => ContractPricingLineQuantityChange.php} (55%) diff --git a/CODEGEN_VERSION b/CODEGEN_VERSION index 9dc8b76e5..2006e7e9f 100644 --- a/CODEGEN_VERSION +++ b/CODEGEN_VERSION @@ -1 +1 @@ -1debceb20294e6ac30efa795346a646e758afc01 \ No newline at end of file +bb93b01c5feaafbbf418073c1f13a09c411a75f5 \ No newline at end of file diff --git a/init.php b/init.php index 61254fdad..9b2a64294 100644 --- a/init.php +++ b/init.php @@ -1371,8 +1371,8 @@ require __DIR__ . '/lib/Service/V2/Billing/CollectionSettingService.php'; require __DIR__ . '/lib/Service/V2/Billing/CollectionSettings/VersionService.php'; require __DIR__ . '/lib/Service/V2/Billing/ContractService.php'; -require __DIR__ . '/lib/Service/V2/Billing/Contracts/LicensePricing/LicensePricingServiceFactory.php'; -require __DIR__ . '/lib/Service/V2/Billing/Contracts/LicensePricing/QuantityChangeService.php'; +require __DIR__ . '/lib/Service/V2/Billing/Contracts/PricingLines/PricingLinesServiceFactory.php'; +require __DIR__ . '/lib/Service/V2/Billing/Contracts/PricingLines/QuantityChangeService.php'; require __DIR__ . '/lib/Service/V2/Billing/CustomPricingUnitService.php'; require __DIR__ . '/lib/Service/V2/Billing/IntentService.php'; require __DIR__ . '/lib/Service/V2/Billing/Intents/ActionService.php'; @@ -1529,7 +1529,7 @@ require __DIR__ . '/lib/V2/Billing/CollectionSetting.php'; require __DIR__ . '/lib/V2/Billing/CollectionSettingVersion.php'; require __DIR__ . '/lib/V2/Billing/Contract.php'; -require __DIR__ . '/lib/V2/Billing/ContractLicensePricingQuantityChange.php'; +require __DIR__ . '/lib/V2/Billing/ContractPricingLineQuantityChange.php'; require __DIR__ . '/lib/V2/Billing/CustomPricingUnit.php'; require __DIR__ . '/lib/V2/Billing/Intent.php'; require __DIR__ . '/lib/V2/Billing/IntentAction.php'; diff --git a/lib/Service/V2/Billing/ContractService.php b/lib/Service/V2/Billing/ContractService.php index 46e77564c..8ad8550f1 100644 --- a/lib/Service/V2/Billing/ContractService.php +++ b/lib/Service/V2/Billing/ContractService.php @@ -5,7 +5,7 @@ namespace Stripe\Service\V2\Billing; /** - * @property Contracts\LicensePricing\LicensePricingServiceFactory $licensePricing + * @property Contracts\PricingLines\PricingLinesServiceFactory $pricingLines * * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions * @@ -16,7 +16,7 @@ class ContractService extends \Stripe\Service\AbstractService use \Stripe\Service\ServiceNavigatorTrait; protected static $classMap = [ - 'licensePricing' => Contracts\LicensePricing\LicensePricingServiceFactory::class, + 'pricingLines' => Contracts\PricingLines\PricingLinesServiceFactory::class, ]; /** @@ -37,17 +37,22 @@ public function activate($id, $params = null, $opts = null) 'kind' => 'object', 'fields' => [ 'one_time_fees' => [ - 'kind' => 'array', - 'element' => [ - 'kind' => 'object', - 'fields' => [ - 'bill_schedule' => [ - 'kind' => 'array', - 'element' => [ - 'kind' => 'object', - 'fields' => [ - 'value' => [ - 'kind' => 'int64_string', + 'kind' => 'object', + 'fields' => [ + 'data' => [ + 'kind' => 'array', + 'element' => [ + 'kind' => 'object', + 'fields' => [ + 'bill_schedule' => [ + 'kind' => 'array', + 'element' => [ + 'kind' => 'object', + 'fields' => [ + 'value' => [ + 'kind' => 'int64_string', + ], + ], ], ], ], @@ -55,21 +60,52 @@ public function activate($id, $params = null, $opts = null) ], ], ], - 'pricing_overrides' => [ - 'kind' => 'array', - 'element' => [ - 'kind' => 'object', - 'fields' => [ - 'overwrite_price' => [ + 'pricing_lines' => [ + 'kind' => 'object', + 'fields' => [ + 'data' => [ + 'kind' => 'array', + 'element' => [ 'kind' => 'object', 'fields' => [ - 'tiers' => [ - 'kind' => 'array', - 'element' => [ - 'kind' => 'object', - 'fields' => [ - 'up_to_decimal' => [ - 'kind' => 'decimal_string', + 'pricing' => [ + 'kind' => 'object', + 'fields' => [ + 'price_details' => [ + 'kind' => 'object', + 'fields' => [ + 'current_quantity' => [ + 'kind' => 'decimal_string', + ], + 'pricing_overrides' => [ + 'kind' => 'object', + 'fields' => [ + 'data' => [ + 'kind' => 'array', + 'element' => [ + 'kind' => 'object', + 'fields' => [ + 'overwrite_price' => [ + 'kind' => 'object', + 'fields' => [ + 'tiers' => [ + 'kind' => 'array', + 'element' => [ + 'kind' => 'object', + 'fields' => [ + 'up_to_decimal' => [ + 'kind' => 'decimal_string', + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], ], ], ], @@ -106,17 +142,22 @@ public function all($params = null, $opts = null) 'kind' => 'object', 'fields' => [ 'one_time_fees' => [ - 'kind' => 'array', - 'element' => [ - 'kind' => 'object', - 'fields' => [ - 'bill_schedule' => [ - 'kind' => 'array', - 'element' => [ - 'kind' => 'object', - 'fields' => [ - 'value' => [ - 'kind' => 'int64_string', + 'kind' => 'object', + 'fields' => [ + 'data' => [ + 'kind' => 'array', + 'element' => [ + 'kind' => 'object', + 'fields' => [ + 'bill_schedule' => [ + 'kind' => 'array', + 'element' => [ + 'kind' => 'object', + 'fields' => [ + 'value' => [ + 'kind' => 'int64_string', + ], + ], ], ], ], @@ -124,21 +165,52 @@ public function all($params = null, $opts = null) ], ], ], - 'pricing_overrides' => [ - 'kind' => 'array', - 'element' => [ - 'kind' => 'object', - 'fields' => [ - 'overwrite_price' => [ + 'pricing_lines' => [ + 'kind' => 'object', + 'fields' => [ + 'data' => [ + 'kind' => 'array', + 'element' => [ 'kind' => 'object', 'fields' => [ - 'tiers' => [ - 'kind' => 'array', - 'element' => [ - 'kind' => 'object', - 'fields' => [ - 'up_to_decimal' => [ - 'kind' => 'decimal_string', + 'pricing' => [ + 'kind' => 'object', + 'fields' => [ + 'price_details' => [ + 'kind' => 'object', + 'fields' => [ + 'current_quantity' => [ + 'kind' => 'decimal_string', + ], + 'pricing_overrides' => [ + 'kind' => 'object', + 'fields' => [ + 'data' => [ + 'kind' => 'array', + 'element' => [ + 'kind' => 'object', + 'fields' => [ + 'overwrite_price' => [ + 'kind' => 'object', + 'fields' => [ + 'tiers' => [ + 'kind' => 'array', + 'element' => [ + 'kind' => 'object', + 'fields' => [ + 'up_to_decimal' => [ + 'kind' => 'decimal_string', + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], ], ], ], @@ -174,17 +246,22 @@ public function cancel($id, $params = null, $opts = null) 'kind' => 'object', 'fields' => [ 'one_time_fees' => [ - 'kind' => 'array', - 'element' => [ - 'kind' => 'object', - 'fields' => [ - 'bill_schedule' => [ - 'kind' => 'array', - 'element' => [ - 'kind' => 'object', - 'fields' => [ - 'value' => [ - 'kind' => 'int64_string', + 'kind' => 'object', + 'fields' => [ + 'data' => [ + 'kind' => 'array', + 'element' => [ + 'kind' => 'object', + 'fields' => [ + 'bill_schedule' => [ + 'kind' => 'array', + 'element' => [ + 'kind' => 'object', + 'fields' => [ + 'value' => [ + 'kind' => 'int64_string', + ], + ], ], ], ], @@ -192,21 +269,52 @@ public function cancel($id, $params = null, $opts = null) ], ], ], - 'pricing_overrides' => [ - 'kind' => 'array', - 'element' => [ - 'kind' => 'object', - 'fields' => [ - 'overwrite_price' => [ + 'pricing_lines' => [ + 'kind' => 'object', + 'fields' => [ + 'data' => [ + 'kind' => 'array', + 'element' => [ 'kind' => 'object', 'fields' => [ - 'tiers' => [ - 'kind' => 'array', - 'element' => [ - 'kind' => 'object', - 'fields' => [ - 'up_to_decimal' => [ - 'kind' => 'decimal_string', + 'pricing' => [ + 'kind' => 'object', + 'fields' => [ + 'price_details' => [ + 'kind' => 'object', + 'fields' => [ + 'current_quantity' => [ + 'kind' => 'decimal_string', + ], + 'pricing_overrides' => [ + 'kind' => 'object', + 'fields' => [ + 'data' => [ + 'kind' => 'array', + 'element' => [ + 'kind' => 'object', + 'fields' => [ + 'overwrite_price' => [ + 'kind' => 'object', + 'fields' => [ + 'tiers' => [ + 'kind' => 'array', + 'element' => [ + 'kind' => 'object', + 'fields' => [ + 'up_to_decimal' => [ + 'kind' => 'decimal_string', + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], ], ], ], @@ -224,7 +332,7 @@ public function cancel($id, $params = null, $opts = null) /** * Create a Contract object. * - * @param null|array{billing_settings?: array{contract_billing_details?: array{bill_settings_details?: array{calculation?: array{tax?: array{type: string}}, invoice?: array{time_until_due?: array{interval: string, interval_count: int}}}, billing_profile_details: array{customer: string, default_payment_method?: string}, collection_settings_details: array{collection_method: string, payment_method_configuration?: string}}}, contract_lines: array{ends_at: array{timestamp: string}, metadata?: array, overrides: array{ends_at: array{timestamp: string}, service_action?: array{add?: array{credit_grant?: array{amount: array{monetary?: \Stripe\StripeObject, type: string}, applicability_config: array{scope: array{billable_items?: string[], price_type?: string}}, category?: string, expiry_config: array{type: string}, name: string, priority?: int}, service_interval: string, service_interval_count: int, type: string}, replace?: array{credit_grant?: array{amount: array{monetary?: \Stripe\StripeObject, type: string}, applicability_config: array{scope: array{billable_items?: string[], price_type?: string}}, category?: string, expiry_config: array{type: string}, name: string, priority?: int}, id?: string, lookup_key?: string, service_interval: string, service_interval_count: int, type: string}, type: string}, starts_at: array{timestamp: string}, type: string}[], pricing: array{}, starts_at: array{timestamp: string}}[], contract_number: string, currency: string, include?: string[], license_quantity_actions: array{effective_at: array{timestamp?: string, type: string}, license_pricing_id?: string, license_pricing_lookup_key?: string, license_pricing_type: string, pricing_line?: string, set?: array{quantity: int}, type: string}[], metadata?: array, one_time_fees?: array{bill_schedule: array{bill_at: array{timestamp?: string, type: string}, value: int}[], billable_item_type: string, product_details?: array{product: string}}[], pricing_lines: array{ends_at: array{timestamp?: string, type: string}, lookup_key?: string, metadata?: array, pricing: array{price_details?: array{price: string, quantity?: int}, type: string}, starts_at: array{timestamp?: string, type: string}}[], pricing_overrides: array{ends_at: array{timestamp?: string, type: string}, lookup_key?: string, multiplier?: array{criteria?: array{billable_item_ids: string[], billable_item_lookup_keys: string[], billable_item_types: string[], metadata_conditions: array{all_of: array{key: string, value: string}[]}[], rate_card_ids: string[], type: string}[], factor: string}, overwrite_price?: array{price: string, tiering_mode?: string, tiers?: array{flat_amount?: string, unit_amount?: string, up_to_decimal?: string, up_to_inf?: string}[], unit_amount?: string}, priority: int, starts_at: array{timestamp?: string, type: string}, type: string}[]} $params + * @param null|array{billing_settings?: array{contract_billing_details?: array{bill_settings_details?: array{calculation?: array{tax?: array{type: string}}, invoice?: array{time_until_due?: array{interval: string, interval_count: int}}}, billing_profile_details: array{customer: string, default_payment_method?: string}, collection_settings_details: array{collection_method: string, payment_method_configuration?: string}}}, contract_number: string, currency: string, include?: string[], metadata?: array, one_time_fees?: array{bill_schedule: array{bill_at: array{timestamp?: string, type: string}, value: int}[], billable_item_type: string, product_details?: array{product: string}}[], pricing_lines: array{ends_at: array{timestamp?: string, type: string}, lookup_key?: string, metadata?: array, pricing: array{price_details?: array{price: string, pricing_overrides?: array{ends_at?: array{timestamp?: string, type: string}, lookup_key?: string, metadata?: array, overwrite_price?: array{tiering_mode?: string, tiers?: array{flat_amount?: string, unit_amount?: string, up_to_decimal?: string, up_to_inf?: string}[], unit_amount?: string}, priority?: int, starts_at?: array{timestamp?: string, type: string}, type: string}[], quantity_changes?: array{effective_at: array{timestamp?: string, type: string}, set: string}[]}, type: string}, starts_at: array{timestamp?: string, type: string}}[], pricing_overrides?: array{ends_at: array{timestamp?: string, type: string}, lookup_key?: string, multiplier?: array{criteria?: array{billable_item_ids: string[], billable_item_lookup_keys: string[], billable_item_types: string[], metadata_conditions: array{all_of: array{key: string, value: string}[]}[], rate_card_ids: string[], type: string}[], factor: string}, priority: int, starts_at: array{timestamp?: string, type: string}, type: string}[]} $params * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @return \Stripe\V2\Billing\Contract @@ -256,21 +364,50 @@ public function create($params = null, $opts = null) ], ], ], - 'pricing_overrides' => [ + 'pricing_lines' => [ 'kind' => 'array', 'element' => [ 'kind' => 'object', 'fields' => [ - 'overwrite_price' => [ + 'pricing' => [ 'kind' => 'object', 'fields' => [ - 'tiers' => [ - 'kind' => 'array', - 'element' => [ - 'kind' => 'object', - 'fields' => [ - 'up_to_decimal' => [ - 'kind' => 'decimal_string', + 'price_details' => [ + 'kind' => 'object', + 'fields' => [ + 'pricing_overrides' => [ + 'kind' => 'array', + 'element' => [ + 'kind' => 'object', + 'fields' => [ + 'overwrite_price' => [ + 'kind' => 'object', + 'fields' => [ + 'tiers' => [ + 'kind' => 'array', + 'element' => [ + 'kind' => 'object', + 'fields' => [ + 'up_to_decimal' => [ + 'kind' => 'decimal_string', + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'quantity_changes' => [ + 'kind' => 'array', + 'element' => [ + 'kind' => 'object', + 'fields' => [ + 'set' => [ + 'kind' => 'decimal_string', + ], + ], ], ], ], @@ -286,17 +423,22 @@ public function create($params = null, $opts = null) 'kind' => 'object', 'fields' => [ 'one_time_fees' => [ - 'kind' => 'array', - 'element' => [ - 'kind' => 'object', - 'fields' => [ - 'bill_schedule' => [ - 'kind' => 'array', - 'element' => [ - 'kind' => 'object', - 'fields' => [ - 'value' => [ - 'kind' => 'int64_string', + 'kind' => 'object', + 'fields' => [ + 'data' => [ + 'kind' => 'array', + 'element' => [ + 'kind' => 'object', + 'fields' => [ + 'bill_schedule' => [ + 'kind' => 'array', + 'element' => [ + 'kind' => 'object', + 'fields' => [ + 'value' => [ + 'kind' => 'int64_string', + ], + ], ], ], ], @@ -304,21 +446,52 @@ public function create($params = null, $opts = null) ], ], ], - 'pricing_overrides' => [ - 'kind' => 'array', - 'element' => [ - 'kind' => 'object', - 'fields' => [ - 'overwrite_price' => [ + 'pricing_lines' => [ + 'kind' => 'object', + 'fields' => [ + 'data' => [ + 'kind' => 'array', + 'element' => [ 'kind' => 'object', 'fields' => [ - 'tiers' => [ - 'kind' => 'array', - 'element' => [ - 'kind' => 'object', - 'fields' => [ - 'up_to_decimal' => [ - 'kind' => 'decimal_string', + 'pricing' => [ + 'kind' => 'object', + 'fields' => [ + 'price_details' => [ + 'kind' => 'object', + 'fields' => [ + 'current_quantity' => [ + 'kind' => 'decimal_string', + ], + 'pricing_overrides' => [ + 'kind' => 'object', + 'fields' => [ + 'data' => [ + 'kind' => 'array', + 'element' => [ + 'kind' => 'object', + 'fields' => [ + 'overwrite_price' => [ + 'kind' => 'object', + 'fields' => [ + 'tiers' => [ + 'kind' => 'array', + 'element' => [ + 'kind' => 'object', + 'fields' => [ + 'up_to_decimal' => [ + 'kind' => 'decimal_string', + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], ], ], ], @@ -333,6 +506,22 @@ public function create($params = null, $opts = null) ]); } + /** + * Delete a draft Contract object by ID. + * + * @param string $id + * @param null|array $params + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts + * + * @return \Stripe\V2\DeletedObject + * + * @throws \Stripe\Exception\ApiErrorException if the request fails + */ + public function delete($id, $params = null, $opts = null) + { + return $this->request('delete', $this->buildPath('/v2/billing/contracts/%s', $id), $params, $opts); + } + /** * Retrieve a Contract object by ID. * @@ -351,17 +540,22 @@ public function retrieve($id, $params = null, $opts = null) 'kind' => 'object', 'fields' => [ 'one_time_fees' => [ - 'kind' => 'array', - 'element' => [ - 'kind' => 'object', - 'fields' => [ - 'bill_schedule' => [ - 'kind' => 'array', - 'element' => [ - 'kind' => 'object', - 'fields' => [ - 'value' => [ - 'kind' => 'int64_string', + 'kind' => 'object', + 'fields' => [ + 'data' => [ + 'kind' => 'array', + 'element' => [ + 'kind' => 'object', + 'fields' => [ + 'bill_schedule' => [ + 'kind' => 'array', + 'element' => [ + 'kind' => 'object', + 'fields' => [ + 'value' => [ + 'kind' => 'int64_string', + ], + ], ], ], ], @@ -369,21 +563,52 @@ public function retrieve($id, $params = null, $opts = null) ], ], ], - 'pricing_overrides' => [ - 'kind' => 'array', - 'element' => [ - 'kind' => 'object', - 'fields' => [ - 'overwrite_price' => [ + 'pricing_lines' => [ + 'kind' => 'object', + 'fields' => [ + 'data' => [ + 'kind' => 'array', + 'element' => [ 'kind' => 'object', 'fields' => [ - 'tiers' => [ - 'kind' => 'array', - 'element' => [ - 'kind' => 'object', - 'fields' => [ - 'up_to_decimal' => [ - 'kind' => 'decimal_string', + 'pricing' => [ + 'kind' => 'object', + 'fields' => [ + 'price_details' => [ + 'kind' => 'object', + 'fields' => [ + 'current_quantity' => [ + 'kind' => 'decimal_string', + ], + 'pricing_overrides' => [ + 'kind' => 'object', + 'fields' => [ + 'data' => [ + 'kind' => 'array', + 'element' => [ + 'kind' => 'object', + 'fields' => [ + 'overwrite_price' => [ + 'kind' => 'object', + 'fields' => [ + 'tiers' => [ + 'kind' => 'array', + 'element' => [ + 'kind' => 'object', + 'fields' => [ + 'up_to_decimal' => [ + 'kind' => 'decimal_string', + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], ], ], ], @@ -402,7 +627,7 @@ public function retrieve($id, $params = null, $opts = null) * Update a Contract object by ID. * * @param string $id - * @param null|array{include?: string[], license_quantity_actions?: array{effective_at: array{timestamp?: string, type: string}, license_pricing_id?: string, license_pricing_lookup_key?: string, license_pricing_type: string, pricing_line?: string, pricing_line_lookup_key?: string, set?: array{quantity: int}, type: string}[], pricing_line_actions?: array{add?: array{ends_at: array{timestamp?: string, type: string}, lookup_key?: string, metadata?: array, pricing: array{price_details?: array{price: string, quantity?: int}, type: string}, starts_at: array{timestamp?: string, type: string}}, remove?: array{id: string}, type: string, update?: array{ends_at?: array{timestamp?: string, type: string}, id: string, starts_at?: array{timestamp?: string, type: string}}}[], pricing_override_actions?: array{add?: array{ends_at: array{timestamp?: string, type: string}, lookup_key?: string, multiplier?: array{criteria: array{billable_item_ids: string[], billable_item_lookup_keys: string[], billable_item_types: string[], metadata_conditions: array{all_of: array{key: string, value: string}[]}[], rate_card_ids: string[], type: string}[], factor: string}, overwrite_price?: array{price: string, tiering_mode?: string, tiers: array{flat_amount?: string, unit_amount?: string, up_to_decimal?: string, up_to_inf?: string}[], unit_amount?: string}, priority: int, starts_at: array{timestamp?: string, type: string}, type: string}, remove?: array{id: string}, type: string, update?: array{ends_at?: array{timestamp?: string, type: string}, id: string, starts_at?: array{timestamp?: string, type: string}}}[]} $params + * @param null|array{include?: string[], pricing_line_actions?: array{add?: array{ends_at: array{timestamp?: string, type: string}, lookup_key?: string, metadata?: array, pricing: array{price_details?: array{price: string, pricing_overrides?: array{ends_at?: array{timestamp?: string, type: string}, lookup_key?: string, metadata?: array, overwrite_price?: array{tiering_mode?: string, tiers?: array{flat_amount?: string, unit_amount?: string, up_to_decimal?: string, up_to_inf?: string}[], unit_amount?: string}, priority?: int, starts_at?: array{timestamp?: string, type: string}, type: string}[], quantity_changes?: array{effective_at: array{timestamp?: string, type: string}, set: string}[]}, type: string}, starts_at: array{timestamp?: string, type: string}}, remove?: array{id: string}, type: string, update?: array{ends_at?: array{timestamp?: string, type: string}, id: string, pricing?: array{price_details?: array{pricing_override_actions?: array{add?: array{ends_at: array{timestamp?: string, type: string}, lookup_key?: string, metadata?: array, overwrite_price?: array{tiering_mode?: string, tiers?: array{flat_amount?: string, unit_amount?: string, up_to_decimal?: string, up_to_inf?: string}[], unit_amount?: string}, priority?: int, starts_at: array{timestamp?: string, type: string}, type: string}, remove?: array{id?: string, lookup_key?: string}, type: string, update?: array{ends_at?: array{timestamp?: string, type: string}, id?: string, lookup_key?: string, metadata?: array, starts_at?: array{timestamp?: string, type: string}}}[], quantity_changes?: array{effective_at: array{timestamp?: string, type: string}, set: string}[]}}, starts_at?: array{timestamp?: string, type: string}}}[], pricing_override_actions?: array{add?: array{ends_at: array{timestamp?: string, type: string}, lookup_key?: string, multiplier?: array{criteria: array{billable_item_ids: string[], billable_item_lookup_keys: string[], billable_item_types: string[], metadata_conditions: array{all_of: array{key: string, value: string}[]}[], rate_card_ids: string[], type: string}[], factor: string}, overwrite_price?: array{tiering_mode?: string, tiers: array{flat_amount?: string, unit_amount?: string, up_to_decimal?: string, up_to_inf?: string}[], unit_amount?: string}, priority: int, starts_at: array{timestamp?: string, type: string}, type: string}, remove?: array{id: string}, type: string, update?: array{ends_at?: array{timestamp?: string, type: string}, id: string, starts_at?: array{timestamp?: string, type: string}}}[]} $params * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @return \Stripe\V2\Billing\Contract @@ -415,6 +640,119 @@ public function update($id, $params = null, $opts = null) 'request_schema' => [ 'kind' => 'object', 'fields' => [ + 'pricing_line_actions' => [ + 'kind' => 'array', + 'element' => [ + 'kind' => 'object', + 'fields' => [ + 'add' => [ + 'kind' => 'object', + 'fields' => [ + 'pricing' => [ + 'kind' => 'object', + 'fields' => [ + 'price_details' => [ + 'kind' => 'object', + 'fields' => [ + 'pricing_overrides' => [ + 'kind' => 'array', + 'element' => [ + 'kind' => 'object', + 'fields' => [ + 'overwrite_price' => [ + 'kind' => 'object', + 'fields' => [ + 'tiers' => [ + 'kind' => 'array', + 'element' => [ + 'kind' => 'object', + 'fields' => [ + 'up_to_decimal' => [ + 'kind' => 'decimal_string', + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'quantity_changes' => [ + 'kind' => 'array', + 'element' => [ + 'kind' => 'object', + 'fields' => [ + 'set' => [ + 'kind' => 'decimal_string', + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'update' => [ + 'kind' => 'object', + 'fields' => [ + 'pricing' => [ + 'kind' => 'object', + 'fields' => [ + 'price_details' => [ + 'kind' => 'object', + 'fields' => [ + 'pricing_override_actions' => [ + 'kind' => 'array', + 'element' => [ + 'kind' => 'object', + 'fields' => [ + 'add' => [ + 'kind' => 'object', + 'fields' => [ + 'overwrite_price' => [ + 'kind' => 'object', + 'fields' => [ + 'tiers' => [ + 'kind' => 'array', + 'element' => [ + 'kind' => 'object', + 'fields' => [ + 'up_to_decimal' => [ + 'kind' => 'decimal_string', + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'quantity_changes' => [ + 'kind' => 'array', + 'element' => [ + 'kind' => 'object', + 'fields' => [ + 'set' => [ + 'kind' => 'decimal_string', + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], 'pricing_override_actions' => [ 'kind' => 'array', 'element' => [ @@ -450,17 +788,22 @@ public function update($id, $params = null, $opts = null) 'kind' => 'object', 'fields' => [ 'one_time_fees' => [ - 'kind' => 'array', - 'element' => [ - 'kind' => 'object', - 'fields' => [ - 'bill_schedule' => [ - 'kind' => 'array', - 'element' => [ - 'kind' => 'object', - 'fields' => [ - 'value' => [ - 'kind' => 'int64_string', + 'kind' => 'object', + 'fields' => [ + 'data' => [ + 'kind' => 'array', + 'element' => [ + 'kind' => 'object', + 'fields' => [ + 'bill_schedule' => [ + 'kind' => 'array', + 'element' => [ + 'kind' => 'object', + 'fields' => [ + 'value' => [ + 'kind' => 'int64_string', + ], + ], ], ], ], @@ -468,21 +811,52 @@ public function update($id, $params = null, $opts = null) ], ], ], - 'pricing_overrides' => [ - 'kind' => 'array', - 'element' => [ - 'kind' => 'object', - 'fields' => [ - 'overwrite_price' => [ + 'pricing_lines' => [ + 'kind' => 'object', + 'fields' => [ + 'data' => [ + 'kind' => 'array', + 'element' => [ 'kind' => 'object', 'fields' => [ - 'tiers' => [ - 'kind' => 'array', - 'element' => [ - 'kind' => 'object', - 'fields' => [ - 'up_to_decimal' => [ - 'kind' => 'decimal_string', + 'pricing' => [ + 'kind' => 'object', + 'fields' => [ + 'price_details' => [ + 'kind' => 'object', + 'fields' => [ + 'current_quantity' => [ + 'kind' => 'decimal_string', + ], + 'pricing_overrides' => [ + 'kind' => 'object', + 'fields' => [ + 'data' => [ + 'kind' => 'array', + 'element' => [ + 'kind' => 'object', + 'fields' => [ + 'overwrite_price' => [ + 'kind' => 'object', + 'fields' => [ + 'tiers' => [ + 'kind' => 'array', + 'element' => [ + 'kind' => 'object', + 'fields' => [ + 'up_to_decimal' => [ + 'kind' => 'decimal_string', + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], ], ], ], diff --git a/lib/Service/V2/Billing/Contracts/LicensePricing/QuantityChangeService.php b/lib/Service/V2/Billing/Contracts/LicensePricing/QuantityChangeService.php deleted file mode 100644 index 9dbe0aea6..000000000 --- a/lib/Service/V2/Billing/Contracts/LicensePricing/QuantityChangeService.php +++ /dev/null @@ -1,30 +0,0 @@ - - * - * @throws \Stripe\Exception\ApiErrorException if the request fails - */ - public function allQuantityChanges($parentId, $id, $params = null, $opts = null) - { - return $this->requestCollection('get', $this->buildPath('/v2/billing/contracts/%s/license_pricing/%s/quantity_changes', $parentId, $id), $params, $opts); - } -} diff --git a/lib/Service/V2/Billing/Contracts/LicensePricing/LicensePricingServiceFactory.php b/lib/Service/V2/Billing/Contracts/PricingLines/PricingLinesServiceFactory.php similarity index 65% rename from lib/Service/V2/Billing/Contracts/LicensePricing/LicensePricingServiceFactory.php rename to lib/Service/V2/Billing/Contracts/PricingLines/PricingLinesServiceFactory.php index b92b71b60..8e0ecd2b0 100644 --- a/lib/Service/V2/Billing/Contracts/LicensePricing/LicensePricingServiceFactory.php +++ b/lib/Service/V2/Billing/Contracts/PricingLines/PricingLinesServiceFactory.php @@ -2,14 +2,14 @@ // File generated from our OpenAPI spec -namespace Stripe\Service\V2\Billing\Contracts\LicensePricing; +namespace Stripe\Service\V2\Billing\Contracts\PricingLines; /** - * Service factory class for API resources in the LicensePricing namespace. + * Service factory class for API resources in the PricingLines namespace. * * @property QuantityChangeService $quantityChanges */ -class LicensePricingServiceFactory extends \Stripe\Service\AbstractServiceFactory +class PricingLinesServiceFactory extends \Stripe\Service\AbstractServiceFactory { /** * @var array diff --git a/lib/Service/V2/Billing/Contracts/PricingLines/QuantityChangeService.php b/lib/Service/V2/Billing/Contracts/PricingLines/QuantityChangeService.php new file mode 100644 index 000000000..2da34609c --- /dev/null +++ b/lib/Service/V2/Billing/Contracts/PricingLines/QuantityChangeService.php @@ -0,0 +1,45 @@ + + * + * @throws \Stripe\Exception\ApiErrorException if the request fails + */ + public function allContractPricingLineQuantityChanges($parentId, $id, $params = null, $opts = null) + { + return $this->requestCollection('get', $this->buildPath('/v2/billing/contracts/%s/pricing_lines/%s/quantity_changes', $parentId, $id), $params, $opts, [ + 'response_schema' => [ + 'kind' => 'object', + 'fields' => [ + 'data' => [ + 'kind' => 'array', + 'element' => [ + 'kind' => 'object', + 'fields' => [ + 'quantity' => ['kind' => 'decimal_string'], + ], + ], + ], + ], + ], + ]); + } +} diff --git a/lib/Util/ObjectTypes.php b/lib/Util/ObjectTypes.php index c88187c03..371d2385b 100644 --- a/lib/Util/ObjectTypes.php +++ b/lib/Util/ObjectTypes.php @@ -225,7 +225,7 @@ class ObjectTypes \Stripe\V2\Billing\CollectionSetting::OBJECT_NAME => \Stripe\V2\Billing\CollectionSetting::class, \Stripe\V2\Billing\CollectionSettingVersion::OBJECT_NAME => \Stripe\V2\Billing\CollectionSettingVersion::class, \Stripe\V2\Billing\Contract::OBJECT_NAME => \Stripe\V2\Billing\Contract::class, - \Stripe\V2\Billing\ContractLicensePricingQuantityChange::OBJECT_NAME => \Stripe\V2\Billing\ContractLicensePricingQuantityChange::class, + \Stripe\V2\Billing\ContractPricingLineQuantityChange::OBJECT_NAME => \Stripe\V2\Billing\ContractPricingLineQuantityChange::class, \Stripe\V2\Billing\CustomPricingUnit::OBJECT_NAME => \Stripe\V2\Billing\CustomPricingUnit::class, \Stripe\V2\Billing\Intent::OBJECT_NAME => \Stripe\V2\Billing\Intent::class, \Stripe\V2\Billing\IntentAction::OBJECT_NAME => \Stripe\V2\Billing\IntentAction::class, diff --git a/lib/V2/Billing/Contract.php b/lib/V2/Billing/Contract.php index 0d261fa7e..fe2e5f342 100644 --- a/lib/V2/Billing/Contract.php +++ b/lib/V2/Billing/Contract.php @@ -10,18 +10,15 @@ * @property string $id The ID of the contract object. * @property string $object String representing the object's type. Objects of the same type share the same value of the object field. * @property null|(object{contract_billing_details?: (object{bill_settings_details?: (object{calculation?: (object{tax?: (object{type: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), invoice?: (object{time_until_due?: (object{interval: string, interval_count: int}&\Stripe\StripeObject)}&\Stripe\StripeObject)}&\Stripe\StripeObject), billing_profile_details: (object{customer: string, default_payment_method?: string}&\Stripe\StripeObject), collection_settings_details: (object{collection_method: string, payment_method_configuration?: string}&\Stripe\StripeObject)}&\Stripe\StripeObject)}&\Stripe\StripeObject) $billing_settings The billing settings for the contract. - * @property (object{contract_line: string, contract_line_value_details: (object{total: string}&\Stripe\StripeObject), created: int, ends_at: (object{timestamp: int}&\Stripe\StripeObject), metadata?: \Stripe\StripeObject, overrides: (object{ends_at: (object{timestamp: int}&\Stripe\StripeObject), service_action?: (object{add?: (object{credit_grant?: (object{amount: (object{monetary?: \Stripe\StripeObject, type: string}&\Stripe\StripeObject), applicability_config: (object{scope: (object{billable_items?: string[], price_type?: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), category?: string, expiry_config: (object{type: string}&\Stripe\StripeObject), name: string, priority?: int}&\Stripe\StripeObject), service_interval: string, service_interval_count: int, type: string}&\Stripe\StripeObject), replace?: (object{credit_grant?: (object{amount: (object{monetary?: \Stripe\StripeObject, type: string}&\Stripe\StripeObject), applicability_config: (object{scope: (object{billable_items?: string[], price_type?: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), category?: string, expiry_config: (object{type: string}&\Stripe\StripeObject), name: string, priority?: int}&\Stripe\StripeObject), id?: string, lookup_key?: string, service_interval: string, service_interval_count: int, type: string}&\Stripe\StripeObject), type: string}&\Stripe\StripeObject), starts_at: (object{timestamp: int}&\Stripe\StripeObject), type: string}&\Stripe\StripeObject)[], pricing: (object{}&\Stripe\StripeObject), starts_at: (object{timestamp: int}&\Stripe\StripeObject)}&\Stripe\StripeObject)[] $contract_line_details The contract line details of the contract. Only populated when contract_line_details is passed in the include parameter. * @property string $contract_number A unique user-provided contract number e.g. C-2026-0001. - * @property (object{total: string}&\Stripe\StripeObject) $contract_value_details The computed total value of all contract lines. * @property int $created Timestamp of when the object was created. * @property string $currency The currency of the contract. * @property string $customer The ID of the customer associated with the contract. - * @property (object{license_pricing_id: string, license_pricing_type: string, pricing_line: string, quantity: int}&\Stripe\StripeObject)[] $license_quantities The license quantities of the contract. Only populated when license_quantities is passed in the include parameter. * @property bool $livemode Has the value true if the object exists in live mode or the value false if the object exists in test mode. * @property null|\Stripe\StripeObject $metadata Set of key-value pairs that you can attach to an object. - * @property null|(object{bill_schedule: (object{bill_at: (object{timestamp?: int, type: string}&\Stripe\StripeObject), value: int}&\Stripe\StripeObject)[], billable_item_type: string, product_details?: (object{product: string}&\Stripe\StripeObject)}&\Stripe\StripeObject)[] $one_time_fees The one-time fees of the contract. Only populated when one_time_fees is passed in the include parameter. - * @property (object{ends_at: (object{timestamp: int}&\Stripe\StripeObject), lookup_key?: string, metadata?: \Stripe\StripeObject, pricing: (object{price_details?: (object{price: string}&\Stripe\StripeObject), type: string}&\Stripe\StripeObject), pricing_line: string, starts_at: (object{timestamp: int}&\Stripe\StripeObject)}&\Stripe\StripeObject)[] $pricing_lines The pricing lines of the contract. Only populated when pricing_lines is passed in the include parameter. - * @property (object{ends_at: (object{timestamp: int}&\Stripe\StripeObject), lookup_key?: string, multiplier?: (object{criteria: (object{billable_item_ids: string[], billable_item_lookup_keys: string[], billable_item_types: string[], metadata_conditions: (object{all_of: (object{key: string, value: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject)[], rate_card_ids: string[], type: string}&\Stripe\StripeObject)[], factor: string}&\Stripe\StripeObject), overwrite_price?: (object{price: string, tiering_mode?: string, tiers: (object{flat_amount?: string, unit_amount?: string, up_to_decimal?: string, up_to_inf?: string}&\Stripe\StripeObject)[], unit_amount?: string}&\Stripe\StripeObject), pricing_override: string, priority: int, starts_at: (object{timestamp: int}&\Stripe\StripeObject), type: string}&\Stripe\StripeObject)[] $pricing_overrides The pricing overrides of the contract. Only populated when pricing_overrides is passed in the include parameter. + * @property null|(object{data: (object{bill_schedule: (object{bill_at: (object{timestamp?: int, type: string}&\Stripe\StripeObject), value: int}&\Stripe\StripeObject)[], billable_item_type: string, id: string, lookup_key?: string, product_details?: (object{product: string}&\Stripe\StripeObject)}&\Stripe\StripeObject)[]}&\Stripe\StripeObject) $one_time_fees The one-time fees of the contract. Only populated when one_time_fees is passed in the include parameter. + * @property null|(object{data: (object{ends_at: (object{timestamp: int}&\Stripe\StripeObject), id: string, lookup_key?: string, metadata?: \Stripe\StripeObject, pricing: (object{price_details?: (object{current_quantity: string, price: string, pricing_overrides?: (object{data: (object{ends_at: (object{timestamp: int}&\Stripe\StripeObject), lookup_key?: string, overwrite_price?: (object{tiering_mode?: string, tiers: (object{flat_amount?: string, unit_amount?: string, up_to_decimal?: string, up_to_inf?: string}&\Stripe\StripeObject)[], unit_amount?: string}&\Stripe\StripeObject), pricing_override: string, starts_at: (object{timestamp: int}&\Stripe\StripeObject), type: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject)}&\Stripe\StripeObject), type: string}&\Stripe\StripeObject), starts_at: (object{timestamp: int}&\Stripe\StripeObject)}&\Stripe\StripeObject)[]}&\Stripe\StripeObject) $pricing_lines The pricing lines of the contract. Only populated when pricing_lines is passed in the include parameter. + * @property null|(object{data: (object{ends_at: (object{timestamp: int}&\Stripe\StripeObject), id: string, lookup_key?: string, multiplier?: (object{criteria: (object{billable_item_ids: string[], billable_item_lookup_keys: string[], billable_item_types: string[], metadata_conditions: (object{all_of: (object{key: string, value: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject)[], rate_card_ids: string[], type: string}&\Stripe\StripeObject)[], factor: string}&\Stripe\StripeObject), priority: int, starts_at: (object{timestamp: int}&\Stripe\StripeObject), type: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject) $pricing_overrides The pricing overrides of the contract. Only populated when pricing_overrides is passed in the include parameter. * @property string $status The current status of the contract. * @property (object{active?: (object{activated_at: int}&\Stripe\StripeObject), canceled?: (object{canceled_at: int}&\Stripe\StripeObject)}&\Stripe\StripeObject) $status_details Information about the contract status transitions. */ @@ -33,37 +30,75 @@ public static function fieldEncodings() { return [ 'one_time_fees' => [ - 'kind' => 'array', - 'element' => [ - 'kind' => 'object', - 'fields' => [ - 'bill_schedule' => [ - 'kind' => 'array', - 'element' => [ - 'kind' => 'object', - 'fields' => [ - 'value' => ['kind' => 'int64_string'], + 'kind' => 'object', + 'fields' => [ + 'data' => [ + 'kind' => 'array', + 'element' => [ + 'kind' => 'object', + 'fields' => [ + 'bill_schedule' => [ + 'kind' => 'array', + 'element' => [ + 'kind' => 'object', + 'fields' => [ + 'value' => [ + 'kind' => 'int64_string', + ], + ], + ], ], ], ], ], ], ], - 'pricing_overrides' => [ - 'kind' => 'array', - 'element' => [ - 'kind' => 'object', - 'fields' => [ - 'overwrite_price' => [ + 'pricing_lines' => [ + 'kind' => 'object', + 'fields' => [ + 'data' => [ + 'kind' => 'array', + 'element' => [ 'kind' => 'object', 'fields' => [ - 'tiers' => [ - 'kind' => 'array', - 'element' => [ - 'kind' => 'object', - 'fields' => [ - 'up_to_decimal' => [ - 'kind' => 'decimal_string', + 'pricing' => [ + 'kind' => 'object', + 'fields' => [ + 'price_details' => [ + 'kind' => 'object', + 'fields' => [ + 'current_quantity' => [ + 'kind' => 'decimal_string', + ], + 'pricing_overrides' => [ + 'kind' => 'object', + 'fields' => [ + 'data' => [ + 'kind' => 'array', + 'element' => [ + 'kind' => 'object', + 'fields' => [ + 'overwrite_price' => [ + 'kind' => 'object', + 'fields' => [ + 'tiers' => [ + 'kind' => 'array', + 'element' => [ + 'kind' => 'object', + 'fields' => [ + 'up_to_decimal' => [ + 'kind' => 'decimal_string', + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], ], ], ], diff --git a/lib/V2/Billing/ContractLicensePricingQuantityChange.php b/lib/V2/Billing/ContractPricingLineQuantityChange.php similarity index 55% rename from lib/V2/Billing/ContractLicensePricingQuantityChange.php rename to lib/V2/Billing/ContractPricingLineQuantityChange.php index 1aa8b81bd..ad43295d7 100644 --- a/lib/V2/Billing/ContractLicensePricingQuantityChange.php +++ b/lib/V2/Billing/ContractPricingLineQuantityChange.php @@ -5,22 +5,23 @@ namespace Stripe\V2\Billing; /** - * A license pricing quantity change object returned by ListContractLicenseQuantityChanges. + * A quantity change object for a pricing line, returned by ListContractPricingLineQuantityChanges. * * @property string $id The ID of the quantity change object. * @property string $object String representing the object's type. Objects of the same type share the same value of the object field. * @property int $created The timestamp when this quantity change object was created. * @property int $effective_at The timestamp when this quantity change takes effect. - * @property string $license_pricing_id The ID of the license pricing. - * @property string $license_pricing_type The type of the license pricing. * @property bool $livemode Has the value true if the object exists in live mode or the value false if the object exists in test mode. + * @property (object{price?: string, type: string}&\Stripe\StripeObject) $pricing The pricing configuration for the associated pricing line. * @property string $pricing_line The ID of the pricing line associated with this quantity change. - * @property int $quantity The quantity at the effective time. + * @property string $quantity The quantity at the effective time. */ -class ContractLicensePricingQuantityChange extends \Stripe\ApiResource +class ContractPricingLineQuantityChange extends \Stripe\ApiResource { - const OBJECT_NAME = 'v2.billing.contract_license_pricing_quantity_change'; + const OBJECT_NAME = 'v2.billing.contract_pricing_line_quantity_change'; - const LICENSE_PRICING_TYPE_LICENSE_FEE = 'license_fee'; - const LICENSE_PRICING_TYPE_PRICE = 'price'; + public static function fieldEncodings() + { + return ['quantity' => ['kind' => 'decimal_string']]; + } } diff --git a/tests/Stripe/GeneratedExamplesTest.php b/tests/Stripe/GeneratedExamplesTest.php index 98f878d4b..746664c9d 100644 --- a/tests/Stripe/GeneratedExamplesTest.php +++ b/tests/Stripe/GeneratedExamplesTest.php @@ -5481,73 +5481,12 @@ public function testV2BillingContractGet() 'data' => [ '0' => [ 'object' => 'v2.billing.contract', - 'contract_line_details' => [ - '0' => [ - 'contract_line' => 'contract_line', - 'contract_line_value_details' => [ - 'total' => 'total', - ], - 'created' => '1970-01-12T21:42:34.472Z', - 'ends_at' => [ - 'timestamp' => '1970-01-01T15:18:46.294Z', - ], - 'overrides' => [ - '0' => [ - 'ends_at' => [ - 'timestamp' => '1970-01-01T15:18:46.294Z', - ], - 'starts_at' => [ - 'timestamp' => '1970-01-01T15:18:46.294Z', - ], - 'type' => 'service_action', - ], - ], - 'pricing' => [], - 'starts_at' => [ - 'timestamp' => '1970-01-01T15:18:46.294Z', - ], - ], - ], 'contract_number' => 'contract_number', - 'contract_value_details' => ['total' => 'total'], 'created' => '1970-01-12T21:42:34.472Z', 'currency' => 'usd', 'customer' => 'customer', 'id' => 'obj_123', - 'license_quantities' => [ - '0' => [ - 'license_pricing_id' => 'license_pricing_id', - 'license_pricing_type' => 'price', - 'pricing_line' => 'pricing_line', - 'quantity' => [], - ], - ], 'livemode' => [], - 'pricing_lines' => [ - '0' => [ - 'ends_at' => [ - 'timestamp' => '1970-01-01T15:18:46.294Z', - ], - 'pricing' => ['type' => 'price'], - 'pricing_line' => 'pricing_line', - 'starts_at' => [ - 'timestamp' => '1970-01-01T15:18:46.294Z', - ], - ], - ], - 'pricing_overrides' => [ - '0' => [ - 'ends_at' => [ - 'timestamp' => '1970-01-01T15:18:46.294Z', - ], - 'pricing_override' => 'pricing_override', - 'priority' => [], - 'starts_at' => [ - 'timestamp' => '1970-01-01T15:18:46.294Z', - ], - 'type' => 'multiplier', - ], - ], 'status' => 'draft', 'status_details' => [], ], @@ -5569,106 +5508,8 @@ public function testV2BillingContractPost() 'post', '/v2/billing/contracts', [ - 'contract_lines' => [ - [ - 'ends_at' => [ - 'timestamp' => '1970-01-01T15:18:46.294Z', - ], - 'metadata' => ['key' => 'metadata'], - 'overrides' => [ - [ - 'ends_at' => [ - 'timestamp' => '1970-01-01T15:18:46.294Z', - ], - 'service_action' => [ - 'add' => [ - 'credit_grant' => [ - 'amount' => [ - 'monetary' => [ - 'currency' => 'USD', - 'value' => 63, - ], - 'type' => 'monetary', - ], - 'applicability_config' => [ - 'scope' => [ - 'billable_items' => [ - 'billable_items', - ], - 'price_type' => 'metered', - ], - ], - 'category' => 'paid', - 'expiry_config' => [ - 'type' => 'end_of_service_period', - ], - 'name' => 'name', - 'priority' => 1165461084, - ], - 'service_interval' => 'month', - 'service_interval_count' => 1375336415, - 'type' => 'credit_grant', - ], - 'replace' => [ - 'credit_grant' => [ - 'amount' => [ - 'monetary' => [ - 'currency' => 'USD', - 'value' => 63, - ], - 'type' => 'monetary', - ], - 'applicability_config' => [ - 'scope' => [ - 'billable_items' => [ - 'billable_items', - ], - 'price_type' => 'metered', - ], - ], - 'category' => 'paid', - 'expiry_config' => [ - 'type' => 'end_of_service_period', - ], - 'name' => 'name', - 'priority' => 1165461084, - ], - 'id' => 'obj_123', - 'lookup_key' => 'lookup_key', - 'service_interval' => 'month', - 'service_interval_count' => 1375336415, - 'type' => 'credit_grant', - ], - 'type' => 'add', - ], - 'starts_at' => [ - 'timestamp' => '1970-01-01T15:18:46.294Z', - ], - 'type' => 'service_action', - ], - ], - 'pricing' => [], - 'starts_at' => [ - 'timestamp' => '1970-01-01T15:18:46.294Z', - ], - ], - ], 'contract_number' => 'contract_number', 'currency' => 'usd', - 'license_quantity_actions' => [ - [ - 'effective_at' => [ - 'timestamp' => '1970-01-01T15:18:46.294Z', - 'type' => 'timestamp', - ], - 'license_pricing_id' => 'license_pricing_id', - 'license_pricing_lookup_key' => 'license_pricing_lookup_key', - 'license_pricing_type' => 'price', - 'pricing_line' => 'pricing_line', - 'set' => ['quantity' => 1285004149], - 'type' => 'set', - ], - ], 'pricing_lines' => [ [ 'ends_at' => [ @@ -5680,68 +5521,50 @@ public function testV2BillingContractPost() 'pricing' => [ 'price_details' => [ 'price' => 'price', - 'quantity' => 1285004149, - ], - 'type' => 'price', - ], - 'starts_at' => [ - 'timestamp' => '1970-01-01T15:18:46.294Z', - 'type' => 'contract_start', - ], - ], - ], - 'pricing_overrides' => [ - [ - 'ends_at' => [ - 'timestamp' => '1970-01-01T15:18:46.294Z', - 'type' => 'contract_end', - ], - 'lookup_key' => 'lookup_key', - 'multiplier' => [ - 'criteria' => [ - [ - 'billable_item_ids' => [ - 'billable_item_ids', - ], - 'billable_item_lookup_keys' => [ - 'billable_item_lookup_keys', - ], - 'billable_item_types' => ['metered'], - 'metadata_conditions' => [ - [ - 'all_of' => [ + 'pricing_overrides' => [ + [ + 'ends_at' => [ + 'timestamp' => '1970-01-01T15:18:46.294Z', + 'type' => 'contract_end', + ], + 'lookup_key' => 'lookup_key', + 'metadata' => ['key' => 'metadata'], + 'overwrite_price' => [ + 'tiering_mode' => 'graduated', + 'tiers' => [ [ - 'key' => 'key', - 'value' => 'value', + 'flat_amount' => 'flat_amount', + 'unit_amount' => 'unit_amount', + 'up_to_decimal' => '1387931359.3333333', + 'up_to_inf' => 'inf', ], ], + 'unit_amount' => 'unit_amount', ], + 'priority' => 1165461084, + 'starts_at' => [ + 'timestamp' => '1970-01-01T15:18:46.294Z', + 'type' => 'contract_start', + ], + 'type' => 'overwrite_price', ], - 'rate_card_ids' => ['rate_card_ids'], - 'type' => 'exclude', ], - ], - 'factor' => 'factor', - ], - 'overwrite_price' => [ - 'price' => 'price', - 'tiering_mode' => 'graduated', - 'tiers' => [ - [ - 'flat_amount' => 'flat_amount', - 'unit_amount' => 'unit_amount', - 'up_to_decimal' => '1387931359.3333333', - 'up_to_inf' => 'inf', + 'quantity_changes' => [ + [ + 'effective_at' => [ + 'timestamp' => '1970-01-01T15:18:46.294Z', + 'type' => 'timestamp', + ], + 'set' => '75841.33333333333', + ], ], ], - 'unit_amount' => 'unit_amount', + 'type' => 'price', ], - 'priority' => 1165461084, 'starts_at' => [ 'timestamp' => '1970-01-01T15:18:46.294Z', 'type' => 'contract_start', ], - 'type' => 'multiplier', ], ], ], @@ -5749,71 +5572,12 @@ public function testV2BillingContractPost() false, [ 'object' => 'v2.billing.contract', - 'contract_line_details' => [ - '0' => [ - 'contract_line' => 'contract_line', - 'contract_line_value_details' => ['total' => 'total'], - 'created' => '1970-01-12T21:42:34.472Z', - 'ends_at' => [ - 'timestamp' => '1970-01-01T15:18:46.294Z', - ], - 'overrides' => [ - '0' => [ - 'ends_at' => [ - 'timestamp' => '1970-01-01T15:18:46.294Z', - ], - 'starts_at' => [ - 'timestamp' => '1970-01-01T15:18:46.294Z', - ], - 'type' => 'service_action', - ], - ], - 'pricing' => [], - 'starts_at' => [ - 'timestamp' => '1970-01-01T15:18:46.294Z', - ], - ], - ], 'contract_number' => 'contract_number', - 'contract_value_details' => ['total' => 'total'], 'created' => '1970-01-12T21:42:34.472Z', 'currency' => 'usd', 'customer' => 'customer', 'id' => 'obj_123', - 'license_quantities' => [ - '0' => [ - 'license_pricing_id' => 'license_pricing_id', - 'license_pricing_type' => 'price', - 'pricing_line' => 'pricing_line', - 'quantity' => [], - ], - ], 'livemode' => [], - 'pricing_lines' => [ - '0' => [ - 'ends_at' => [ - 'timestamp' => '1970-01-01T15:18:46.294Z', - ], - 'pricing' => ['type' => 'price'], - 'pricing_line' => 'pricing_line', - 'starts_at' => [ - 'timestamp' => '1970-01-01T15:18:46.294Z', - ], - ], - ], - 'pricing_overrides' => [ - '0' => [ - 'ends_at' => [ - 'timestamp' => '1970-01-01T15:18:46.294Z', - ], - 'pricing_override' => 'pricing_override', - 'priority' => [], - 'starts_at' => [ - 'timestamp' => '1970-01-01T15:18:46.294Z', - ], - 'type' => 'multiplier', - ], - ], 'status' => 'draft', 'status_details' => [], ], @@ -5821,102 +5585,8 @@ public function testV2BillingContractPost() BaseStripeClient::DEFAULT_API_BASE ); $result = $this->v2Client->v2->billing->contracts->create([ - 'contract_lines' => [ - [ - 'ends_at' => ['timestamp' => '1970-01-01T15:18:46.294Z'], - 'metadata' => ['key' => 'metadata'], - 'overrides' => [ - [ - 'ends_at' => [ - 'timestamp' => '1970-01-01T15:18:46.294Z', - ], - 'service_action' => [ - 'add' => [ - 'credit_grant' => [ - 'amount' => [ - 'monetary' => [ - 'currency' => 'USD', - 'value' => 63, - ], - 'type' => 'monetary', - ], - 'applicability_config' => [ - 'scope' => [ - 'billable_items' => [ - 'billable_items', - ], - 'price_type' => 'metered', - ], - ], - 'category' => 'paid', - 'expiry_config' => [ - 'type' => 'end_of_service_period', - ], - 'name' => 'name', - 'priority' => 1165461084, - ], - 'service_interval' => 'month', - 'service_interval_count' => 1375336415, - 'type' => 'credit_grant', - ], - 'replace' => [ - 'credit_grant' => [ - 'amount' => [ - 'monetary' => [ - 'currency' => 'USD', - 'value' => 63, - ], - 'type' => 'monetary', - ], - 'applicability_config' => [ - 'scope' => [ - 'billable_items' => [ - 'billable_items', - ], - 'price_type' => 'metered', - ], - ], - 'category' => 'paid', - 'expiry_config' => [ - 'type' => 'end_of_service_period', - ], - 'name' => 'name', - 'priority' => 1165461084, - ], - 'id' => 'obj_123', - 'lookup_key' => 'lookup_key', - 'service_interval' => 'month', - 'service_interval_count' => 1375336415, - 'type' => 'credit_grant', - ], - 'type' => 'add', - ], - 'starts_at' => [ - 'timestamp' => '1970-01-01T15:18:46.294Z', - ], - 'type' => 'service_action', - ], - ], - 'pricing' => [], - 'starts_at' => ['timestamp' => '1970-01-01T15:18:46.294Z'], - ], - ], 'contract_number' => 'contract_number', 'currency' => 'usd', - 'license_quantity_actions' => [ - [ - 'effective_at' => [ - 'timestamp' => '1970-01-01T15:18:46.294Z', - 'type' => 'timestamp', - ], - 'license_pricing_id' => 'license_pricing_id', - 'license_pricing_lookup_key' => 'license_pricing_lookup_key', - 'license_pricing_type' => 'price', - 'pricing_line' => 'pricing_line', - 'set' => ['quantity' => 1285004149], - 'type' => 'set', - ], - ], 'pricing_lines' => [ [ 'ends_at' => [ @@ -5928,72 +5598,75 @@ public function testV2BillingContractPost() 'pricing' => [ 'price_details' => [ 'price' => 'price', - 'quantity' => 1285004149, - ], - 'type' => 'price', - ], - 'starts_at' => [ - 'timestamp' => '1970-01-01T15:18:46.294Z', - 'type' => 'contract_start', - ], - ], - ], - 'pricing_overrides' => [ - [ - 'ends_at' => [ - 'timestamp' => '1970-01-01T15:18:46.294Z', - 'type' => 'contract_end', - ], - 'lookup_key' => 'lookup_key', - 'multiplier' => [ - 'criteria' => [ - [ - 'billable_item_ids' => ['billable_item_ids'], - 'billable_item_lookup_keys' => [ - 'billable_item_lookup_keys', - ], - 'billable_item_types' => ['metered'], - 'metadata_conditions' => [ - [ - 'all_of' => [ + 'pricing_overrides' => [ + [ + 'ends_at' => [ + 'timestamp' => '1970-01-01T15:18:46.294Z', + 'type' => 'contract_end', + ], + 'lookup_key' => 'lookup_key', + 'metadata' => ['key' => 'metadata'], + 'overwrite_price' => [ + 'tiering_mode' => 'graduated', + 'tiers' => [ [ - 'key' => 'key', - 'value' => 'value', + 'flat_amount' => 'flat_amount', + 'unit_amount' => 'unit_amount', + 'up_to_decimal' => '1387931359.3333333', + 'up_to_inf' => 'inf', ], ], + 'unit_amount' => 'unit_amount', + ], + 'priority' => 1165461084, + 'starts_at' => [ + 'timestamp' => '1970-01-01T15:18:46.294Z', + 'type' => 'contract_start', ], + 'type' => 'overwrite_price', ], - 'rate_card_ids' => ['rate_card_ids'], - 'type' => 'exclude', ], - ], - 'factor' => 'factor', - ], - 'overwrite_price' => [ - 'price' => 'price', - 'tiering_mode' => 'graduated', - 'tiers' => [ - [ - 'flat_amount' => 'flat_amount', - 'unit_amount' => 'unit_amount', - 'up_to_decimal' => '1387931359.3333333', - 'up_to_inf' => 'inf', + 'quantity_changes' => [ + [ + 'effective_at' => [ + 'timestamp' => '1970-01-01T15:18:46.294Z', + 'type' => 'timestamp', + ], + 'set' => '75841.33333333333', + ], ], ], - 'unit_amount' => 'unit_amount', + 'type' => 'price', ], - 'priority' => 1165461084, 'starts_at' => [ 'timestamp' => '1970-01-01T15:18:46.294Z', 'type' => 'contract_start', ], - 'type' => 'multiplier', ], ], ]); self::assertInstanceOf(V2\Billing\Contract::class, $result); } + public function testV2BillingContractDelete() + { + $this->stubRequest( + 'delete', + '/v2/billing/contracts/id_123', + [], + [], + false, + [ + 'id' => 'abc_123', + 'object' => 'some.object.tag', + ], + 200, + BaseStripeClient::DEFAULT_API_BASE + ); + $result = $this->v2Client->v2->billing->contracts->delete('id_123', []); + self::assertInstanceOf(V2\DeletedObject::class, $result); + } + public function testV2BillingContractGet2() { $this->stubRequest( @@ -6004,71 +5677,12 @@ public function testV2BillingContractGet2() false, [ 'object' => 'v2.billing.contract', - 'contract_line_details' => [ - '0' => [ - 'contract_line' => 'contract_line', - 'contract_line_value_details' => ['total' => 'total'], - 'created' => '1970-01-12T21:42:34.472Z', - 'ends_at' => [ - 'timestamp' => '1970-01-01T15:18:46.294Z', - ], - 'overrides' => [ - '0' => [ - 'ends_at' => [ - 'timestamp' => '1970-01-01T15:18:46.294Z', - ], - 'starts_at' => [ - 'timestamp' => '1970-01-01T15:18:46.294Z', - ], - 'type' => 'service_action', - ], - ], - 'pricing' => [], - 'starts_at' => [ - 'timestamp' => '1970-01-01T15:18:46.294Z', - ], - ], - ], 'contract_number' => 'contract_number', - 'contract_value_details' => ['total' => 'total'], 'created' => '1970-01-12T21:42:34.472Z', 'currency' => 'usd', 'customer' => 'customer', 'id' => 'obj_123', - 'license_quantities' => [ - '0' => [ - 'license_pricing_id' => 'license_pricing_id', - 'license_pricing_type' => 'price', - 'pricing_line' => 'pricing_line', - 'quantity' => [], - ], - ], 'livemode' => [], - 'pricing_lines' => [ - '0' => [ - 'ends_at' => [ - 'timestamp' => '1970-01-01T15:18:46.294Z', - ], - 'pricing' => ['type' => 'price'], - 'pricing_line' => 'pricing_line', - 'starts_at' => [ - 'timestamp' => '1970-01-01T15:18:46.294Z', - ], - ], - ], - 'pricing_overrides' => [ - '0' => [ - 'ends_at' => [ - 'timestamp' => '1970-01-01T15:18:46.294Z', - ], - 'pricing_override' => 'pricing_override', - 'priority' => [], - 'starts_at' => [ - 'timestamp' => '1970-01-01T15:18:46.294Z', - ], - 'type' => 'multiplier', - ], - ], 'status' => 'draft', 'status_details' => [], ], @@ -6092,71 +5706,12 @@ public function testV2BillingContractPost2() false, [ 'object' => 'v2.billing.contract', - 'contract_line_details' => [ - '0' => [ - 'contract_line' => 'contract_line', - 'contract_line_value_details' => ['total' => 'total'], - 'created' => '1970-01-12T21:42:34.472Z', - 'ends_at' => [ - 'timestamp' => '1970-01-01T15:18:46.294Z', - ], - 'overrides' => [ - '0' => [ - 'ends_at' => [ - 'timestamp' => '1970-01-01T15:18:46.294Z', - ], - 'starts_at' => [ - 'timestamp' => '1970-01-01T15:18:46.294Z', - ], - 'type' => 'service_action', - ], - ], - 'pricing' => [], - 'starts_at' => [ - 'timestamp' => '1970-01-01T15:18:46.294Z', - ], - ], - ], 'contract_number' => 'contract_number', - 'contract_value_details' => ['total' => 'total'], 'created' => '1970-01-12T21:42:34.472Z', 'currency' => 'usd', 'customer' => 'customer', 'id' => 'obj_123', - 'license_quantities' => [ - '0' => [ - 'license_pricing_id' => 'license_pricing_id', - 'license_pricing_type' => 'price', - 'pricing_line' => 'pricing_line', - 'quantity' => [], - ], - ], 'livemode' => [], - 'pricing_lines' => [ - '0' => [ - 'ends_at' => [ - 'timestamp' => '1970-01-01T15:18:46.294Z', - ], - 'pricing' => ['type' => 'price'], - 'pricing_line' => 'pricing_line', - 'starts_at' => [ - 'timestamp' => '1970-01-01T15:18:46.294Z', - ], - ], - ], - 'pricing_overrides' => [ - '0' => [ - 'ends_at' => [ - 'timestamp' => '1970-01-01T15:18:46.294Z', - ], - 'pricing_override' => 'pricing_override', - 'priority' => [], - 'starts_at' => [ - 'timestamp' => '1970-01-01T15:18:46.294Z', - ], - 'type' => 'multiplier', - ], - ], 'status' => 'draft', 'status_details' => [], ], @@ -6177,71 +5732,12 @@ public function testV2BillingContractPost3() false, [ 'object' => 'v2.billing.contract', - 'contract_line_details' => [ - '0' => [ - 'contract_line' => 'contract_line', - 'contract_line_value_details' => ['total' => 'total'], - 'created' => '1970-01-12T21:42:34.472Z', - 'ends_at' => [ - 'timestamp' => '1970-01-01T15:18:46.294Z', - ], - 'overrides' => [ - '0' => [ - 'ends_at' => [ - 'timestamp' => '1970-01-01T15:18:46.294Z', - ], - 'starts_at' => [ - 'timestamp' => '1970-01-01T15:18:46.294Z', - ], - 'type' => 'service_action', - ], - ], - 'pricing' => [], - 'starts_at' => [ - 'timestamp' => '1970-01-01T15:18:46.294Z', - ], - ], - ], 'contract_number' => 'contract_number', - 'contract_value_details' => ['total' => 'total'], 'created' => '1970-01-12T21:42:34.472Z', 'currency' => 'usd', 'customer' => 'customer', 'id' => 'obj_123', - 'license_quantities' => [ - '0' => [ - 'license_pricing_id' => 'license_pricing_id', - 'license_pricing_type' => 'price', - 'pricing_line' => 'pricing_line', - 'quantity' => [], - ], - ], 'livemode' => [], - 'pricing_lines' => [ - '0' => [ - 'ends_at' => [ - 'timestamp' => '1970-01-01T15:18:46.294Z', - ], - 'pricing' => ['type' => 'price'], - 'pricing_line' => 'pricing_line', - 'starts_at' => [ - 'timestamp' => '1970-01-01T15:18:46.294Z', - ], - ], - ], - 'pricing_overrides' => [ - '0' => [ - 'ends_at' => [ - 'timestamp' => '1970-01-01T15:18:46.294Z', - ], - 'pricing_override' => 'pricing_override', - 'priority' => [], - 'starts_at' => [ - 'timestamp' => '1970-01-01T15:18:46.294Z', - ], - 'type' => 'multiplier', - ], - ], 'status' => 'draft', 'status_details' => [], ], @@ -6265,71 +5761,12 @@ public function testV2BillingContractPost4() false, [ 'object' => 'v2.billing.contract', - 'contract_line_details' => [ - '0' => [ - 'contract_line' => 'contract_line', - 'contract_line_value_details' => ['total' => 'total'], - 'created' => '1970-01-12T21:42:34.472Z', - 'ends_at' => [ - 'timestamp' => '1970-01-01T15:18:46.294Z', - ], - 'overrides' => [ - '0' => [ - 'ends_at' => [ - 'timestamp' => '1970-01-01T15:18:46.294Z', - ], - 'starts_at' => [ - 'timestamp' => '1970-01-01T15:18:46.294Z', - ], - 'type' => 'service_action', - ], - ], - 'pricing' => [], - 'starts_at' => [ - 'timestamp' => '1970-01-01T15:18:46.294Z', - ], - ], - ], 'contract_number' => 'contract_number', - 'contract_value_details' => ['total' => 'total'], 'created' => '1970-01-12T21:42:34.472Z', 'currency' => 'usd', 'customer' => 'customer', 'id' => 'obj_123', - 'license_quantities' => [ - '0' => [ - 'license_pricing_id' => 'license_pricing_id', - 'license_pricing_type' => 'price', - 'pricing_line' => 'pricing_line', - 'quantity' => [], - ], - ], 'livemode' => [], - 'pricing_lines' => [ - '0' => [ - 'ends_at' => [ - 'timestamp' => '1970-01-01T15:18:46.294Z', - ], - 'pricing' => ['type' => 'price'], - 'pricing_line' => 'pricing_line', - 'starts_at' => [ - 'timestamp' => '1970-01-01T15:18:46.294Z', - ], - ], - ], - 'pricing_overrides' => [ - '0' => [ - 'ends_at' => [ - 'timestamp' => '1970-01-01T15:18:46.294Z', - ], - 'pricing_override' => 'pricing_override', - 'priority' => [], - 'starts_at' => [ - 'timestamp' => '1970-01-01T15:18:46.294Z', - ], - 'type' => 'multiplier', - ], - ], 'status' => 'draft', 'status_details' => [], ], @@ -6340,26 +5777,25 @@ public function testV2BillingContractPost4() self::assertInstanceOf(V2\Billing\Contract::class, $result); } - public function testV2BillingContractsLicensePricingQuantityChangeGet() + public function testV2BillingContractsPricingLinesQuantityChangeGet() { $this->stubRequest( 'get', - '/v2/billing/contracts/contract_id_123/license_pricing/license_pricing_id_123/quantity_changes', + '/v2/billing/contracts/contract_id_123/pricing_lines/pricing_line_id_123/quantity_changes', [], [], false, [ 'data' => [ '0' => [ - 'object' => 'v2.billing.contract_license_pricing_quantity_change', + 'object' => 'v2.billing.contract_pricing_line_quantity_change', 'created' => '1970-01-12T21:42:34.472Z', 'effective_at' => '1970-01-03T20:38:28.043Z', 'id' => 'obj_123', - 'license_pricing_id' => 'license_pricing_id', - 'license_pricing_type' => 'price', 'livemode' => [], + 'pricing' => ['type' => 'price'], 'pricing_line' => 'pricing_line', - 'quantity' => [], + 'quantity' => '856669432.6666666', ], ], 'next_page_url' => null, @@ -6368,13 +5804,13 @@ public function testV2BillingContractsLicensePricingQuantityChangeGet() 200, BaseStripeClient::DEFAULT_API_BASE ); - $result = $this->v2Client->v2->billing->contracts->licensePricing->quantityChanges->allQuantityChanges( + $result = $this->v2Client->v2->billing->contracts->pricingLines->quantityChanges->allContractPricingLineQuantityChanges( 'contract_id_123', - 'license_pricing_id_123', + 'pricing_line_id_123', [] ); self::assertInstanceOf(V2\Collection::class, $result); - self::assertInstanceOf(V2\Billing\ContractLicensePricingQuantityChange::class, $result->data[0]); + self::assertInstanceOf(V2\Billing\ContractPricingLineQuantityChange::class, $result->data[0]); } public function testV2BillingCustomPricingUnitGet() From 72c376311308c05a3c1ccf28d644ff32d94778ee Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Thu, 18 Jun 2026 22:56:33 +0000 Subject: [PATCH 4/8] Update generated code for v2319 and a625388e39f1ba5137659d3bd50fff881d29d815 --- CODEGEN_VERSION | 2 +- OPENAPI_VERSION | 2 +- lib/Issuing/CreditUnderwritingRecord.php | 18 ++++++++++++++++++ lib/Issuing/Transaction.php | 2 +- .../CreditUnderwritingRecordService.php | 17 +++++++++++++++++ .../Issuing/AuthorizationService.php | 2 +- .../TestHelpers/Issuing/TransactionService.php | 2 +- 7 files changed, 40 insertions(+), 5 deletions(-) diff --git a/CODEGEN_VERSION b/CODEGEN_VERSION index 2006e7e9f..30d08c082 100644 --- a/CODEGEN_VERSION +++ b/CODEGEN_VERSION @@ -1 +1 @@ -bb93b01c5feaafbbf418073c1f13a09c411a75f5 \ No newline at end of file +a625388e39f1ba5137659d3bd50fff881d29d815 \ No newline at end of file diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index c35694dd6..00d675654 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v2317 \ No newline at end of file +v2319 \ No newline at end of file diff --git a/lib/Issuing/CreditUnderwritingRecord.php b/lib/Issuing/CreditUnderwritingRecord.php index b0b4bae0f..c0e19b3e5 100644 --- a/lib/Issuing/CreditUnderwritingRecord.php +++ b/lib/Issuing/CreditUnderwritingRecord.php @@ -18,6 +18,7 @@ * @property null|int $decided_at Date when a decision was made. * @property null|(object{application_rejected: null|(object{reason_other_explanation: null|string, reasons: string[]}&\Stripe\StripeObject), credit_limit_approved: null|(object{amount: int, currency: string}&\Stripe\StripeObject), credit_limit_decreased: null|(object{amount: int, currency: string, reason_other_explanation: null|string, reasons: string[]}&\Stripe\StripeObject), credit_line_closed: null|(object{reason_other_explanation: null|string, reasons: string[]}&\Stripe\StripeObject), type: string}&\Stripe\StripeObject) $decision Details about the decision. * @property null|int $decision_deadline For underwriting initiated by an application, a decision must be taken 30 days after the submission. + * @property null|int $decision_deadline_updated_at Time at which the decision deadline was last updated. * @property bool $livemode If the object exists in live mode, the value is true. If the object exists in test mode, the value is false. * @property null|\Stripe\StripeObject $metadata Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. * @property null|string $regulatory_reporting_file File containing regulatory reporting data for the decision. Required if you are subject to this reporting requirement. @@ -137,4 +138,21 @@ public function reportDecision($params = null, $opts = null) return $this; } + + /** + * @param null|array $params + * @param null|array|string $opts + * + * @return CreditUnderwritingRecord the reported credit underwriting record + * + * @throws \Stripe\Exception\ApiErrorException if the request fails + */ + public function reportOfferAcceptance($params = null, $opts = null) + { + $url = $this->instanceUrl() . '/report_offer_acceptance'; + list($response, $opts) = $this->_request('post', $url, $params, $opts); + $this->refreshFrom($response, $opts); + + return $this; + } } diff --git a/lib/Issuing/Transaction.php b/lib/Issuing/Transaction.php index bc3c97073..618631792 100644 --- a/lib/Issuing/Transaction.php +++ b/lib/Issuing/Transaction.php @@ -28,7 +28,7 @@ * @property string $merchant_currency The currency with which the merchant is taking payment. * @property (object{category: string, category_code: string, city: null|string, country: null|string, name: null|string, network_id: string, payment_facilitator_id?: null|string, postal_code: null|string, state: null|string, sub_merchant_id?: null|string, tax_id: null|string, terminal_id: null|string, url: null|string}&\Stripe\StripeObject) $merchant_data * @property \Stripe\StripeObject $metadata Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. - * @property null|(object{authorization_code: null|string, processing_date: null|string, transaction_id: null|string}&\Stripe\StripeObject) $network_data Details about the transaction, such as processing dates, set by the card network. + * @property null|(object{acquirer_reference_number?: null|string, authorization_code: null|string, processing_date: null|string, transaction_id: null|string}&\Stripe\StripeObject) $network_data Details about the transaction, such as processing dates, set by the card network. * @property null|(object{fleet: null|(object{cardholder_prompt_data: null|(object{driver_id: null|string, odometer: null|int, unspecified_id: null|string, user_id: null|string, vehicle_number: null|string}&\Stripe\StripeObject), purchase_type: null|string, reported_breakdown: null|(object{fuel: null|(object{gross_amount_decimal: null|string}&\Stripe\StripeObject), non_fuel: null|(object{gross_amount_decimal: null|string}&\Stripe\StripeObject), tax: null|(object{local_amount_decimal: null|string, national_amount_decimal: null|string}&\Stripe\StripeObject)}&\Stripe\StripeObject), service_type: null|string}&\Stripe\StripeObject), flight: null|(object{departure_at: null|int, passenger_name: null|string, refundable: null|bool, segments: null|((object{arrival_airport_code: null|string, carrier: null|string, departure_airport_code: null|string, flight_number: null|string, service_class: null|string, stopover_allowed: null|bool}&\Stripe\StripeObject))[], travel_agency: null|string}&\Stripe\StripeObject), fuel: null|(object{industry_product_code: null|string, quantity_decimal: null|string, type: string, unit: string, unit_cost_decimal: string}&\Stripe\StripeObject), lodging: null|(object{check_in_at: null|int, nights: null|int}&\Stripe\StripeObject), receipt: null|((object{description: null|string, quantity: null|float, total: null|int, unit_cost: null|int}&\Stripe\StripeObject))[], reference: null|string}&\Stripe\StripeObject) $purchase_details Additional purchase information that is optionally provided by the merchant. * @property null|Settlement|string $settlement The ID of the settlement to which this transaction belongs. * @property null|string|Token $token Token object used for this transaction. If a network token was not used for this transaction, this field will be null. diff --git a/lib/Service/Issuing/CreditUnderwritingRecordService.php b/lib/Service/Issuing/CreditUnderwritingRecordService.php index 1510c911a..d8e060e9e 100644 --- a/lib/Service/Issuing/CreditUnderwritingRecordService.php +++ b/lib/Service/Issuing/CreditUnderwritingRecordService.php @@ -93,6 +93,23 @@ public function reportDecision($id, $params = null, $opts = null) return $this->request('post', $this->buildPath('/v1/issuing/credit_underwriting_records/%s/report_decision', $id), $params, $opts); } + /** + * Update a CreditUnderwritingRecord object to report that a credit + * offer has been accepted. + * + * @param string $id + * @param null|array{expand?: string[]} $params + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts + * + * @return \Stripe\Issuing\CreditUnderwritingRecord + * + * @throws \Stripe\Exception\ApiErrorException if the request fails + */ + public function reportOfferAcceptance($id, $params = null, $opts = null) + { + return $this->request('post', $this->buildPath('/v1/issuing/credit_underwriting_records/%s/report_offer_acceptance', $id), $params, $opts); + } + /** * Retrieves a CreditUnderwritingRecord object. * diff --git a/lib/Service/TestHelpers/Issuing/AuthorizationService.php b/lib/Service/TestHelpers/Issuing/AuthorizationService.php index 5eb990ff3..b84df8b42 100644 --- a/lib/Service/TestHelpers/Issuing/AuthorizationService.php +++ b/lib/Service/TestHelpers/Issuing/AuthorizationService.php @@ -15,7 +15,7 @@ class AuthorizationService extends \Stripe\Service\AbstractService * Capture a test-mode authorization. * * @param string $id - * @param null|array{capture_amount?: int, close_authorization?: bool, expand?: string[], purchase_details?: array{fleet?: array{cardholder_prompt_data?: array{driver_id?: string, odometer?: int, unspecified_id?: string, user_id?: string, vehicle_number?: string}, purchase_type?: string, reported_breakdown?: array{fuel?: array{gross_amount_decimal?: string}, non_fuel?: array{gross_amount_decimal?: string}, tax?: array{local_amount_decimal?: string, national_amount_decimal?: string}}, service_type?: string}, flight?: array{departure_at?: int, passenger_name?: string, refundable?: bool, segments?: array{arrival_airport_code?: string, carrier?: string, departure_airport_code?: string, flight_number?: string, service_class?: string, stopover_allowed?: bool}[], travel_agency?: string}, fuel?: array{industry_product_code?: string, quantity_decimal?: string, type?: string, unit?: string, unit_cost_decimal?: string}, lodging?: array{check_in_at?: int, nights?: int}, receipt?: array{description?: string, quantity?: string, total?: int, unit_cost?: int}[], reference?: string}} $params + * @param null|array{capture_amount?: int, close_authorization?: bool, expand?: string[], network_data?: array{acquirer_reference_number?: string}, purchase_details?: array{fleet?: array{cardholder_prompt_data?: array{driver_id?: string, odometer?: int, unspecified_id?: string, user_id?: string, vehicle_number?: string}, purchase_type?: string, reported_breakdown?: array{fuel?: array{gross_amount_decimal?: string}, non_fuel?: array{gross_amount_decimal?: string}, tax?: array{local_amount_decimal?: string, national_amount_decimal?: string}}, service_type?: string}, flight?: array{departure_at?: int, passenger_name?: string, refundable?: bool, segments?: array{arrival_airport_code?: string, carrier?: string, departure_airport_code?: string, flight_number?: string, service_class?: string, stopover_allowed?: bool}[], travel_agency?: string}, fuel?: array{industry_product_code?: string, quantity_decimal?: string, type?: string, unit?: string, unit_cost_decimal?: string}, lodging?: array{check_in_at?: int, nights?: int}, receipt?: array{description?: string, quantity?: string, total?: int, unit_cost?: int}[], reference?: string}} $params * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @return \Stripe\Issuing\Authorization diff --git a/lib/Service/TestHelpers/Issuing/TransactionService.php b/lib/Service/TestHelpers/Issuing/TransactionService.php index 0e839e2bb..5a71d2413 100644 --- a/lib/Service/TestHelpers/Issuing/TransactionService.php +++ b/lib/Service/TestHelpers/Issuing/TransactionService.php @@ -14,7 +14,7 @@ class TransactionService extends \Stripe\Service\AbstractService /** * Allows the user to capture an arbitrary amount, also known as a forced capture. * - * @param null|array{amount: int, card: string, currency?: string, expand?: string[], merchant_data?: array{category?: string, city?: string, country?: string, name?: string, network_id?: string, payment_facilitator_id?: string, postal_code?: string, state?: string, sub_merchant_id?: string, terminal_id?: string, url?: string}, purchase_details?: array{fleet?: array{cardholder_prompt_data?: array{driver_id?: string, odometer?: int, unspecified_id?: string, user_id?: string, vehicle_number?: string}, purchase_type?: string, reported_breakdown?: array{fuel?: array{gross_amount_decimal?: string}, non_fuel?: array{gross_amount_decimal?: string}, tax?: array{local_amount_decimal?: string, national_amount_decimal?: string}}, service_type?: string}, flight?: array{departure_at?: int, passenger_name?: string, refundable?: bool, segments?: array{arrival_airport_code?: string, carrier?: string, departure_airport_code?: string, flight_number?: string, service_class?: string, stopover_allowed?: bool}[], travel_agency?: string}, fuel?: array{industry_product_code?: string, quantity_decimal?: string, type?: string, unit?: string, unit_cost_decimal?: string}, lodging?: array{check_in_at?: int, nights?: int}, receipt?: array{description?: string, quantity?: string, total?: int, unit_cost?: int}[], reference?: string}} $params + * @param null|array{amount: int, card: string, currency?: string, expand?: string[], merchant_data?: array{category?: string, city?: string, country?: string, name?: string, network_id?: string, payment_facilitator_id?: string, postal_code?: string, state?: string, sub_merchant_id?: string, terminal_id?: string, url?: string}, network_data?: array{acquirer_reference_number?: string}, purchase_details?: array{fleet?: array{cardholder_prompt_data?: array{driver_id?: string, odometer?: int, unspecified_id?: string, user_id?: string, vehicle_number?: string}, purchase_type?: string, reported_breakdown?: array{fuel?: array{gross_amount_decimal?: string}, non_fuel?: array{gross_amount_decimal?: string}, tax?: array{local_amount_decimal?: string, national_amount_decimal?: string}}, service_type?: string}, flight?: array{departure_at?: int, passenger_name?: string, refundable?: bool, segments?: array{arrival_airport_code?: string, carrier?: string, departure_airport_code?: string, flight_number?: string, service_class?: string, stopover_allowed?: bool}[], travel_agency?: string}, fuel?: array{industry_product_code?: string, quantity_decimal?: string, type?: string, unit?: string, unit_cost_decimal?: string}, lodging?: array{check_in_at?: int, nights?: int}, receipt?: array{description?: string, quantity?: string, total?: int, unit_cost?: int}[], reference?: string}} $params * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @return \Stripe\Issuing\Transaction From ea7b18867f24d201200281b3f9f3b8a44e2d77fe Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Thu, 18 Jun 2026 23:29:01 +0000 Subject: [PATCH 5/8] Update generated code for v2319 and db001b341367d849c992b20ef0c41f66f25b4a0a --- CODEGEN_VERSION | 2 +- lib/Service/V2/Billing/ContractService.php | 2 +- lib/V2/Billing/Contract.php | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CODEGEN_VERSION b/CODEGEN_VERSION index 30d08c082..6c2dc9575 100644 --- a/CODEGEN_VERSION +++ b/CODEGEN_VERSION @@ -1 +1 @@ -a625388e39f1ba5137659d3bd50fff881d29d815 \ No newline at end of file +db001b341367d849c992b20ef0c41f66f25b4a0a \ No newline at end of file diff --git a/lib/Service/V2/Billing/ContractService.php b/lib/Service/V2/Billing/ContractService.php index 8ad8550f1..320316232 100644 --- a/lib/Service/V2/Billing/ContractService.php +++ b/lib/Service/V2/Billing/ContractService.php @@ -332,7 +332,7 @@ public function cancel($id, $params = null, $opts = null) /** * Create a Contract object. * - * @param null|array{billing_settings?: array{contract_billing_details?: array{bill_settings_details?: array{calculation?: array{tax?: array{type: string}}, invoice?: array{time_until_due?: array{interval: string, interval_count: int}}}, billing_profile_details: array{customer: string, default_payment_method?: string}, collection_settings_details: array{collection_method: string, payment_method_configuration?: string}}}, contract_number: string, currency: string, include?: string[], metadata?: array, one_time_fees?: array{bill_schedule: array{bill_at: array{timestamp?: string, type: string}, value: int}[], billable_item_type: string, product_details?: array{product: string}}[], pricing_lines: array{ends_at: array{timestamp?: string, type: string}, lookup_key?: string, metadata?: array, pricing: array{price_details?: array{price: string, pricing_overrides?: array{ends_at?: array{timestamp?: string, type: string}, lookup_key?: string, metadata?: array, overwrite_price?: array{tiering_mode?: string, tiers?: array{flat_amount?: string, unit_amount?: string, up_to_decimal?: string, up_to_inf?: string}[], unit_amount?: string}, priority?: int, starts_at?: array{timestamp?: string, type: string}, type: string}[], quantity_changes?: array{effective_at: array{timestamp?: string, type: string}, set: string}[]}, type: string}, starts_at: array{timestamp?: string, type: string}}[], pricing_overrides?: array{ends_at: array{timestamp?: string, type: string}, lookup_key?: string, multiplier?: array{criteria?: array{billable_item_ids: string[], billable_item_lookup_keys: string[], billable_item_types: string[], metadata_conditions: array{all_of: array{key: string, value: string}[]}[], rate_card_ids: string[], type: string}[], factor: string}, priority: int, starts_at: array{timestamp?: string, type: string}, type: string}[]} $params + * @param null|array{billing_cycle_anchor?: array{config?: array{day_of_month: int, hour?: int, minute?: int, month_of_year?: int, second?: int}, timestamp?: string, type: string}, billing_settings?: array{contract_billing_details?: array{bill_settings_details?: array{calculation?: array{tax?: array{type: string}}, invoice?: array{time_until_due?: array{interval: string, interval_count: int}}}, billing_profile_details: array{customer: string, default_payment_method?: string}, collection_settings_details: array{collection_method: string, payment_method_configuration?: string}}}, contract_number: string, currency: string, include?: string[], metadata?: array, one_time_fees?: array{bill_schedule: array{bill_at: array{timestamp?: string, type: string}, value: int}[], billable_item_type: string, product_details?: array{product: string}}[], pricing_lines: array{ends_at: array{timestamp?: string, type: string}, lookup_key?: string, metadata?: array, pricing: array{price_details?: array{price: string, pricing_overrides?: array{ends_at?: array{timestamp?: string, type: string}, lookup_key?: string, metadata?: array, overwrite_price?: array{tiering_mode?: string, tiers?: array{flat_amount?: string, unit_amount?: string, up_to_decimal?: string, up_to_inf?: string}[], unit_amount?: string}, priority?: int, starts_at?: array{timestamp?: string, type: string}, type: string}[], quantity_changes?: array{effective_at: array{timestamp?: string, type: string}, set: string}[]}, type: string}, starts_at: array{timestamp?: string, type: string}}[], pricing_overrides?: array{ends_at: array{timestamp?: string, type: string}, lookup_key?: string, multiplier?: array{criteria?: array{billable_item_ids: string[], billable_item_lookup_keys: string[], billable_item_types: string[], metadata_conditions: array{all_of: array{key: string, value: string}[]}[], rate_card_ids: string[], type: string}[], factor: string}, priority: int, starts_at: array{timestamp?: string, type: string}, type: string}[]} $params * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @return \Stripe\V2\Billing\Contract diff --git a/lib/V2/Billing/Contract.php b/lib/V2/Billing/Contract.php index fe2e5f342..9fd928106 100644 --- a/lib/V2/Billing/Contract.php +++ b/lib/V2/Billing/Contract.php @@ -9,6 +9,7 @@ * * @property string $id The ID of the contract object. * @property string $object String representing the object's type. Objects of the same type share the same value of the object field. + * @property null|(object{timestamp: int}&\Stripe\StripeObject) $billing_cycle_anchor The billing cycle anchor for the contract. * @property null|(object{contract_billing_details?: (object{bill_settings_details?: (object{calculation?: (object{tax?: (object{type: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), invoice?: (object{time_until_due?: (object{interval: string, interval_count: int}&\Stripe\StripeObject)}&\Stripe\StripeObject)}&\Stripe\StripeObject), billing_profile_details: (object{customer: string, default_payment_method?: string}&\Stripe\StripeObject), collection_settings_details: (object{collection_method: string, payment_method_configuration?: string}&\Stripe\StripeObject)}&\Stripe\StripeObject)}&\Stripe\StripeObject) $billing_settings The billing settings for the contract. * @property string $contract_number A unique user-provided contract number e.g. C-2026-0001. * @property int $created Timestamp of when the object was created. From afe2e5a42aad56e7a11cac284d6f317340daaf2c Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Mon, 22 Jun 2026 19:33:26 +0000 Subject: [PATCH 6/8] Update generated code for v2322 and ed24339642d76128f1cf24d3fe7afef73a840e11 --- CODEGEN_VERSION | 2 +- OPENAPI_VERSION | 2 +- lib/PaymentIntent.php | 4 ++-- lib/Service/PaymentIntentService.php | 12 ++++++------ 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/CODEGEN_VERSION b/CODEGEN_VERSION index 6c2dc9575..99dcf2bc1 100644 --- a/CODEGEN_VERSION +++ b/CODEGEN_VERSION @@ -1 +1 @@ -db001b341367d849c992b20ef0c41f66f25b4a0a \ No newline at end of file +ed24339642d76128f1cf24d3fe7afef73a840e11 \ No newline at end of file diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 00d675654..e4fe8e06b 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v2319 \ No newline at end of file +v2322 \ No newline at end of file diff --git a/lib/PaymentIntent.php b/lib/PaymentIntent.php index 9772a421b..534ec5f80 100644 --- a/lib/PaymentIntent.php +++ b/lib/PaymentIntent.php @@ -125,7 +125,7 @@ class PaymentIntent extends ApiResource * parameters available in the confirm * API when you supply confirm=true. * - * @param null|array{allocated_funds?: array{enabled?: bool}, allowed_payment_method_types?: string[], amount: int, amount_details?: array{discount_amount?: null|int, enforce_arithmetic_validation?: bool, line_items?: null|array{discount_amount?: int, payment_method_options?: array{card?: array{commodity_code?: string, fleet_data?: array{product_type: string, service_type?: string}}, card_present?: array{commodity_code?: string}, klarna?: array{image_url?: string, product_url?: string, reference?: string, subscription_reference?: string}, paypal?: array{category?: string, description?: string, sold_by?: string}}, product_code?: string, product_name: string, quantity: int, quantity_precision?: int, tax?: array{total_tax_amount: int}, unit_cost: int, unit_of_measure?: string}[], shipping?: null|array{amount?: null|int, from_postal_code?: null|string, to_postal_code?: null|string}, surcharge?: null|array{amount?: null|int, enforce_validation?: null|string}, tax?: null|array{total_tax_amount: int}}, application_fee_amount?: int, automatic_payment_methods?: array{allow_redirects?: string, enabled: bool}, capture_method?: string, confirm?: bool, confirmation_method?: string, confirmation_token?: string, currency: string, customer?: string, customer_account?: string, description?: string, error_on_requires_action?: bool, excluded_payment_method_types?: string[], expand?: string[], fx_quote?: string, hooks?: array{inputs?: array{tax?: array{calculation: null|string}}}, mandate?: string, mandate_data?: null|array{customer_acceptance: array{accepted_at?: int, offline?: array{}, online?: array{ip_address: string, user_agent: string}, type: string}}, metadata?: array, off_session?: array|bool|string, on_behalf_of?: string, payment_details?: array{benefit?: array{fr_meal_voucher?: null|array{enabled?: string, siret?: string}}, car_rental?: array{affiliate?: array{name: string}, booking_number: string, car_class_code?: string, car_make?: string, car_model?: string, company?: string, customer_service_phone_number?: string, days_rented: int, delivery?: array{mode?: string, recipient?: array{email?: string, name?: string, phone?: string}}, distance?: array{amount?: int, unit?: string}, drivers?: array{driver_identification_number?: string, driver_tax_number?: string, name: string}[], extra_charges?: string[], no_show?: bool, pickup_address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, pickup_at: int, pickup_location_name?: string, rate_amount?: int, rate_interval?: string, renter_name?: string, return_address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, return_at: int, return_location_name?: string, tax_exempt?: bool, vehicle_identification_number?: string}, car_rental_data?: null|array{affiliate?: array{code?: string, name?: string}, booking_number?: string, carrier_name?: string, customer_service_phone_number?: string, days_rented?: int, distance?: array{amount: int, unit: string}, drivers?: array{date_of_birth?: array{day: int, month: int, year: int}, driver_identification_number?: string, driver_tax_number?: string, name: string}[], drop_off: array{address: array{city: string, country: string, line1: string, line2?: string, postal_code: string, state?: string}, location_name?: string, time: int}, insurances?: array{amount: int, currency?: string, insurance_company_name?: string, insurance_type: string}[], no_show_indicator?: bool, pickup: array{address: array{city: string, country: string, line1: string, line2?: string, postal_code: string, state?: string}, location_name?: string, time: int}, renter_name?: string, total: array{amount: int, currency?: string, discounts?: array{corporate_client_code?: string, coupon?: string, maximum_free_miles_or_kilometers?: int}, extra_charges?: array{amount: int, type: string}[], rate_per_unit?: int, rate_unit?: string, tax?: array{tax_exempt_indicator?: bool, taxes?: array{amount?: int, rate?: int, type?: string}[]}}, vehicle?: array{make?: string, model?: string, odometer?: int, type?: string, vehicle_class?: string, vehicle_identification_number?: string}}[], customer_reference?: null|string, event_details?: array{access_controlled_venue?: bool, address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, affiliate?: array{name: string}, company?: string, delivery?: array{mode?: string, recipient?: array{email?: string, name?: string, phone?: string}}, ends_at?: int, genre?: string, name: string, starts_at?: int}, fleet_data?: null|array{primary_fuel_fields?: array{brand?: string}, station?: array{additional_contact_info?: string, customer_service_phone_number?: string, partner_id_code?: string, phone_number?: string, service_location?: array{city?: string, country?: string, line1: string, line2?: string, postal_code?: string, state?: string}, url?: string}, vat?: array{iob_indicator: string}}[], flight?: array{affiliate?: array{name: string}, agency_number?: string, carrier?: string, delivery?: array{mode?: string, recipient?: array{email?: string, name?: string, phone?: string}}, passenger_name?: string, passengers?: array{name: string}[], segments: array{amount?: int, arrival_airport?: string, arrives_at?: int, carrier?: string, departs_at: int, departure_airport?: string, flight_number?: string, service_class?: string}[], ticket_number?: string}, flight_data?: null|array{affiliate?: array{code?: string, name?: string, travel_authorization_code?: string}, booking_number?: string, computerized_reservation_system?: string, endorsements_and_restrictions?: string, insurances?: array{amount: int, currency?: string, insurance_company_name?: string, insurance_type: string}[], passengers?: array{name: string}[], segments: array{amount?: int, arrival: array{airport: string, arrives_at?: int, city?: string, country?: string}, carrier_code: string, carrier_name?: string, currency?: string, departure: array{airport: string, city?: string, country?: string, departs_at: int}, exchange_ticket_number?: string, fare_basis_code?: string, fees?: int, flight_number?: string, is_stop_over_indicator?: bool, refundable?: bool, service_class: string, tax_amount?: int, ticket_number?: string}[], ticket_electronically_issued_indicator?: bool, total: array{amount: int, credit_reason?: string, currency?: string, discounts?: array{corporate_client_code?: string}, extra_charges?: array{amount?: int, type?: string}[], tax?: array{taxes?: array{amount?: int, rate?: int, type?: string}[]}}, transaction_type?: string}[], location?: string, lodging?: array{address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, adults?: int, affiliate?: array{name: string}, booking_number?: string, category?: string, checkin_at: int, checkout_at: int, customer_service_phone_number?: string, daily_room_rate_amount?: int, delivery?: array{mode?: string, recipient?: array{email?: string, name?: string, phone?: string}}, extra_charges?: string[], fire_safety_act_compliance?: bool, name?: string, no_show?: bool, number_of_rooms?: int, passengers?: array{name: string}[], property_phone_number?: string, room_class?: string, room_nights?: int, total_room_tax_amount?: int, total_tax_amount?: int}, lodging_data?: null|array{accommodation?: array{accommodation_type?: string, bed_type?: string, daily_rate_amount?: int, nights?: int, number_of_rooms?: int, rate_type?: string, smoking_indicator?: bool}, affiliate?: array{code?: string, name?: string}, booking_number?: string, checkin_at: int, checkout_at: int, customer_service_phone_number?: string, fire_safety_act_compliance_indicator?: bool, guests?: array{name: string}[], host?: array{address?: array{city: string, country: string, line1: string, line2?: string, postal_code: string, state?: string}, country_of_domicile?: string, host_reference?: string, host_type?: string, name?: string, number_of_reservations?: int, property_phone_number?: string, registered_at?: int}, insurances?: array{amount: int, currency?: string, insurance_company_name?: string, insurance_type: string}[], no_show_indicator?: bool, renter_id_number?: string, renter_name?: string, total: array{amount: int, cash_advances?: int, currency?: string, discounts?: array{corporate_client_code?: string, coupon?: string}, extra_charges?: array{amount?: int, type?: string}[], prepaid_amount?: int, tax?: array{tax_exempt_indicator?: bool, taxes?: array{amount?: int, rate?: int, type?: string}[]}}}[], money_services?: null|array{account_funding?: null|array{sender_details?: null|array{address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, date_of_birth?: array{day: int, month: int, year: int}, email?: string, given_name?: string, phone?: string, surname?: string}}, beneficiary_details?: null|array{account_reference?: string, address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, date_of_birth?: array{day: int, month: int, year: int}, email?: string, given_name?: string, phone?: string, surname?: string}, transaction_type?: null|string}, order_reference?: null|string, subscription?: array{affiliate?: array{name: string}, auto_renewal?: bool, billing_interval?: array{count: int, interval: string}, ends_at?: int, name: string, starts_at?: int}}, payment_method?: string, payment_method_configuration?: string, payment_method_data?: array{acss_debit?: array{account_number: string, institution_number: string, transit_number: string}, affirm?: array{}, afterpay_clearpay?: array{}, alipay?: array{}, allow_redisplay?: string, alma?: array{}, amazon_pay?: array{}, au_becs_debit?: array{account_number: string, bsb_number: string}, bacs_debit?: array{account_number?: string, sort_code?: string}, bancontact?: array{}, billie?: array{}, billing_details?: array{address?: null|array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, email?: null|string, name?: null|string, phone?: null|string, tax_id?: string}, bizum?: array{}, blik?: array{}, boleto?: array{tax_id: string}, cashapp?: array{}, crypto?: array{}, customer_balance?: array{}, eps?: array{bank?: string}, fpx?: array{account_holder_type?: string, bank: string}, gift_card?: array{gift_card: string}, giropay?: array{}, gopay?: array{}, grabpay?: array{}, id_bank_transfer?: array{bank?: string}, ideal?: array{bank?: string}, interac_present?: array{}, kakao_pay?: array{}, klarna?: array{dob?: array{day: int, month: int, year: int}}, konbini?: array{}, kr_card?: array{}, link?: array{}, mb_way?: array{}, metadata?: array, mobilepay?: array{}, multibanco?: array{}, naver_pay?: array{funding?: string}, nz_bank_account?: array{account_holder_name?: string, account_number: string, bank_code: string, branch_code: string, reference?: string, suffix: string}, oxxo?: array{}, p24?: array{bank?: string}, pay_by_bank?: array{}, payco?: array{}, paynow?: array{}, paypal?: array{}, paypay?: array{}, payto?: array{account_number?: string, bsb_number?: string, pay_id?: string}, pix?: array{}, promptpay?: array{}, qris?: array{}, radar_options?: array{session?: string}, rechnung?: array{dob: array{day: int, month: int, year: int}}, revolut_pay?: array{}, samsung_pay?: array{}, satispay?: array{}, scalapay?: array{}, sepa_debit?: array{iban: string}, shared_payment_granted_token?: string, shopeepay?: array{}, sofort?: array{country: string}, stripe_balance?: array{account?: string}, sunbit?: array{}, swish?: array{}, tamara?: array{}, twint?: array{}, type: string, upi?: array{mandate_options?: array{amount?: int, amount_type?: string, description?: string, end_date?: int}}, us_bank_account?: array{account_holder_type?: string, account_number?: string, account_type?: string, financial_connections_account?: string, routing_number?: string}, wechat_pay?: array{}, zip?: array{}}, payment_method_options?: array{acss_debit?: null|array{mandate_options?: array{custom_mandate_url?: null|string, interval_description?: string, payment_schedule?: string, transaction_type?: string}, setup_future_usage?: null|string, target_date?: string, verification_method?: string}, affirm?: null|array{capture_method?: null|string, preferred_locale?: string, setup_future_usage?: string}, afterpay_clearpay?: null|array{capture_method?: null|string, reference?: string, setup_future_usage?: string}, alipay?: null|array{setup_future_usage?: null|string}, alma?: null|array{capture_method?: null|string}, amazon_pay?: null|array{capture_method?: null|string, setup_future_usage?: null|string}, au_becs_debit?: null|array{setup_future_usage?: null|string, target_date?: string}, bacs_debit?: null|array{mandate_options?: array{reference_prefix?: null|string}, setup_future_usage?: null|string, target_date?: string}, bancontact?: null|array{preferred_language?: string, setup_future_usage?: null|string}, billie?: null|array{capture_method?: null|string}, bizum?: null|array{}, blik?: null|array{code?: string, setup_future_usage?: null|string}, boleto?: null|array{expires_after_days?: int, setup_future_usage?: null|string}, card?: null|array{capture_by?: string, capture_delay?: array{days?: int, hours?: int}, capture_method?: null|string, cvc_token?: string, installments?: array{enabled?: bool, plan?: null|array{count?: int, interval?: string, type: string}}, mandate_options?: array{amount: int, amount_type: string, description?: string, end_date?: int, interval: string, interval_count?: int, reference: string, start_date: int, supported_types?: string[]}, moto?: bool, network?: string, payment_details?: array{money_services?: array{account_funding?: array{digital_asset_category?: string}}}, request_decremental_authorization?: string, request_extended_authorization?: string, request_incremental_authorization?: string, request_multicapture?: string, request_overcapture?: string, request_partial_authorization?: string, request_reauthorization?: string, request_three_d_secure?: string, require_cvc_recollection?: bool, setup_future_usage?: null|string, statement_descriptor_suffix_kana?: null|string, statement_descriptor_suffix_kanji?: null|string, statement_details?: null|array{address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, phone?: string}, three_d_secure?: array{ares_trans_status?: string, cryptogram: string, electronic_commerce_indicator?: string, exemption_indicator?: string, network_options?: array{cartes_bancaires?: array{cb_avalgo: string, cb_exemption?: string, cb_score?: int}}, requestor_challenge_indicator?: string, transaction_id: string, version: string}}, card_present?: null|array{capture_by?: string, capture_delay?: array{days?: int, hours?: int}, capture_method?: string, payment_details?: array{money_services?: array{account_funding?: array{digital_asset_category?: string}}}, request_extended_authorization?: bool, request_incremental_authorization_support?: bool, request_multicapture?: string, request_reauthorization?: string, routing?: array{requested_priority?: string}}, cashapp?: null|array{capture_method?: null|string, setup_future_usage?: null|string}, crypto?: null|array{deposit_options?: array{networks: string[], static_address?: bool}, mode?: string, setup_future_usage?: string, transaction_verification_options?: array{network: string, transaction_hash: string}}, customer_balance?: null|array{bank_transfer?: array{eu_bank_transfer?: array{country: string}, requested_address_types?: string[], type: string}, funding_type?: string, setup_future_usage?: string}, eps?: null|array{setup_future_usage?: string}, fpx?: null|array{setup_future_usage?: string}, gift_card?: null|array{ignore_application_fee?: string, ignore_transfer_data?: string, request_partial_authorization?: string}, giropay?: null|array{setup_future_usage?: string}, gopay?: null|array{setup_future_usage?: string}, grabpay?: null|array{setup_future_usage?: string}, id_bank_transfer?: null|array{expires_after?: int, expires_at?: int, setup_future_usage?: string}, ideal?: null|array{setup_future_usage?: null|string}, interac_present?: null|array{}, kakao_pay?: null|array{capture_method?: null|string, setup_future_usage?: null|string}, klarna?: null|array{capture_method?: null|string, on_demand?: array{average_amount?: int, maximum_amount?: int, minimum_amount?: int, purchase_interval?: string, purchase_interval_count?: int}, preferred_locale?: string, setup_future_usage?: string, subscriptions?: null|array{interval: string, interval_count?: int, name?: string, next_billing?: array{amount: int, date: string}, reference: string}[], supplementary_purchase_data?: null|array{bus_reservation_details?: null|array{affiliate_name?: string, arrival?: array{address?: array{city?: string, country?: string, postal_code?: string, region?: string, street_address?: string, street_address2?: string}, arrival_location?: string}, carrier_name?: string, currency?: string, departure?: array{address?: array{city?: string, country?: string, postal_code?: string, region?: string, street_address?: string, street_address2?: string}, departs_at?: int, departure_location?: string}, insurances?: array{currency?: string, insurance_company_name?: string, insurance_type?: string, price?: int}[], passengers?: array{family_name?: string, given_name?: string}[], price?: int, ticket_class?: string}[], event_reservation_details?: null|array{access_controlled_venue?: bool, address?: array{city?: string, country?: string, postal_code?: string, region?: string, street_address?: string, street_address2?: string}, affiliate_name?: string, ends_at?: int, event_company_name?: string, event_name?: string, event_type?: string, insurances?: array{currency?: string, insurance_company_name?: string, insurance_type?: string, price?: int}[], starts_at?: int, venue_name?: string}[], ferry_reservation_details?: null|array{affiliate_name?: string, arrival?: array{address?: array{city?: string, country?: string, postal_code?: string, region?: string, street_address?: string, street_address2?: string}, arrival_location?: string}, carrier_name?: string, currency?: string, departure?: array{address?: array{city?: string, country?: string, postal_code?: string, region?: string, street_address?: string, street_address2?: string}, departs_at?: int, departure_location?: string}, insurances?: array{currency?: string, insurance_company_name?: string, insurance_type?: string, price?: int}[], passengers?: array{family_name?: string, given_name?: string}[], price?: int, ticket_class?: string}[], insurances?: null|array{currency?: string, insurance_company_name?: string, insurance_type?: string, price?: int}[], marketplace_sellers?: null|array{line_item_references?: string[], marketplace_seller_address?: array{city?: string, country?: string, postal_code?: string, region?: string, street_address?: string, street_address2?: string}, marketplace_seller_name?: string, marketplace_seller_reference?: string, number_of_transactions?: int, product_category?: string, seller_last_login_at?: int, seller_rating?: string, seller_registered_at?: int, seller_updated_at?: int, shipping_references?: string[], volume_of_transactions?: int}[], round_trip_reservation_details?: null|array{affiliate_name?: string, arrival?: array{address?: array{city?: string, country?: string, postal_code?: string, region?: string, street_address?: string, street_address2?: string}, arrival_location?: string}, carrier_name?: string, currency?: string, departure?: array{address?: array{city?: string, country?: string, postal_code?: string, region?: string, street_address?: string, street_address2?: string}, departs_at?: int, departure_location?: string}, insurances?: array{currency?: string, insurance_company_name?: string, insurance_type?: string, price?: int}[], passengers?: array{family_name?: string, given_name?: string}[], price?: int, ticket_class?: string}[], train_reservation_details?: null|array{affiliate_name?: string, arrival?: array{address?: array{city?: string, country?: string, postal_code?: string, region?: string, street_address?: string, street_address2?: string}, arrival_location?: string}, carrier_name?: string, currency?: string, departure?: array{address?: array{city?: string, country?: string, postal_code?: string, region?: string, street_address?: string, street_address2?: string}, departs_at?: int, departure_location?: string}, insurances?: array{currency?: string, insurance_company_name?: string, insurance_type?: string, price?: int}[], passengers?: array{family_name?: string, given_name?: string}[], price?: int, ticket_class?: string}[], vouchers?: null|array{affiliate_name?: string, ends_at?: int, starts_at?: int, voucher_company?: string, voucher_name?: string, voucher_type?: string}[]}}, konbini?: null|array{confirmation_number?: null|string, expires_after_days?: null|int, expires_at?: null|int, product_description?: null|string, setup_future_usage?: string}, kr_card?: null|array{capture_method?: null|string, setup_future_usage?: null|string}, link?: null|array{capture_method?: null|string, persistent_token?: string, setup_future_usage?: null|string}, mb_way?: null|array{setup_future_usage?: string}, mobilepay?: null|array{capture_method?: null|string, setup_future_usage?: string}, multibanco?: null|array{setup_future_usage?: string}, naver_pay?: null|array{capture_method?: null|string, setup_future_usage?: null|string}, nz_bank_account?: null|array{setup_future_usage?: null|string, target_date?: string}, oxxo?: null|array{expires_after_days?: int, setup_future_usage?: string}, p24?: null|array{setup_future_usage?: string, tos_shown_and_accepted?: bool}, pay_by_bank?: null|array{}, payco?: null|array{capture_method?: null|string}, paynow?: null|array{setup_future_usage?: string}, paypal?: null|array{capture_method?: null|string, line_items?: array{category?: string, description?: string, name: string, quantity: int, sku?: string, sold_by?: string, tax?: array{amount: int, behavior: string}, unit_amount: int}[], preferred_locale?: string, reference?: string, reference_id?: string, risk_correlation_id?: string, setup_future_usage?: null|string, subsellers?: string[]}, paypay?: null|array{capture_method?: null|string}, payto?: null|array{mandate_options?: array{amount?: null|int, amount_type?: null|string, end_date?: null|string, payment_schedule?: null|string, payments_per_period?: null|int, purpose?: null|string}, setup_future_usage?: null|string}, pix?: null|array{amount_includes_iof?: string, expires_after_seconds?: int, expires_at?: int, mandate_options?: array{amount?: int, amount_includes_iof?: string, amount_type?: string, currency?: string, end_date?: string, payment_schedule?: string, reference?: string, start_date?: string}, setup_future_usage?: string}, promptpay?: null|array{setup_future_usage?: string}, qris?: null|array{setup_future_usage?: string}, rechnung?: null|array{}, revolut_pay?: null|array{capture_method?: null|string, setup_future_usage?: null|string}, samsung_pay?: null|array{capture_method?: null|string}, satispay?: null|array{capture_method?: null|string}, scalapay?: null|array{capture_method?: null|string}, sepa_debit?: null|array{mandate_options?: array{reference_prefix?: null|string}, setup_future_usage?: null|string, target_date?: string}, shopeepay?: null|array{setup_future_usage?: string}, sofort?: null|array{preferred_language?: null|string, setup_future_usage?: null|string}, stripe_balance?: null|array{mandate_options?: array{stripe_balance_debit_agreement?: string}, setup_future_usage?: null|string}, swish?: null|array{reference?: null|string, setup_future_usage?: string}, twint?: null|array{setup_future_usage?: string}, upi?: null|array{mandate_options?: array{amount?: int, amount_type?: string, description?: string, end_date?: int}, setup_future_usage?: null|string}, us_bank_account?: null|array{financial_connections?: array{filters?: array{account_subcategories?: string[], institution?: string}, manual_entry?: array{mode: string}, permissions?: string[], prefetch?: string[], return_url?: string}, mandate_options?: array{collection_method?: null|string}, networks?: array{requested?: string[]}, setup_future_usage?: null|string, target_date?: string, transaction_purpose?: null|string, verification_method?: string}, wechat_pay?: null|array{app_id?: string, buyer_id?: string, client?: string, setup_future_usage?: string}, zip?: null|array{setup_future_usage?: string}}, payment_method_types?: string[], payments_orchestration?: array{enabled: bool, payment_reference?: string}, radar_options?: array{session?: string}, receipt_email?: string, return_url?: string, secret_key_confirmation?: string, setup_future_usage?: string, shipping?: array{address: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, carrier?: string, name: string, phone?: string, tracking_number?: string}, statement_descriptor?: string, statement_descriptor_suffix?: string, transfer_data?: array{amount?: int, description?: string, destination: string, metadata?: null|array, payment_data?: array{description?: string, metadata?: null|array}}, transfer_group?: string, use_stripe_sdk?: bool} $params + * @param null|array{allocated_funds?: array{enabled?: bool}, allowed_payment_method_types?: string[], amount: int, amount_details?: array{discount_amount?: null|int, enforce_arithmetic_validation?: bool, line_items?: null|array{discount_amount?: int, payment_method_options?: array{card?: array{commodity_code?: string, fleet_data?: array{product_type: string, service_type?: string}}, card_present?: array{commodity_code?: string}, klarna?: array{image_url?: string, product_url?: string, reference?: string, subscription_reference?: string}, paypal?: array{category?: string, description?: string, sold_by?: string}}, product_code?: string, product_name: string, quantity: int, quantity_precision?: int, tax?: array{total_tax_amount: int}, unit_cost: int, unit_of_measure?: string}[], shipping?: null|array{amount?: null|int, from_postal_code?: null|string, to_postal_code?: null|string}, surcharge?: null|array{amount?: null|int, enforce_validation?: null|string}, tax?: null|array{total_tax_amount: int}, tip?: null|array{amount?: null|int}}, application_fee_amount?: int, automatic_payment_methods?: array{allow_redirects?: string, enabled: bool}, capture_method?: string, confirm?: bool, confirmation_method?: string, confirmation_token?: string, currency: string, customer?: string, customer_account?: string, description?: string, error_on_requires_action?: bool, excluded_payment_method_types?: string[], expand?: string[], fx_quote?: string, hooks?: array{inputs?: array{tax?: array{calculation: null|string}}}, mandate?: string, mandate_data?: null|array{customer_acceptance: array{accepted_at?: int, offline?: array{}, online?: array{ip_address: string, user_agent: string}, type: string}}, metadata?: array, off_session?: array|bool|string, on_behalf_of?: string, payment_details?: array{benefit?: array{fr_meal_voucher?: null|array{enabled?: string, siret?: string}}, car_rental?: array{affiliate?: array{name: string}, booking_number: string, car_class_code?: string, car_make?: string, car_model?: string, company?: string, customer_service_phone_number?: string, days_rented: int, delivery?: array{mode?: string, recipient?: array{email?: string, name?: string, phone?: string}}, distance?: array{amount?: int, unit?: string}, drivers?: array{driver_identification_number?: string, driver_tax_number?: string, name: string}[], extra_charges?: string[], no_show?: bool, pickup_address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, pickup_at: int, pickup_location_name?: string, rate_amount?: int, rate_interval?: string, renter_name?: string, return_address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, return_at: int, return_location_name?: string, tax_exempt?: bool, vehicle_identification_number?: string}, car_rental_data?: null|array{affiliate?: array{code?: string, name?: string}, booking_number?: string, carrier_name?: string, customer_service_phone_number?: string, days_rented?: int, distance?: array{amount: int, unit: string}, drivers?: array{date_of_birth?: array{day: int, month: int, year: int}, driver_identification_number?: string, driver_tax_number?: string, name: string}[], drop_off: array{address: array{city: string, country: string, line1: string, line2?: string, postal_code: string, state?: string}, location_name?: string, time: int}, insurances?: array{amount: int, currency?: string, insurance_company_name?: string, insurance_type: string}[], no_show_indicator?: bool, pickup: array{address: array{city: string, country: string, line1: string, line2?: string, postal_code: string, state?: string}, location_name?: string, time: int}, renter_name?: string, total: array{amount: int, currency?: string, discounts?: array{corporate_client_code?: string, coupon?: string, maximum_free_miles_or_kilometers?: int}, extra_charges?: array{amount: int, type: string}[], rate_per_unit?: int, rate_unit?: string, tax?: array{tax_exempt_indicator?: bool, taxes?: array{amount?: int, rate?: int, type?: string}[]}}, vehicle?: array{make?: string, model?: string, odometer?: int, type?: string, vehicle_class?: string, vehicle_identification_number?: string}}[], customer_reference?: null|string, event_details?: array{access_controlled_venue?: bool, address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, affiliate?: array{name: string}, company?: string, delivery?: array{mode?: string, recipient?: array{email?: string, name?: string, phone?: string}}, ends_at?: int, genre?: string, name: string, starts_at?: int}, fleet_data?: null|array{primary_fuel_fields?: array{brand?: string}, station?: array{additional_contact_info?: string, customer_service_phone_number?: string, partner_id_code?: string, phone_number?: string, service_location?: array{city?: string, country?: string, line1: string, line2?: string, postal_code?: string, state?: string}, url?: string}, vat?: array{iob_indicator: string}}[], flight?: array{affiliate?: array{name: string}, agency_number?: string, carrier?: string, delivery?: array{mode?: string, recipient?: array{email?: string, name?: string, phone?: string}}, passenger_name?: string, passengers?: array{name: string}[], segments: array{amount?: int, arrival_airport?: string, arrives_at?: int, carrier?: string, departs_at: int, departure_airport?: string, flight_number?: string, service_class?: string}[], ticket_number?: string}, flight_data?: null|array{affiliate?: array{code?: string, name?: string, travel_authorization_code?: string}, booking_number?: string, computerized_reservation_system?: string, endorsements_and_restrictions?: string, insurances?: array{amount: int, currency?: string, insurance_company_name?: string, insurance_type: string}[], passengers?: array{name: string}[], segments: array{amount?: int, arrival: array{airport: string, arrives_at?: int, city?: string, country?: string}, carrier_code: string, carrier_name?: string, currency?: string, departure: array{airport: string, city?: string, country?: string, departs_at: int}, exchange_ticket_number?: string, fare_basis_code?: string, fees?: int, flight_number?: string, is_stop_over_indicator?: bool, refundable?: bool, service_class: string, tax_amount?: int, ticket_number?: string}[], ticket_electronically_issued_indicator?: bool, total: array{amount: int, credit_reason?: string, currency?: string, discounts?: array{corporate_client_code?: string}, extra_charges?: array{amount?: int, type?: string}[], tax?: array{taxes?: array{amount?: int, rate?: int, type?: string}[]}}, transaction_type?: string}[], location?: string, lodging?: array{address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, adults?: int, affiliate?: array{name: string}, booking_number?: string, category?: string, checkin_at: int, checkout_at: int, customer_service_phone_number?: string, daily_room_rate_amount?: int, delivery?: array{mode?: string, recipient?: array{email?: string, name?: string, phone?: string}}, extra_charges?: string[], fire_safety_act_compliance?: bool, name?: string, no_show?: bool, number_of_rooms?: int, passengers?: array{name: string}[], property_phone_number?: string, room_class?: string, room_nights?: int, total_room_tax_amount?: int, total_tax_amount?: int}, lodging_data?: null|array{accommodation?: array{accommodation_type?: string, bed_type?: string, daily_rate_amount?: int, nights?: int, number_of_rooms?: int, rate_type?: string, smoking_indicator?: bool}, affiliate?: array{code?: string, name?: string}, booking_number?: string, checkin_at: int, checkout_at: int, customer_service_phone_number?: string, fire_safety_act_compliance_indicator?: bool, guests?: array{name: string}[], host?: array{address?: array{city: string, country: string, line1: string, line2?: string, postal_code: string, state?: string}, country_of_domicile?: string, host_reference?: string, host_type?: string, name?: string, number_of_reservations?: int, property_phone_number?: string, registered_at?: int}, insurances?: array{amount: int, currency?: string, insurance_company_name?: string, insurance_type: string}[], no_show_indicator?: bool, renter_id_number?: string, renter_name?: string, total: array{amount: int, cash_advances?: int, currency?: string, discounts?: array{corporate_client_code?: string, coupon?: string}, extra_charges?: array{amount?: int, type?: string}[], prepaid_amount?: int, tax?: array{tax_exempt_indicator?: bool, taxes?: array{amount?: int, rate?: int, type?: string}[]}}}[], money_services?: null|array{account_funding?: null|array{sender_details?: null|array{address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, date_of_birth?: array{day: int, month: int, year: int}, email?: string, given_name?: string, phone?: string, surname?: string}}, beneficiary_details?: null|array{account_reference?: string, address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, date_of_birth?: array{day: int, month: int, year: int}, email?: string, given_name?: string, phone?: string, surname?: string}, transaction_type?: null|string}, order_reference?: null|string, subscription?: array{affiliate?: array{name: string}, auto_renewal?: bool, billing_interval?: array{count: int, interval: string}, ends_at?: int, name: string, starts_at?: int}}, payment_method?: string, payment_method_configuration?: string, payment_method_data?: array{acss_debit?: array{account_number: string, institution_number: string, transit_number: string}, affirm?: array{}, afterpay_clearpay?: array{}, alipay?: array{}, allow_redisplay?: string, alma?: array{}, amazon_pay?: array{}, au_becs_debit?: array{account_number: string, bsb_number: string}, bacs_debit?: array{account_number?: string, sort_code?: string}, bancontact?: array{}, billie?: array{}, billing_details?: array{address?: null|array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, email?: null|string, name?: null|string, phone?: null|string, tax_id?: string}, bizum?: array{}, blik?: array{}, boleto?: array{tax_id: string}, cashapp?: array{}, crypto?: array{}, customer_balance?: array{}, eps?: array{bank?: string}, fpx?: array{account_holder_type?: string, bank: string}, gift_card?: array{gift_card: string}, giropay?: array{}, gopay?: array{}, grabpay?: array{}, id_bank_transfer?: array{bank?: string}, ideal?: array{bank?: string}, interac_present?: array{}, kakao_pay?: array{}, klarna?: array{dob?: array{day: int, month: int, year: int}}, konbini?: array{}, kr_card?: array{}, link?: array{}, mb_way?: array{}, metadata?: array, mobilepay?: array{}, multibanco?: array{}, naver_pay?: array{funding?: string}, nz_bank_account?: array{account_holder_name?: string, account_number: string, bank_code: string, branch_code: string, reference?: string, suffix: string}, oxxo?: array{}, p24?: array{bank?: string}, pay_by_bank?: array{}, payco?: array{}, paynow?: array{}, paypal?: array{}, paypay?: array{}, payto?: array{account_number?: string, bsb_number?: string, pay_id?: string}, pix?: array{}, promptpay?: array{}, qris?: array{}, radar_options?: array{session?: string}, rechnung?: array{dob: array{day: int, month: int, year: int}}, revolut_pay?: array{}, samsung_pay?: array{}, satispay?: array{}, scalapay?: array{}, sepa_debit?: array{iban: string}, shared_payment_granted_token?: string, shopeepay?: array{}, sofort?: array{country: string}, stripe_balance?: array{account?: string}, sunbit?: array{}, swish?: array{}, tamara?: array{}, twint?: array{}, type: string, upi?: array{mandate_options?: array{amount?: int, amount_type?: string, description?: string, end_date?: int}}, us_bank_account?: array{account_holder_type?: string, account_number?: string, account_type?: string, financial_connections_account?: string, routing_number?: string}, wechat_pay?: array{}, zip?: array{}}, payment_method_options?: array{acss_debit?: null|array{mandate_options?: array{custom_mandate_url?: null|string, interval_description?: string, payment_schedule?: string, transaction_type?: string}, setup_future_usage?: null|string, target_date?: string, verification_method?: string}, affirm?: null|array{capture_method?: null|string, preferred_locale?: string, setup_future_usage?: string}, afterpay_clearpay?: null|array{capture_method?: null|string, reference?: string, setup_future_usage?: string}, alipay?: null|array{setup_future_usage?: null|string}, alma?: null|array{capture_method?: null|string}, amazon_pay?: null|array{capture_method?: null|string, setup_future_usage?: null|string}, au_becs_debit?: null|array{setup_future_usage?: null|string, target_date?: string}, bacs_debit?: null|array{mandate_options?: array{reference_prefix?: null|string}, setup_future_usage?: null|string, target_date?: string}, bancontact?: null|array{preferred_language?: string, setup_future_usage?: null|string}, billie?: null|array{capture_method?: null|string}, bizum?: null|array{}, blik?: null|array{code?: string, setup_future_usage?: null|string}, boleto?: null|array{expires_after_days?: int, setup_future_usage?: null|string}, card?: null|array{capture_by?: string, capture_delay?: array{days?: int, hours?: int}, capture_method?: null|string, cvc_token?: string, installments?: array{enabled?: bool, plan?: null|array{count?: int, interval?: string, type: string}}, mandate_options?: array{amount: int, amount_type: string, description?: string, end_date?: int, interval: string, interval_count?: int, reference: string, start_date: int, supported_types?: string[]}, moto?: bool, network?: string, payment_details?: array{money_services?: array{account_funding?: array{digital_asset_category?: string}}}, request_decremental_authorization?: string, request_extended_authorization?: string, request_incremental_authorization?: string, request_multicapture?: string, request_overcapture?: string, request_partial_authorization?: string, request_reauthorization?: string, request_three_d_secure?: string, require_cvc_recollection?: bool, setup_future_usage?: null|string, statement_descriptor_suffix_kana?: null|string, statement_descriptor_suffix_kanji?: null|string, statement_details?: null|array{address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, phone?: string}, three_d_secure?: array{ares_trans_status?: string, cryptogram: string, electronic_commerce_indicator?: string, exemption_indicator?: string, network_options?: array{cartes_bancaires?: array{cb_avalgo: string, cb_exemption?: string, cb_score?: int}}, requestor_challenge_indicator?: string, transaction_id: string, version: string}}, card_present?: null|array{capture_by?: string, capture_delay?: array{days?: int, hours?: int}, capture_method?: string, payment_details?: array{money_services?: array{account_funding?: array{digital_asset_category?: string}}}, request_extended_authorization?: bool, request_incremental_authorization_support?: bool, request_multicapture?: string, request_reauthorization?: string, routing?: array{requested_priority?: string}}, cashapp?: null|array{capture_method?: null|string, setup_future_usage?: null|string}, crypto?: null|array{deposit_options?: array{networks: string[], static_address?: bool}, mode?: string, setup_future_usage?: string, transaction_verification_options?: array{network: string, transaction_hash: string}}, customer_balance?: null|array{bank_transfer?: array{eu_bank_transfer?: array{country: string}, requested_address_types?: string[], type: string}, funding_type?: string, setup_future_usage?: string}, eps?: null|array{setup_future_usage?: string}, fpx?: null|array{setup_future_usage?: string}, gift_card?: null|array{ignore_application_fee?: string, ignore_transfer_data?: string, request_partial_authorization?: string}, giropay?: null|array{setup_future_usage?: string}, gopay?: null|array{setup_future_usage?: string}, grabpay?: null|array{setup_future_usage?: string}, id_bank_transfer?: null|array{expires_after?: int, expires_at?: int, setup_future_usage?: string}, ideal?: null|array{setup_future_usage?: null|string}, interac_present?: null|array{}, kakao_pay?: null|array{capture_method?: null|string, setup_future_usage?: null|string}, klarna?: null|array{capture_method?: null|string, on_demand?: array{average_amount?: int, maximum_amount?: int, minimum_amount?: int, purchase_interval?: string, purchase_interval_count?: int}, preferred_locale?: string, setup_future_usage?: string, subscriptions?: null|array{interval: string, interval_count?: int, name?: string, next_billing?: array{amount: int, date: string}, reference: string}[], supplementary_purchase_data?: null|array{bus_reservation_details?: null|array{affiliate_name?: string, arrival?: array{address?: array{city?: string, country?: string, postal_code?: string, region?: string, street_address?: string, street_address2?: string}, arrival_location?: string}, carrier_name?: string, currency?: string, departure?: array{address?: array{city?: string, country?: string, postal_code?: string, region?: string, street_address?: string, street_address2?: string}, departs_at?: int, departure_location?: string}, insurances?: array{currency?: string, insurance_company_name?: string, insurance_type?: string, price?: int}[], passengers?: array{family_name?: string, given_name?: string}[], price?: int, ticket_class?: string}[], event_reservation_details?: null|array{access_controlled_venue?: bool, address?: array{city?: string, country?: string, postal_code?: string, region?: string, street_address?: string, street_address2?: string}, affiliate_name?: string, ends_at?: int, event_company_name?: string, event_name?: string, event_type?: string, insurances?: array{currency?: string, insurance_company_name?: string, insurance_type?: string, price?: int}[], starts_at?: int, venue_name?: string}[], ferry_reservation_details?: null|array{affiliate_name?: string, arrival?: array{address?: array{city?: string, country?: string, postal_code?: string, region?: string, street_address?: string, street_address2?: string}, arrival_location?: string}, carrier_name?: string, currency?: string, departure?: array{address?: array{city?: string, country?: string, postal_code?: string, region?: string, street_address?: string, street_address2?: string}, departs_at?: int, departure_location?: string}, insurances?: array{currency?: string, insurance_company_name?: string, insurance_type?: string, price?: int}[], passengers?: array{family_name?: string, given_name?: string}[], price?: int, ticket_class?: string}[], insurances?: null|array{currency?: string, insurance_company_name?: string, insurance_type?: string, price?: int}[], marketplace_sellers?: null|array{line_item_references?: string[], marketplace_seller_address?: array{city?: string, country?: string, postal_code?: string, region?: string, street_address?: string, street_address2?: string}, marketplace_seller_name?: string, marketplace_seller_reference?: string, number_of_transactions?: int, product_category?: string, seller_last_login_at?: int, seller_rating?: string, seller_registered_at?: int, seller_updated_at?: int, shipping_references?: string[], volume_of_transactions?: int}[], round_trip_reservation_details?: null|array{affiliate_name?: string, arrival?: array{address?: array{city?: string, country?: string, postal_code?: string, region?: string, street_address?: string, street_address2?: string}, arrival_location?: string}, carrier_name?: string, currency?: string, departure?: array{address?: array{city?: string, country?: string, postal_code?: string, region?: string, street_address?: string, street_address2?: string}, departs_at?: int, departure_location?: string}, insurances?: array{currency?: string, insurance_company_name?: string, insurance_type?: string, price?: int}[], passengers?: array{family_name?: string, given_name?: string}[], price?: int, ticket_class?: string}[], train_reservation_details?: null|array{affiliate_name?: string, arrival?: array{address?: array{city?: string, country?: string, postal_code?: string, region?: string, street_address?: string, street_address2?: string}, arrival_location?: string}, carrier_name?: string, currency?: string, departure?: array{address?: array{city?: string, country?: string, postal_code?: string, region?: string, street_address?: string, street_address2?: string}, departs_at?: int, departure_location?: string}, insurances?: array{currency?: string, insurance_company_name?: string, insurance_type?: string, price?: int}[], passengers?: array{family_name?: string, given_name?: string}[], price?: int, ticket_class?: string}[], vouchers?: null|array{affiliate_name?: string, ends_at?: int, starts_at?: int, voucher_company?: string, voucher_name?: string, voucher_type?: string}[]}}, konbini?: null|array{confirmation_number?: null|string, expires_after_days?: null|int, expires_at?: null|int, product_description?: null|string, setup_future_usage?: string}, kr_card?: null|array{capture_method?: null|string, setup_future_usage?: null|string}, link?: null|array{capture_method?: null|string, persistent_token?: string, setup_future_usage?: null|string}, mb_way?: null|array{setup_future_usage?: string}, mobilepay?: null|array{capture_method?: null|string, setup_future_usage?: string}, multibanco?: null|array{setup_future_usage?: string}, naver_pay?: null|array{capture_method?: null|string, setup_future_usage?: null|string}, nz_bank_account?: null|array{setup_future_usage?: null|string, target_date?: string}, oxxo?: null|array{expires_after_days?: int, setup_future_usage?: string}, p24?: null|array{setup_future_usage?: string, tos_shown_and_accepted?: bool}, pay_by_bank?: null|array{}, payco?: null|array{capture_method?: null|string}, paynow?: null|array{setup_future_usage?: string}, paypal?: null|array{capture_method?: null|string, line_items?: array{category?: string, description?: string, name: string, quantity: int, sku?: string, sold_by?: string, tax?: array{amount: int, behavior: string}, unit_amount: int}[], preferred_locale?: string, reference?: string, reference_id?: string, risk_correlation_id?: string, setup_future_usage?: null|string, subsellers?: string[]}, paypay?: null|array{capture_method?: null|string}, payto?: null|array{mandate_options?: array{amount?: null|int, amount_type?: null|string, end_date?: null|string, payment_schedule?: null|string, payments_per_period?: null|int, purpose?: null|string}, setup_future_usage?: null|string}, pix?: null|array{amount_includes_iof?: string, expires_after_seconds?: int, expires_at?: int, mandate_options?: array{amount?: int, amount_includes_iof?: string, amount_type?: string, currency?: string, end_date?: string, payment_schedule?: string, reference?: string, start_date?: string}, setup_future_usage?: string}, promptpay?: null|array{setup_future_usage?: string}, qris?: null|array{setup_future_usage?: string}, rechnung?: null|array{}, revolut_pay?: null|array{capture_method?: null|string, setup_future_usage?: null|string}, samsung_pay?: null|array{capture_method?: null|string}, satispay?: null|array{capture_method?: null|string}, scalapay?: null|array{capture_method?: null|string}, sepa_debit?: null|array{mandate_options?: array{reference_prefix?: null|string}, setup_future_usage?: null|string, target_date?: string}, shopeepay?: null|array{setup_future_usage?: string}, sofort?: null|array{preferred_language?: null|string, setup_future_usage?: null|string}, stripe_balance?: null|array{mandate_options?: array{stripe_balance_debit_agreement?: string}, setup_future_usage?: null|string}, swish?: null|array{reference?: null|string, setup_future_usage?: string}, twint?: null|array{setup_future_usage?: string}, upi?: null|array{mandate_options?: array{amount?: int, amount_type?: string, description?: string, end_date?: int}, setup_future_usage?: null|string}, us_bank_account?: null|array{financial_connections?: array{filters?: array{account_subcategories?: string[], institution?: string}, manual_entry?: array{mode: string}, permissions?: string[], prefetch?: string[], return_url?: string}, mandate_options?: array{collection_method?: null|string}, networks?: array{requested?: string[]}, setup_future_usage?: null|string, target_date?: string, transaction_purpose?: null|string, verification_method?: string}, wechat_pay?: null|array{app_id?: string, buyer_id?: string, client?: string, setup_future_usage?: string}, zip?: null|array{setup_future_usage?: string}}, payment_method_types?: string[], payments_orchestration?: array{enabled: bool, payment_reference?: string}, radar_options?: array{session?: string}, receipt_email?: string, return_url?: string, secret_key_confirmation?: string, setup_future_usage?: string, shipping?: array{address: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, carrier?: string, name: string, phone?: string, tracking_number?: string}, statement_descriptor?: string, statement_descriptor_suffix?: string, transfer_data?: array{amount?: int, description?: string, destination: string, metadata?: null|array, payment_data?: array{description?: string, metadata?: null|array}}, transfer_group?: string, use_stripe_sdk?: bool} $params * @param null|array|string $options * * @return PaymentIntent the created resource @@ -197,7 +197,7 @@ public static function retrieve($id, $opts = null) * href="/docs/api/payment_intents/confirm">confirm API instead. * * @param string $id the ID of the resource to update - * @param null|array{allocated_funds?: array{enabled?: bool}, allowed_payment_method_types?: string[], amount?: int, amount_details?: null|array{discount_amount?: null|int, enforce_arithmetic_validation?: bool, line_items?: null|array{discount_amount?: int, payment_method_options?: array{card?: array{commodity_code?: string, fleet_data?: array{product_type: string, service_type?: string}}, card_present?: array{commodity_code?: string}, klarna?: array{image_url?: string, product_url?: string, reference?: string, subscription_reference?: string}, paypal?: array{category?: string, description?: string, sold_by?: string}}, product_code?: string, product_name: string, quantity: int, quantity_precision?: int, tax?: array{total_tax_amount: int}, unit_cost: int, unit_of_measure?: string}[], shipping?: null|array{amount?: null|int, from_postal_code?: null|string, to_postal_code?: null|string}, surcharge?: null|array{amount?: null|int, enforce_validation?: null|string}, tax?: null|array{total_tax_amount: int}}, application_fee_amount?: null|int, capture_method?: string, currency?: string, customer?: string, customer_account?: string, description?: string, excluded_payment_method_types?: null|string[], expand?: string[], fx_quote?: string, hooks?: array{inputs?: array{tax?: array{calculation: null|string}}}, mandate_data?: array{customer_acceptance: array{online: array{ip_address?: string, user_agent?: string}, type: string}}, metadata?: null|array, payment_details?: null|array{benefit?: array{fr_meal_voucher?: null|array{enabled?: string, siret?: string}}, car_rental?: array{affiliate?: array{name: string}, booking_number: string, car_class_code?: string, car_make?: string, car_model?: string, company?: string, customer_service_phone_number?: string, days_rented: int, delivery?: array{mode?: string, recipient?: array{email?: string, name?: string, phone?: string}}, distance?: array{amount?: int, unit?: string}, drivers?: array{driver_identification_number?: string, driver_tax_number?: string, name: string}[], extra_charges?: string[], no_show?: bool, pickup_address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, pickup_at: int, pickup_location_name?: string, rate_amount?: int, rate_interval?: string, renter_name?: string, return_address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, return_at: int, return_location_name?: string, tax_exempt?: bool, vehicle_identification_number?: string}, car_rental_data?: null|array{affiliate?: array{code?: string, name?: string}, booking_number?: string, carrier_name?: string, customer_service_phone_number?: string, days_rented?: int, distance?: array{amount: int, unit: string}, drivers?: array{date_of_birth?: array{day: int, month: int, year: int}, driver_identification_number?: string, driver_tax_number?: string, name: string}[], drop_off: array{address: array{city: string, country: string, line1: string, line2?: string, postal_code: string, state?: string}, location_name?: string, time: int}, insurances?: array{amount: int, currency?: string, insurance_company_name?: string, insurance_type: string}[], no_show_indicator?: bool, pickup: array{address: array{city: string, country: string, line1: string, line2?: string, postal_code: string, state?: string}, location_name?: string, time: int}, renter_name?: string, total: array{amount: int, currency?: string, discounts?: array{corporate_client_code?: string, coupon?: string, maximum_free_miles_or_kilometers?: int}, extra_charges?: array{amount: int, type: string}[], rate_per_unit?: int, rate_unit?: string, tax?: array{tax_exempt_indicator?: bool, taxes?: array{amount?: int, rate?: int, type?: string}[]}}, vehicle?: array{make?: string, model?: string, odometer?: int, type?: string, vehicle_class?: string, vehicle_identification_number?: string}}[], customer_reference?: null|string, event_details?: array{access_controlled_venue?: bool, address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, affiliate?: array{name: string}, company?: string, delivery?: array{mode?: string, recipient?: array{email?: string, name?: string, phone?: string}}, ends_at?: int, genre?: string, name: string, starts_at?: int}, fleet_data?: null|array{primary_fuel_fields?: array{brand?: string}, station?: array{additional_contact_info?: string, customer_service_phone_number?: string, partner_id_code?: string, phone_number?: string, service_location?: array{city?: string, country?: string, line1: string, line2?: string, postal_code?: string, state?: string}, url?: string}, vat?: array{iob_indicator: string}}[], flight?: array{affiliate?: array{name: string}, agency_number?: string, carrier?: string, delivery?: array{mode?: string, recipient?: array{email?: string, name?: string, phone?: string}}, passenger_name?: string, passengers?: array{name: string}[], segments: array{amount?: int, arrival_airport?: string, arrives_at?: int, carrier?: string, departs_at: int, departure_airport?: string, flight_number?: string, service_class?: string}[], ticket_number?: string}, flight_data?: null|array{affiliate?: array{code?: string, name?: string, travel_authorization_code?: string}, booking_number?: string, computerized_reservation_system?: string, endorsements_and_restrictions?: string, insurances?: array{amount: int, currency?: string, insurance_company_name?: string, insurance_type: string}[], passengers?: array{name: string}[], segments: array{amount?: int, arrival: array{airport: string, arrives_at?: int, city?: string, country?: string}, carrier_code: string, carrier_name?: string, currency?: string, departure: array{airport: string, city?: string, country?: string, departs_at: int}, exchange_ticket_number?: string, fare_basis_code?: string, fees?: int, flight_number?: string, is_stop_over_indicator?: bool, refundable?: bool, service_class: string, tax_amount?: int, ticket_number?: string}[], ticket_electronically_issued_indicator?: bool, total: array{amount: int, credit_reason?: string, currency?: string, discounts?: array{corporate_client_code?: string}, extra_charges?: array{amount?: int, type?: string}[], tax?: array{taxes?: array{amount?: int, rate?: int, type?: string}[]}}, transaction_type?: string}[], location?: string, lodging?: array{address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, adults?: int, affiliate?: array{name: string}, booking_number?: string, category?: string, checkin_at: int, checkout_at: int, customer_service_phone_number?: string, daily_room_rate_amount?: int, delivery?: array{mode?: string, recipient?: array{email?: string, name?: string, phone?: string}}, extra_charges?: string[], fire_safety_act_compliance?: bool, name?: string, no_show?: bool, number_of_rooms?: int, passengers?: array{name: string}[], property_phone_number?: string, room_class?: string, room_nights?: int, total_room_tax_amount?: int, total_tax_amount?: int}, lodging_data?: null|array{accommodation?: array{accommodation_type?: string, bed_type?: string, daily_rate_amount?: int, nights?: int, number_of_rooms?: int, rate_type?: string, smoking_indicator?: bool}, affiliate?: array{code?: string, name?: string}, booking_number?: string, checkin_at: int, checkout_at: int, customer_service_phone_number?: string, fire_safety_act_compliance_indicator?: bool, guests?: array{name: string}[], host?: array{address?: array{city: string, country: string, line1: string, line2?: string, postal_code: string, state?: string}, country_of_domicile?: string, host_reference?: string, host_type?: string, name?: string, number_of_reservations?: int, property_phone_number?: string, registered_at?: int}, insurances?: array{amount: int, currency?: string, insurance_company_name?: string, insurance_type: string}[], no_show_indicator?: bool, renter_id_number?: string, renter_name?: string, total: array{amount: int, cash_advances?: int, currency?: string, discounts?: array{corporate_client_code?: string, coupon?: string}, extra_charges?: array{amount?: int, type?: string}[], prepaid_amount?: int, tax?: array{tax_exempt_indicator?: bool, taxes?: array{amount?: int, rate?: int, type?: string}[]}}}[], money_services?: null|array{account_funding?: null|array{sender_details?: null|array{address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, date_of_birth?: array{day: int, month: int, year: int}, email?: string, given_name?: string, phone?: string, surname?: string}}, beneficiary_details?: null|array{account_reference?: string, address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, date_of_birth?: array{day: int, month: int, year: int}, email?: string, given_name?: string, phone?: string, surname?: string}, transaction_type?: null|string}, order_reference?: null|string, subscription?: array{affiliate?: array{name: string}, auto_renewal?: bool, billing_interval?: array{count: int, interval: string}, ends_at?: int, name: string, starts_at?: int}}, payment_method?: string, payment_method_configuration?: string, payment_method_data?: array{acss_debit?: array{account_number: string, institution_number: string, transit_number: string}, affirm?: array{}, afterpay_clearpay?: array{}, alipay?: array{}, allow_redisplay?: string, alma?: array{}, amazon_pay?: array{}, au_becs_debit?: array{account_number: string, bsb_number: string}, bacs_debit?: array{account_number?: string, sort_code?: string}, bancontact?: array{}, billie?: array{}, billing_details?: array{address?: null|array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, email?: null|string, name?: null|string, phone?: null|string, tax_id?: string}, bizum?: array{}, blik?: array{}, boleto?: array{tax_id: string}, cashapp?: array{}, crypto?: array{}, customer_balance?: array{}, eps?: array{bank?: string}, fpx?: array{account_holder_type?: string, bank: string}, gift_card?: array{gift_card: string}, giropay?: array{}, gopay?: array{}, grabpay?: array{}, id_bank_transfer?: array{bank?: string}, ideal?: array{bank?: string}, interac_present?: array{}, kakao_pay?: array{}, klarna?: array{dob?: array{day: int, month: int, year: int}}, konbini?: array{}, kr_card?: array{}, link?: array{}, mb_way?: array{}, metadata?: array, mobilepay?: array{}, multibanco?: array{}, naver_pay?: array{funding?: string}, nz_bank_account?: array{account_holder_name?: string, account_number: string, bank_code: string, branch_code: string, reference?: string, suffix: string}, oxxo?: array{}, p24?: array{bank?: string}, pay_by_bank?: array{}, payco?: array{}, paynow?: array{}, paypal?: array{}, paypay?: array{}, payto?: array{account_number?: string, bsb_number?: string, pay_id?: string}, pix?: array{}, promptpay?: array{}, qris?: array{}, radar_options?: array{session?: string}, rechnung?: array{dob: array{day: int, month: int, year: int}}, revolut_pay?: array{}, samsung_pay?: array{}, satispay?: array{}, scalapay?: array{}, sepa_debit?: array{iban: string}, shared_payment_granted_token?: string, shopeepay?: array{}, sofort?: array{country: string}, stripe_balance?: array{account?: string}, sunbit?: array{}, swish?: array{}, tamara?: array{}, twint?: array{}, type: string, upi?: array{mandate_options?: array{amount?: int, amount_type?: string, description?: string, end_date?: int}}, us_bank_account?: array{account_holder_type?: string, account_number?: string, account_type?: string, financial_connections_account?: string, routing_number?: string}, wechat_pay?: array{}, zip?: array{}}, payment_method_options?: array{acss_debit?: null|array{mandate_options?: array{custom_mandate_url?: null|string, interval_description?: string, payment_schedule?: string, transaction_type?: string}, setup_future_usage?: null|string, target_date?: string, verification_method?: string}, affirm?: null|array{capture_method?: null|string, preferred_locale?: string, setup_future_usage?: string}, afterpay_clearpay?: null|array{capture_method?: null|string, reference?: string, setup_future_usage?: string}, alipay?: null|array{setup_future_usage?: null|string}, alma?: null|array{capture_method?: null|string}, amazon_pay?: null|array{capture_method?: null|string, setup_future_usage?: null|string}, au_becs_debit?: null|array{setup_future_usage?: null|string, target_date?: string}, bacs_debit?: null|array{mandate_options?: array{reference_prefix?: null|string}, setup_future_usage?: null|string, target_date?: string}, bancontact?: null|array{preferred_language?: string, setup_future_usage?: null|string}, billie?: null|array{capture_method?: null|string}, bizum?: null|array{}, blik?: null|array{code?: string, setup_future_usage?: null|string}, boleto?: null|array{expires_after_days?: int, setup_future_usage?: null|string}, card?: null|array{capture_by?: string, capture_delay?: array{days?: int, hours?: int}, capture_method?: null|string, cvc_token?: string, installments?: array{enabled?: bool, plan?: null|array{count?: int, interval?: string, type: string}}, mandate_options?: array{amount: int, amount_type: string, description?: string, end_date?: int, interval: string, interval_count?: int, reference: string, start_date: int, supported_types?: string[]}, moto?: bool, network?: string, payment_details?: array{money_services?: array{account_funding?: array{digital_asset_category?: string}}}, request_decremental_authorization?: string, request_extended_authorization?: string, request_incremental_authorization?: string, request_multicapture?: string, request_overcapture?: string, request_partial_authorization?: string, request_reauthorization?: string, request_three_d_secure?: string, require_cvc_recollection?: bool, setup_future_usage?: null|string, statement_descriptor_suffix_kana?: null|string, statement_descriptor_suffix_kanji?: null|string, statement_details?: null|array{address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, phone?: string}, three_d_secure?: array{ares_trans_status?: string, cryptogram: string, electronic_commerce_indicator?: string, exemption_indicator?: string, network_options?: array{cartes_bancaires?: array{cb_avalgo: string, cb_exemption?: string, cb_score?: int}}, requestor_challenge_indicator?: string, transaction_id: string, version: string}}, card_present?: null|array{capture_by?: string, capture_delay?: array{days?: int, hours?: int}, capture_method?: string, payment_details?: array{money_services?: array{account_funding?: array{digital_asset_category?: string}}}, request_extended_authorization?: bool, request_incremental_authorization_support?: bool, request_multicapture?: string, request_reauthorization?: string, routing?: array{requested_priority?: string}}, cashapp?: null|array{capture_method?: null|string, setup_future_usage?: null|string}, crypto?: null|array{deposit_options?: array{networks: string[], static_address?: bool}, mode?: string, setup_future_usage?: string, transaction_verification_options?: array{network: string, transaction_hash: string}}, customer_balance?: null|array{bank_transfer?: array{eu_bank_transfer?: array{country: string}, requested_address_types?: string[], type: string}, funding_type?: string, setup_future_usage?: string}, eps?: null|array{setup_future_usage?: string}, fpx?: null|array{setup_future_usage?: string}, gift_card?: null|array{ignore_application_fee?: string, ignore_transfer_data?: string, request_partial_authorization?: string}, giropay?: null|array{setup_future_usage?: string}, gopay?: null|array{setup_future_usage?: string}, grabpay?: null|array{setup_future_usage?: string}, id_bank_transfer?: null|array{expires_after?: int, expires_at?: int, setup_future_usage?: string}, ideal?: null|array{setup_future_usage?: null|string}, interac_present?: null|array{}, kakao_pay?: null|array{capture_method?: null|string, setup_future_usage?: null|string}, klarna?: null|array{capture_method?: null|string, on_demand?: array{average_amount?: int, maximum_amount?: int, minimum_amount?: int, purchase_interval?: string, purchase_interval_count?: int}, preferred_locale?: string, setup_future_usage?: string, subscriptions?: null|array{interval: string, interval_count?: int, name?: string, next_billing?: array{amount: int, date: string}, reference: string}[], supplementary_purchase_data?: null|array{bus_reservation_details?: null|array{affiliate_name?: string, arrival?: array{address?: array{city?: string, country?: string, postal_code?: string, region?: string, street_address?: string, street_address2?: string}, arrival_location?: string}, carrier_name?: string, currency?: string, departure?: array{address?: array{city?: string, country?: string, postal_code?: string, region?: string, street_address?: string, street_address2?: string}, departs_at?: int, departure_location?: string}, insurances?: array{currency?: string, insurance_company_name?: string, insurance_type?: string, price?: int}[], passengers?: array{family_name?: string, given_name?: string}[], price?: int, ticket_class?: string}[], event_reservation_details?: null|array{access_controlled_venue?: bool, address?: array{city?: string, country?: string, postal_code?: string, region?: string, street_address?: string, street_address2?: string}, affiliate_name?: string, ends_at?: int, event_company_name?: string, event_name?: string, event_type?: string, insurances?: array{currency?: string, insurance_company_name?: string, insurance_type?: string, price?: int}[], starts_at?: int, venue_name?: string}[], ferry_reservation_details?: null|array{affiliate_name?: string, arrival?: array{address?: array{city?: string, country?: string, postal_code?: string, region?: string, street_address?: string, street_address2?: string}, arrival_location?: string}, carrier_name?: string, currency?: string, departure?: array{address?: array{city?: string, country?: string, postal_code?: string, region?: string, street_address?: string, street_address2?: string}, departs_at?: int, departure_location?: string}, insurances?: array{currency?: string, insurance_company_name?: string, insurance_type?: string, price?: int}[], passengers?: array{family_name?: string, given_name?: string}[], price?: int, ticket_class?: string}[], insurances?: null|array{currency?: string, insurance_company_name?: string, insurance_type?: string, price?: int}[], marketplace_sellers?: null|array{line_item_references?: string[], marketplace_seller_address?: array{city?: string, country?: string, postal_code?: string, region?: string, street_address?: string, street_address2?: string}, marketplace_seller_name?: string, marketplace_seller_reference?: string, number_of_transactions?: int, product_category?: string, seller_last_login_at?: int, seller_rating?: string, seller_registered_at?: int, seller_updated_at?: int, shipping_references?: string[], volume_of_transactions?: int}[], round_trip_reservation_details?: null|array{affiliate_name?: string, arrival?: array{address?: array{city?: string, country?: string, postal_code?: string, region?: string, street_address?: string, street_address2?: string}, arrival_location?: string}, carrier_name?: string, currency?: string, departure?: array{address?: array{city?: string, country?: string, postal_code?: string, region?: string, street_address?: string, street_address2?: string}, departs_at?: int, departure_location?: string}, insurances?: array{currency?: string, insurance_company_name?: string, insurance_type?: string, price?: int}[], passengers?: array{family_name?: string, given_name?: string}[], price?: int, ticket_class?: string}[], train_reservation_details?: null|array{affiliate_name?: string, arrival?: array{address?: array{city?: string, country?: string, postal_code?: string, region?: string, street_address?: string, street_address2?: string}, arrival_location?: string}, carrier_name?: string, currency?: string, departure?: array{address?: array{city?: string, country?: string, postal_code?: string, region?: string, street_address?: string, street_address2?: string}, departs_at?: int, departure_location?: string}, insurances?: array{currency?: string, insurance_company_name?: string, insurance_type?: string, price?: int}[], passengers?: array{family_name?: string, given_name?: string}[], price?: int, ticket_class?: string}[], vouchers?: null|array{affiliate_name?: string, ends_at?: int, starts_at?: int, voucher_company?: string, voucher_name?: string, voucher_type?: string}[]}}, konbini?: null|array{confirmation_number?: null|string, expires_after_days?: null|int, expires_at?: null|int, product_description?: null|string, setup_future_usage?: string}, kr_card?: null|array{capture_method?: null|string, setup_future_usage?: null|string}, link?: null|array{capture_method?: null|string, persistent_token?: string, setup_future_usage?: null|string}, mb_way?: null|array{setup_future_usage?: string}, mobilepay?: null|array{capture_method?: null|string, setup_future_usage?: string}, multibanco?: null|array{setup_future_usage?: string}, naver_pay?: null|array{capture_method?: null|string, setup_future_usage?: null|string}, nz_bank_account?: null|array{setup_future_usage?: null|string, target_date?: string}, oxxo?: null|array{expires_after_days?: int, setup_future_usage?: string}, p24?: null|array{setup_future_usage?: string, tos_shown_and_accepted?: bool}, pay_by_bank?: null|array{}, payco?: null|array{capture_method?: null|string}, paynow?: null|array{setup_future_usage?: string}, paypal?: null|array{capture_method?: null|string, line_items?: array{category?: string, description?: string, name: string, quantity: int, sku?: string, sold_by?: string, tax?: array{amount: int, behavior: string}, unit_amount: int}[], preferred_locale?: string, reference?: string, reference_id?: string, risk_correlation_id?: string, setup_future_usage?: null|string, subsellers?: string[]}, paypay?: null|array{capture_method?: null|string}, payto?: null|array{mandate_options?: array{amount?: null|int, amount_type?: null|string, end_date?: null|string, payment_schedule?: null|string, payments_per_period?: null|int, purpose?: null|string}, setup_future_usage?: null|string}, pix?: null|array{amount_includes_iof?: string, expires_after_seconds?: int, expires_at?: int, mandate_options?: array{amount?: int, amount_includes_iof?: string, amount_type?: string, currency?: string, end_date?: string, payment_schedule?: string, reference?: string, start_date?: string}, setup_future_usage?: string}, promptpay?: null|array{setup_future_usage?: string}, qris?: null|array{setup_future_usage?: string}, rechnung?: null|array{}, revolut_pay?: null|array{capture_method?: null|string, setup_future_usage?: null|string}, samsung_pay?: null|array{capture_method?: null|string}, satispay?: null|array{capture_method?: null|string}, scalapay?: null|array{capture_method?: null|string}, sepa_debit?: null|array{mandate_options?: array{reference_prefix?: null|string}, setup_future_usage?: null|string, target_date?: string}, shopeepay?: null|array{setup_future_usage?: string}, sofort?: null|array{preferred_language?: null|string, setup_future_usage?: null|string}, stripe_balance?: null|array{mandate_options?: array{stripe_balance_debit_agreement?: string}, setup_future_usage?: null|string}, swish?: null|array{reference?: null|string, setup_future_usage?: string}, twint?: null|array{setup_future_usage?: string}, upi?: null|array{mandate_options?: array{amount?: int, amount_type?: string, description?: string, end_date?: int}, setup_future_usage?: null|string}, us_bank_account?: null|array{financial_connections?: array{filters?: array{account_subcategories?: string[], institution?: string}, manual_entry?: array{mode: string}, permissions?: string[], prefetch?: string[], return_url?: string}, mandate_options?: array{collection_method?: null|string}, networks?: array{requested?: string[]}, setup_future_usage?: null|string, target_date?: string, transaction_purpose?: null|string, verification_method?: string}, wechat_pay?: null|array{app_id?: string, buyer_id?: string, client?: string, setup_future_usage?: string}, zip?: null|array{setup_future_usage?: string}}, payment_method_types?: string[], receipt_email?: null|string, setup_future_usage?: null|string, shipping?: null|array{address: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, carrier?: string, name: string, phone?: string, tracking_number?: string}, statement_descriptor?: string, statement_descriptor_suffix?: string, transfer_data?: array{amount?: int, description?: string, metadata?: null|array, payment_data?: array{description?: string, metadata?: null|array}}, transfer_group?: string} $params + * @param null|array{allocated_funds?: array{enabled?: bool}, allowed_payment_method_types?: string[], amount?: int, amount_details?: null|array{discount_amount?: null|int, enforce_arithmetic_validation?: bool, line_items?: null|array{discount_amount?: int, payment_method_options?: array{card?: array{commodity_code?: string, fleet_data?: array{product_type: string, service_type?: string}}, card_present?: array{commodity_code?: string}, klarna?: array{image_url?: string, product_url?: string, reference?: string, subscription_reference?: string}, paypal?: array{category?: string, description?: string, sold_by?: string}}, product_code?: string, product_name: string, quantity: int, quantity_precision?: int, tax?: array{total_tax_amount: int}, unit_cost: int, unit_of_measure?: string}[], shipping?: null|array{amount?: null|int, from_postal_code?: null|string, to_postal_code?: null|string}, surcharge?: null|array{amount?: null|int, enforce_validation?: null|string}, tax?: null|array{total_tax_amount: int}, tip?: null|array{amount?: null|int}}, application_fee_amount?: null|int, capture_method?: string, currency?: string, customer?: string, customer_account?: string, description?: string, excluded_payment_method_types?: null|string[], expand?: string[], fx_quote?: string, hooks?: array{inputs?: array{tax?: array{calculation: null|string}}}, mandate_data?: array{customer_acceptance: array{online: array{ip_address?: string, user_agent?: string}, type: string}}, metadata?: null|array, payment_details?: null|array{benefit?: array{fr_meal_voucher?: null|array{enabled?: string, siret?: string}}, car_rental?: array{affiliate?: array{name: string}, booking_number: string, car_class_code?: string, car_make?: string, car_model?: string, company?: string, customer_service_phone_number?: string, days_rented: int, delivery?: array{mode?: string, recipient?: array{email?: string, name?: string, phone?: string}}, distance?: array{amount?: int, unit?: string}, drivers?: array{driver_identification_number?: string, driver_tax_number?: string, name: string}[], extra_charges?: string[], no_show?: bool, pickup_address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, pickup_at: int, pickup_location_name?: string, rate_amount?: int, rate_interval?: string, renter_name?: string, return_address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, return_at: int, return_location_name?: string, tax_exempt?: bool, vehicle_identification_number?: string}, car_rental_data?: null|array{affiliate?: array{code?: string, name?: string}, booking_number?: string, carrier_name?: string, customer_service_phone_number?: string, days_rented?: int, distance?: array{amount: int, unit: string}, drivers?: array{date_of_birth?: array{day: int, month: int, year: int}, driver_identification_number?: string, driver_tax_number?: string, name: string}[], drop_off: array{address: array{city: string, country: string, line1: string, line2?: string, postal_code: string, state?: string}, location_name?: string, time: int}, insurances?: array{amount: int, currency?: string, insurance_company_name?: string, insurance_type: string}[], no_show_indicator?: bool, pickup: array{address: array{city: string, country: string, line1: string, line2?: string, postal_code: string, state?: string}, location_name?: string, time: int}, renter_name?: string, total: array{amount: int, currency?: string, discounts?: array{corporate_client_code?: string, coupon?: string, maximum_free_miles_or_kilometers?: int}, extra_charges?: array{amount: int, type: string}[], rate_per_unit?: int, rate_unit?: string, tax?: array{tax_exempt_indicator?: bool, taxes?: array{amount?: int, rate?: int, type?: string}[]}}, vehicle?: array{make?: string, model?: string, odometer?: int, type?: string, vehicle_class?: string, vehicle_identification_number?: string}}[], customer_reference?: null|string, event_details?: array{access_controlled_venue?: bool, address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, affiliate?: array{name: string}, company?: string, delivery?: array{mode?: string, recipient?: array{email?: string, name?: string, phone?: string}}, ends_at?: int, genre?: string, name: string, starts_at?: int}, fleet_data?: null|array{primary_fuel_fields?: array{brand?: string}, station?: array{additional_contact_info?: string, customer_service_phone_number?: string, partner_id_code?: string, phone_number?: string, service_location?: array{city?: string, country?: string, line1: string, line2?: string, postal_code?: string, state?: string}, url?: string}, vat?: array{iob_indicator: string}}[], flight?: array{affiliate?: array{name: string}, agency_number?: string, carrier?: string, delivery?: array{mode?: string, recipient?: array{email?: string, name?: string, phone?: string}}, passenger_name?: string, passengers?: array{name: string}[], segments: array{amount?: int, arrival_airport?: string, arrives_at?: int, carrier?: string, departs_at: int, departure_airport?: string, flight_number?: string, service_class?: string}[], ticket_number?: string}, flight_data?: null|array{affiliate?: array{code?: string, name?: string, travel_authorization_code?: string}, booking_number?: string, computerized_reservation_system?: string, endorsements_and_restrictions?: string, insurances?: array{amount: int, currency?: string, insurance_company_name?: string, insurance_type: string}[], passengers?: array{name: string}[], segments: array{amount?: int, arrival: array{airport: string, arrives_at?: int, city?: string, country?: string}, carrier_code: string, carrier_name?: string, currency?: string, departure: array{airport: string, city?: string, country?: string, departs_at: int}, exchange_ticket_number?: string, fare_basis_code?: string, fees?: int, flight_number?: string, is_stop_over_indicator?: bool, refundable?: bool, service_class: string, tax_amount?: int, ticket_number?: string}[], ticket_electronically_issued_indicator?: bool, total: array{amount: int, credit_reason?: string, currency?: string, discounts?: array{corporate_client_code?: string}, extra_charges?: array{amount?: int, type?: string}[], tax?: array{taxes?: array{amount?: int, rate?: int, type?: string}[]}}, transaction_type?: string}[], location?: string, lodging?: array{address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, adults?: int, affiliate?: array{name: string}, booking_number?: string, category?: string, checkin_at: int, checkout_at: int, customer_service_phone_number?: string, daily_room_rate_amount?: int, delivery?: array{mode?: string, recipient?: array{email?: string, name?: string, phone?: string}}, extra_charges?: string[], fire_safety_act_compliance?: bool, name?: string, no_show?: bool, number_of_rooms?: int, passengers?: array{name: string}[], property_phone_number?: string, room_class?: string, room_nights?: int, total_room_tax_amount?: int, total_tax_amount?: int}, lodging_data?: null|array{accommodation?: array{accommodation_type?: string, bed_type?: string, daily_rate_amount?: int, nights?: int, number_of_rooms?: int, rate_type?: string, smoking_indicator?: bool}, affiliate?: array{code?: string, name?: string}, booking_number?: string, checkin_at: int, checkout_at: int, customer_service_phone_number?: string, fire_safety_act_compliance_indicator?: bool, guests?: array{name: string}[], host?: array{address?: array{city: string, country: string, line1: string, line2?: string, postal_code: string, state?: string}, country_of_domicile?: string, host_reference?: string, host_type?: string, name?: string, number_of_reservations?: int, property_phone_number?: string, registered_at?: int}, insurances?: array{amount: int, currency?: string, insurance_company_name?: string, insurance_type: string}[], no_show_indicator?: bool, renter_id_number?: string, renter_name?: string, total: array{amount: int, cash_advances?: int, currency?: string, discounts?: array{corporate_client_code?: string, coupon?: string}, extra_charges?: array{amount?: int, type?: string}[], prepaid_amount?: int, tax?: array{tax_exempt_indicator?: bool, taxes?: array{amount?: int, rate?: int, type?: string}[]}}}[], money_services?: null|array{account_funding?: null|array{sender_details?: null|array{address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, date_of_birth?: array{day: int, month: int, year: int}, email?: string, given_name?: string, phone?: string, surname?: string}}, beneficiary_details?: null|array{account_reference?: string, address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, date_of_birth?: array{day: int, month: int, year: int}, email?: string, given_name?: string, phone?: string, surname?: string}, transaction_type?: null|string}, order_reference?: null|string, subscription?: array{affiliate?: array{name: string}, auto_renewal?: bool, billing_interval?: array{count: int, interval: string}, ends_at?: int, name: string, starts_at?: int}}, payment_method?: string, payment_method_configuration?: string, payment_method_data?: array{acss_debit?: array{account_number: string, institution_number: string, transit_number: string}, affirm?: array{}, afterpay_clearpay?: array{}, alipay?: array{}, allow_redisplay?: string, alma?: array{}, amazon_pay?: array{}, au_becs_debit?: array{account_number: string, bsb_number: string}, bacs_debit?: array{account_number?: string, sort_code?: string}, bancontact?: array{}, billie?: array{}, billing_details?: array{address?: null|array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, email?: null|string, name?: null|string, phone?: null|string, tax_id?: string}, bizum?: array{}, blik?: array{}, boleto?: array{tax_id: string}, cashapp?: array{}, crypto?: array{}, customer_balance?: array{}, eps?: array{bank?: string}, fpx?: array{account_holder_type?: string, bank: string}, gift_card?: array{gift_card: string}, giropay?: array{}, gopay?: array{}, grabpay?: array{}, id_bank_transfer?: array{bank?: string}, ideal?: array{bank?: string}, interac_present?: array{}, kakao_pay?: array{}, klarna?: array{dob?: array{day: int, month: int, year: int}}, konbini?: array{}, kr_card?: array{}, link?: array{}, mb_way?: array{}, metadata?: array, mobilepay?: array{}, multibanco?: array{}, naver_pay?: array{funding?: string}, nz_bank_account?: array{account_holder_name?: string, account_number: string, bank_code: string, branch_code: string, reference?: string, suffix: string}, oxxo?: array{}, p24?: array{bank?: string}, pay_by_bank?: array{}, payco?: array{}, paynow?: array{}, paypal?: array{}, paypay?: array{}, payto?: array{account_number?: string, bsb_number?: string, pay_id?: string}, pix?: array{}, promptpay?: array{}, qris?: array{}, radar_options?: array{session?: string}, rechnung?: array{dob: array{day: int, month: int, year: int}}, revolut_pay?: array{}, samsung_pay?: array{}, satispay?: array{}, scalapay?: array{}, sepa_debit?: array{iban: string}, shared_payment_granted_token?: string, shopeepay?: array{}, sofort?: array{country: string}, stripe_balance?: array{account?: string}, sunbit?: array{}, swish?: array{}, tamara?: array{}, twint?: array{}, type: string, upi?: array{mandate_options?: array{amount?: int, amount_type?: string, description?: string, end_date?: int}}, us_bank_account?: array{account_holder_type?: string, account_number?: string, account_type?: string, financial_connections_account?: string, routing_number?: string}, wechat_pay?: array{}, zip?: array{}}, payment_method_options?: array{acss_debit?: null|array{mandate_options?: array{custom_mandate_url?: null|string, interval_description?: string, payment_schedule?: string, transaction_type?: string}, setup_future_usage?: null|string, target_date?: string, verification_method?: string}, affirm?: null|array{capture_method?: null|string, preferred_locale?: string, setup_future_usage?: string}, afterpay_clearpay?: null|array{capture_method?: null|string, reference?: string, setup_future_usage?: string}, alipay?: null|array{setup_future_usage?: null|string}, alma?: null|array{capture_method?: null|string}, amazon_pay?: null|array{capture_method?: null|string, setup_future_usage?: null|string}, au_becs_debit?: null|array{setup_future_usage?: null|string, target_date?: string}, bacs_debit?: null|array{mandate_options?: array{reference_prefix?: null|string}, setup_future_usage?: null|string, target_date?: string}, bancontact?: null|array{preferred_language?: string, setup_future_usage?: null|string}, billie?: null|array{capture_method?: null|string}, bizum?: null|array{}, blik?: null|array{code?: string, setup_future_usage?: null|string}, boleto?: null|array{expires_after_days?: int, setup_future_usage?: null|string}, card?: null|array{capture_by?: string, capture_delay?: array{days?: int, hours?: int}, capture_method?: null|string, cvc_token?: string, installments?: array{enabled?: bool, plan?: null|array{count?: int, interval?: string, type: string}}, mandate_options?: array{amount: int, amount_type: string, description?: string, end_date?: int, interval: string, interval_count?: int, reference: string, start_date: int, supported_types?: string[]}, moto?: bool, network?: string, payment_details?: array{money_services?: array{account_funding?: array{digital_asset_category?: string}}}, request_decremental_authorization?: string, request_extended_authorization?: string, request_incremental_authorization?: string, request_multicapture?: string, request_overcapture?: string, request_partial_authorization?: string, request_reauthorization?: string, request_three_d_secure?: string, require_cvc_recollection?: bool, setup_future_usage?: null|string, statement_descriptor_suffix_kana?: null|string, statement_descriptor_suffix_kanji?: null|string, statement_details?: null|array{address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, phone?: string}, three_d_secure?: array{ares_trans_status?: string, cryptogram: string, electronic_commerce_indicator?: string, exemption_indicator?: string, network_options?: array{cartes_bancaires?: array{cb_avalgo: string, cb_exemption?: string, cb_score?: int}}, requestor_challenge_indicator?: string, transaction_id: string, version: string}}, card_present?: null|array{capture_by?: string, capture_delay?: array{days?: int, hours?: int}, capture_method?: string, payment_details?: array{money_services?: array{account_funding?: array{digital_asset_category?: string}}}, request_extended_authorization?: bool, request_incremental_authorization_support?: bool, request_multicapture?: string, request_reauthorization?: string, routing?: array{requested_priority?: string}}, cashapp?: null|array{capture_method?: null|string, setup_future_usage?: null|string}, crypto?: null|array{deposit_options?: array{networks: string[], static_address?: bool}, mode?: string, setup_future_usage?: string, transaction_verification_options?: array{network: string, transaction_hash: string}}, customer_balance?: null|array{bank_transfer?: array{eu_bank_transfer?: array{country: string}, requested_address_types?: string[], type: string}, funding_type?: string, setup_future_usage?: string}, eps?: null|array{setup_future_usage?: string}, fpx?: null|array{setup_future_usage?: string}, gift_card?: null|array{ignore_application_fee?: string, ignore_transfer_data?: string, request_partial_authorization?: string}, giropay?: null|array{setup_future_usage?: string}, gopay?: null|array{setup_future_usage?: string}, grabpay?: null|array{setup_future_usage?: string}, id_bank_transfer?: null|array{expires_after?: int, expires_at?: int, setup_future_usage?: string}, ideal?: null|array{setup_future_usage?: null|string}, interac_present?: null|array{}, kakao_pay?: null|array{capture_method?: null|string, setup_future_usage?: null|string}, klarna?: null|array{capture_method?: null|string, on_demand?: array{average_amount?: int, maximum_amount?: int, minimum_amount?: int, purchase_interval?: string, purchase_interval_count?: int}, preferred_locale?: string, setup_future_usage?: string, subscriptions?: null|array{interval: string, interval_count?: int, name?: string, next_billing?: array{amount: int, date: string}, reference: string}[], supplementary_purchase_data?: null|array{bus_reservation_details?: null|array{affiliate_name?: string, arrival?: array{address?: array{city?: string, country?: string, postal_code?: string, region?: string, street_address?: string, street_address2?: string}, arrival_location?: string}, carrier_name?: string, currency?: string, departure?: array{address?: array{city?: string, country?: string, postal_code?: string, region?: string, street_address?: string, street_address2?: string}, departs_at?: int, departure_location?: string}, insurances?: array{currency?: string, insurance_company_name?: string, insurance_type?: string, price?: int}[], passengers?: array{family_name?: string, given_name?: string}[], price?: int, ticket_class?: string}[], event_reservation_details?: null|array{access_controlled_venue?: bool, address?: array{city?: string, country?: string, postal_code?: string, region?: string, street_address?: string, street_address2?: string}, affiliate_name?: string, ends_at?: int, event_company_name?: string, event_name?: string, event_type?: string, insurances?: array{currency?: string, insurance_company_name?: string, insurance_type?: string, price?: int}[], starts_at?: int, venue_name?: string}[], ferry_reservation_details?: null|array{affiliate_name?: string, arrival?: array{address?: array{city?: string, country?: string, postal_code?: string, region?: string, street_address?: string, street_address2?: string}, arrival_location?: string}, carrier_name?: string, currency?: string, departure?: array{address?: array{city?: string, country?: string, postal_code?: string, region?: string, street_address?: string, street_address2?: string}, departs_at?: int, departure_location?: string}, insurances?: array{currency?: string, insurance_company_name?: string, insurance_type?: string, price?: int}[], passengers?: array{family_name?: string, given_name?: string}[], price?: int, ticket_class?: string}[], insurances?: null|array{currency?: string, insurance_company_name?: string, insurance_type?: string, price?: int}[], marketplace_sellers?: null|array{line_item_references?: string[], marketplace_seller_address?: array{city?: string, country?: string, postal_code?: string, region?: string, street_address?: string, street_address2?: string}, marketplace_seller_name?: string, marketplace_seller_reference?: string, number_of_transactions?: int, product_category?: string, seller_last_login_at?: int, seller_rating?: string, seller_registered_at?: int, seller_updated_at?: int, shipping_references?: string[], volume_of_transactions?: int}[], round_trip_reservation_details?: null|array{affiliate_name?: string, arrival?: array{address?: array{city?: string, country?: string, postal_code?: string, region?: string, street_address?: string, street_address2?: string}, arrival_location?: string}, carrier_name?: string, currency?: string, departure?: array{address?: array{city?: string, country?: string, postal_code?: string, region?: string, street_address?: string, street_address2?: string}, departs_at?: int, departure_location?: string}, insurances?: array{currency?: string, insurance_company_name?: string, insurance_type?: string, price?: int}[], passengers?: array{family_name?: string, given_name?: string}[], price?: int, ticket_class?: string}[], train_reservation_details?: null|array{affiliate_name?: string, arrival?: array{address?: array{city?: string, country?: string, postal_code?: string, region?: string, street_address?: string, street_address2?: string}, arrival_location?: string}, carrier_name?: string, currency?: string, departure?: array{address?: array{city?: string, country?: string, postal_code?: string, region?: string, street_address?: string, street_address2?: string}, departs_at?: int, departure_location?: string}, insurances?: array{currency?: string, insurance_company_name?: string, insurance_type?: string, price?: int}[], passengers?: array{family_name?: string, given_name?: string}[], price?: int, ticket_class?: string}[], vouchers?: null|array{affiliate_name?: string, ends_at?: int, starts_at?: int, voucher_company?: string, voucher_name?: string, voucher_type?: string}[]}}, konbini?: null|array{confirmation_number?: null|string, expires_after_days?: null|int, expires_at?: null|int, product_description?: null|string, setup_future_usage?: string}, kr_card?: null|array{capture_method?: null|string, setup_future_usage?: null|string}, link?: null|array{capture_method?: null|string, persistent_token?: string, setup_future_usage?: null|string}, mb_way?: null|array{setup_future_usage?: string}, mobilepay?: null|array{capture_method?: null|string, setup_future_usage?: string}, multibanco?: null|array{setup_future_usage?: string}, naver_pay?: null|array{capture_method?: null|string, setup_future_usage?: null|string}, nz_bank_account?: null|array{setup_future_usage?: null|string, target_date?: string}, oxxo?: null|array{expires_after_days?: int, setup_future_usage?: string}, p24?: null|array{setup_future_usage?: string, tos_shown_and_accepted?: bool}, pay_by_bank?: null|array{}, payco?: null|array{capture_method?: null|string}, paynow?: null|array{setup_future_usage?: string}, paypal?: null|array{capture_method?: null|string, line_items?: array{category?: string, description?: string, name: string, quantity: int, sku?: string, sold_by?: string, tax?: array{amount: int, behavior: string}, unit_amount: int}[], preferred_locale?: string, reference?: string, reference_id?: string, risk_correlation_id?: string, setup_future_usage?: null|string, subsellers?: string[]}, paypay?: null|array{capture_method?: null|string}, payto?: null|array{mandate_options?: array{amount?: null|int, amount_type?: null|string, end_date?: null|string, payment_schedule?: null|string, payments_per_period?: null|int, purpose?: null|string}, setup_future_usage?: null|string}, pix?: null|array{amount_includes_iof?: string, expires_after_seconds?: int, expires_at?: int, mandate_options?: array{amount?: int, amount_includes_iof?: string, amount_type?: string, currency?: string, end_date?: string, payment_schedule?: string, reference?: string, start_date?: string}, setup_future_usage?: string}, promptpay?: null|array{setup_future_usage?: string}, qris?: null|array{setup_future_usage?: string}, rechnung?: null|array{}, revolut_pay?: null|array{capture_method?: null|string, setup_future_usage?: null|string}, samsung_pay?: null|array{capture_method?: null|string}, satispay?: null|array{capture_method?: null|string}, scalapay?: null|array{capture_method?: null|string}, sepa_debit?: null|array{mandate_options?: array{reference_prefix?: null|string}, setup_future_usage?: null|string, target_date?: string}, shopeepay?: null|array{setup_future_usage?: string}, sofort?: null|array{preferred_language?: null|string, setup_future_usage?: null|string}, stripe_balance?: null|array{mandate_options?: array{stripe_balance_debit_agreement?: string}, setup_future_usage?: null|string}, swish?: null|array{reference?: null|string, setup_future_usage?: string}, twint?: null|array{setup_future_usage?: string}, upi?: null|array{mandate_options?: array{amount?: int, amount_type?: string, description?: string, end_date?: int}, setup_future_usage?: null|string}, us_bank_account?: null|array{financial_connections?: array{filters?: array{account_subcategories?: string[], institution?: string}, manual_entry?: array{mode: string}, permissions?: string[], prefetch?: string[], return_url?: string}, mandate_options?: array{collection_method?: null|string}, networks?: array{requested?: string[]}, setup_future_usage?: null|string, target_date?: string, transaction_purpose?: null|string, verification_method?: string}, wechat_pay?: null|array{app_id?: string, buyer_id?: string, client?: string, setup_future_usage?: string}, zip?: null|array{setup_future_usage?: string}}, payment_method_types?: string[], receipt_email?: null|string, setup_future_usage?: null|string, shipping?: null|array{address: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, carrier?: string, name: string, phone?: string, tracking_number?: string}, statement_descriptor?: string, statement_descriptor_suffix?: string, transfer_data?: array{amount?: int, description?: string, metadata?: null|array, payment_data?: array{description?: string, metadata?: null|array}}, transfer_group?: string} $params * @param null|array|string $opts * * @return PaymentIntent the updated resource diff --git a/lib/Service/PaymentIntentService.php b/lib/Service/PaymentIntentService.php index 9f42e476e..0d22ec69c 100644 --- a/lib/Service/PaymentIntentService.php +++ b/lib/Service/PaymentIntentService.php @@ -98,7 +98,7 @@ public function cancel($id, $params = null, $opts = null) * and capture. * * @param string $id - * @param null|array{amount_details?: array{discount_amount?: null|int, enforce_arithmetic_validation?: bool, line_items?: null|array{discount_amount?: int, payment_method_options?: array{card?: array{commodity_code?: string, fleet_data?: array{product_type: string, service_type?: string}}, card_present?: array{commodity_code?: string}, klarna?: array{image_url?: string, product_url?: string, reference?: string, subscription_reference?: string}, paypal?: array{category?: string, description?: string, sold_by?: string}}, product_code?: string, product_name: string, quantity: int, quantity_precision?: int, tax?: array{total_tax_amount: int}, unit_cost: int, unit_of_measure?: string}[], shipping?: null|array{amount?: null|int, from_postal_code?: null|string, to_postal_code?: null|string}, surcharge?: null|array{amount?: null|int, enforce_validation?: null|string}, tax?: null|array{total_tax_amount: int}}, amount_to_capture?: int, application_fee_amount?: int, expand?: string[], final_capture?: bool, hooks?: array{inputs?: array{tax?: array{calculation: null|string}}}, metadata?: null|array, payment_details?: null|array{car_rental?: array{affiliate?: array{name: string}, booking_number: string, car_class_code?: string, car_make?: string, car_model?: string, company?: string, customer_service_phone_number?: string, days_rented: int, delivery?: array{mode?: string, recipient?: array{email?: string, name?: string, phone?: string}}, distance?: array{amount?: int, unit?: string}, drivers?: array{driver_identification_number?: string, driver_tax_number?: string, name: string}[], extra_charges?: string[], no_show?: bool, pickup_address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, pickup_at: int, pickup_location_name?: string, rate_amount?: int, rate_interval?: string, renter_name?: string, return_address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, return_at: int, return_location_name?: string, tax_exempt?: bool, vehicle_identification_number?: string}, car_rental_data?: null|array{affiliate?: array{code?: string, name?: string}, booking_number?: string, carrier_name?: string, customer_service_phone_number?: string, days_rented?: int, distance?: array{amount: int, unit: string}, drivers?: array{date_of_birth?: array{day: int, month: int, year: int}, driver_identification_number?: string, driver_tax_number?: string, name: string}[], drop_off: array{address: array{city: string, country: string, line1: string, line2?: string, postal_code: string, state?: string}, location_name?: string, time: int}, insurances?: array{amount: int, currency?: string, insurance_company_name?: string, insurance_type: string}[], no_show_indicator?: bool, pickup: array{address: array{city: string, country: string, line1: string, line2?: string, postal_code: string, state?: string}, location_name?: string, time: int}, renter_name?: string, total: array{amount: int, currency?: string, discounts?: array{corporate_client_code?: string, coupon?: string, maximum_free_miles_or_kilometers?: int}, extra_charges?: array{amount: int, type: string}[], rate_per_unit?: int, rate_unit?: string, tax?: array{tax_exempt_indicator?: bool, taxes?: array{amount?: int, rate?: int, type?: string}[]}}, vehicle?: array{make?: string, model?: string, odometer?: int, type?: string, vehicle_class?: string, vehicle_identification_number?: string}}[], customer_reference?: null|string, event_details?: array{access_controlled_venue?: bool, address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, affiliate?: array{name: string}, company?: string, delivery?: array{mode?: string, recipient?: array{email?: string, name?: string, phone?: string}}, ends_at?: int, genre?: string, name: string, starts_at?: int}, fleet_data?: null|array{primary_fuel_fields?: array{brand?: string}, station?: array{additional_contact_info?: string, customer_service_phone_number?: string, partner_id_code?: string, phone_number?: string, service_location?: array{city?: string, country?: string, line1: string, line2?: string, postal_code?: string, state?: string}, url?: string}, vat?: array{iob_indicator: string}}[], flight?: array{affiliate?: array{name: string}, agency_number?: string, carrier?: string, delivery?: array{mode?: string, recipient?: array{email?: string, name?: string, phone?: string}}, passenger_name?: string, passengers?: array{name: string}[], segments: array{amount?: int, arrival_airport?: string, arrives_at?: int, carrier?: string, departs_at: int, departure_airport?: string, flight_number?: string, service_class?: string}[], ticket_number?: string}, flight_data?: null|array{affiliate?: array{code?: string, name?: string, travel_authorization_code?: string}, booking_number?: string, computerized_reservation_system?: string, endorsements_and_restrictions?: string, insurances?: array{amount: int, currency?: string, insurance_company_name?: string, insurance_type: string}[], passengers?: array{name: string}[], segments: array{amount?: int, arrival: array{airport: string, arrives_at?: int, city?: string, country?: string}, carrier_code: string, carrier_name?: string, currency?: string, departure: array{airport: string, city?: string, country?: string, departs_at: int}, exchange_ticket_number?: string, fare_basis_code?: string, fees?: int, flight_number?: string, is_stop_over_indicator?: bool, refundable?: bool, service_class: string, tax_amount?: int, ticket_number?: string}[], ticket_electronically_issued_indicator?: bool, total: array{amount: int, credit_reason?: string, currency?: string, discounts?: array{corporate_client_code?: string}, extra_charges?: array{amount?: int, type?: string}[], tax?: array{taxes?: array{amount?: int, rate?: int, type?: string}[]}}, transaction_type?: string}[], lodging?: array{address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, adults?: int, affiliate?: array{name: string}, booking_number?: string, category?: string, checkin_at: int, checkout_at: int, customer_service_phone_number?: string, daily_room_rate_amount?: int, delivery?: array{mode?: string, recipient?: array{email?: string, name?: string, phone?: string}}, extra_charges?: string[], fire_safety_act_compliance?: bool, name?: string, no_show?: bool, number_of_rooms?: int, passengers?: array{name: string}[], property_phone_number?: string, room_class?: string, room_nights?: int, total_room_tax_amount?: int, total_tax_amount?: int}, lodging_data?: null|array{accommodation?: array{accommodation_type?: string, bed_type?: string, daily_rate_amount?: int, nights?: int, number_of_rooms?: int, rate_type?: string, smoking_indicator?: bool}, affiliate?: array{code?: string, name?: string}, booking_number?: string, checkin_at: int, checkout_at: int, customer_service_phone_number?: string, fire_safety_act_compliance_indicator?: bool, guests?: array{name: string}[], host?: array{address?: array{city: string, country: string, line1: string, line2?: string, postal_code: string, state?: string}, country_of_domicile?: string, host_reference?: string, host_type?: string, name?: string, number_of_reservations?: int, property_phone_number?: string, registered_at?: int}, insurances?: array{amount: int, currency?: string, insurance_company_name?: string, insurance_type: string}[], no_show_indicator?: bool, renter_id_number?: string, renter_name?: string, total: array{amount: int, cash_advances?: int, currency?: string, discounts?: array{corporate_client_code?: string, coupon?: string}, extra_charges?: array{amount?: int, type?: string}[], prepaid_amount?: int, tax?: array{tax_exempt_indicator?: bool, taxes?: array{amount?: int, rate?: int, type?: string}[]}}}[], order_reference?: null|string, subscription?: array{affiliate?: array{name: string}, auto_renewal?: bool, billing_interval?: array{count: int, interval: string}, ends_at?: int, name: string, starts_at?: int}}, statement_descriptor?: string, statement_descriptor_suffix?: string, transfer_data?: array{amount?: int}} $params + * @param null|array{amount_details?: array{discount_amount?: null|int, enforce_arithmetic_validation?: bool, line_items?: null|array{discount_amount?: int, payment_method_options?: array{card?: array{commodity_code?: string, fleet_data?: array{product_type: string, service_type?: string}}, card_present?: array{commodity_code?: string}, klarna?: array{image_url?: string, product_url?: string, reference?: string, subscription_reference?: string}, paypal?: array{category?: string, description?: string, sold_by?: string}}, product_code?: string, product_name: string, quantity: int, quantity_precision?: int, tax?: array{total_tax_amount: int}, unit_cost: int, unit_of_measure?: string}[], shipping?: null|array{amount?: null|int, from_postal_code?: null|string, to_postal_code?: null|string}, surcharge?: null|array{amount?: null|int, enforce_validation?: null|string}, tax?: null|array{total_tax_amount: int}, tip?: null|array{amount?: null|int}}, amount_to_capture?: int, application_fee_amount?: int, expand?: string[], final_capture?: bool, hooks?: array{inputs?: array{tax?: array{calculation: null|string}}}, metadata?: null|array, payment_details?: null|array{car_rental?: array{affiliate?: array{name: string}, booking_number: string, car_class_code?: string, car_make?: string, car_model?: string, company?: string, customer_service_phone_number?: string, days_rented: int, delivery?: array{mode?: string, recipient?: array{email?: string, name?: string, phone?: string}}, distance?: array{amount?: int, unit?: string}, drivers?: array{driver_identification_number?: string, driver_tax_number?: string, name: string}[], extra_charges?: string[], no_show?: bool, pickup_address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, pickup_at: int, pickup_location_name?: string, rate_amount?: int, rate_interval?: string, renter_name?: string, return_address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, return_at: int, return_location_name?: string, tax_exempt?: bool, vehicle_identification_number?: string}, car_rental_data?: null|array{affiliate?: array{code?: string, name?: string}, booking_number?: string, carrier_name?: string, customer_service_phone_number?: string, days_rented?: int, distance?: array{amount: int, unit: string}, drivers?: array{date_of_birth?: array{day: int, month: int, year: int}, driver_identification_number?: string, driver_tax_number?: string, name: string}[], drop_off: array{address: array{city: string, country: string, line1: string, line2?: string, postal_code: string, state?: string}, location_name?: string, time: int}, insurances?: array{amount: int, currency?: string, insurance_company_name?: string, insurance_type: string}[], no_show_indicator?: bool, pickup: array{address: array{city: string, country: string, line1: string, line2?: string, postal_code: string, state?: string}, location_name?: string, time: int}, renter_name?: string, total: array{amount: int, currency?: string, discounts?: array{corporate_client_code?: string, coupon?: string, maximum_free_miles_or_kilometers?: int}, extra_charges?: array{amount: int, type: string}[], rate_per_unit?: int, rate_unit?: string, tax?: array{tax_exempt_indicator?: bool, taxes?: array{amount?: int, rate?: int, type?: string}[]}}, vehicle?: array{make?: string, model?: string, odometer?: int, type?: string, vehicle_class?: string, vehicle_identification_number?: string}}[], customer_reference?: null|string, event_details?: array{access_controlled_venue?: bool, address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, affiliate?: array{name: string}, company?: string, delivery?: array{mode?: string, recipient?: array{email?: string, name?: string, phone?: string}}, ends_at?: int, genre?: string, name: string, starts_at?: int}, fleet_data?: null|array{primary_fuel_fields?: array{brand?: string}, station?: array{additional_contact_info?: string, customer_service_phone_number?: string, partner_id_code?: string, phone_number?: string, service_location?: array{city?: string, country?: string, line1: string, line2?: string, postal_code?: string, state?: string}, url?: string}, vat?: array{iob_indicator: string}}[], flight?: array{affiliate?: array{name: string}, agency_number?: string, carrier?: string, delivery?: array{mode?: string, recipient?: array{email?: string, name?: string, phone?: string}}, passenger_name?: string, passengers?: array{name: string}[], segments: array{amount?: int, arrival_airport?: string, arrives_at?: int, carrier?: string, departs_at: int, departure_airport?: string, flight_number?: string, service_class?: string}[], ticket_number?: string}, flight_data?: null|array{affiliate?: array{code?: string, name?: string, travel_authorization_code?: string}, booking_number?: string, computerized_reservation_system?: string, endorsements_and_restrictions?: string, insurances?: array{amount: int, currency?: string, insurance_company_name?: string, insurance_type: string}[], passengers?: array{name: string}[], segments: array{amount?: int, arrival: array{airport: string, arrives_at?: int, city?: string, country?: string}, carrier_code: string, carrier_name?: string, currency?: string, departure: array{airport: string, city?: string, country?: string, departs_at: int}, exchange_ticket_number?: string, fare_basis_code?: string, fees?: int, flight_number?: string, is_stop_over_indicator?: bool, refundable?: bool, service_class: string, tax_amount?: int, ticket_number?: string}[], ticket_electronically_issued_indicator?: bool, total: array{amount: int, credit_reason?: string, currency?: string, discounts?: array{corporate_client_code?: string}, extra_charges?: array{amount?: int, type?: string}[], tax?: array{taxes?: array{amount?: int, rate?: int, type?: string}[]}}, transaction_type?: string}[], lodging?: array{address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, adults?: int, affiliate?: array{name: string}, booking_number?: string, category?: string, checkin_at: int, checkout_at: int, customer_service_phone_number?: string, daily_room_rate_amount?: int, delivery?: array{mode?: string, recipient?: array{email?: string, name?: string, phone?: string}}, extra_charges?: string[], fire_safety_act_compliance?: bool, name?: string, no_show?: bool, number_of_rooms?: int, passengers?: array{name: string}[], property_phone_number?: string, room_class?: string, room_nights?: int, total_room_tax_amount?: int, total_tax_amount?: int}, lodging_data?: null|array{accommodation?: array{accommodation_type?: string, bed_type?: string, daily_rate_amount?: int, nights?: int, number_of_rooms?: int, rate_type?: string, smoking_indicator?: bool}, affiliate?: array{code?: string, name?: string}, booking_number?: string, checkin_at: int, checkout_at: int, customer_service_phone_number?: string, fire_safety_act_compliance_indicator?: bool, guests?: array{name: string}[], host?: array{address?: array{city: string, country: string, line1: string, line2?: string, postal_code: string, state?: string}, country_of_domicile?: string, host_reference?: string, host_type?: string, name?: string, number_of_reservations?: int, property_phone_number?: string, registered_at?: int}, insurances?: array{amount: int, currency?: string, insurance_company_name?: string, insurance_type: string}[], no_show_indicator?: bool, renter_id_number?: string, renter_name?: string, total: array{amount: int, cash_advances?: int, currency?: string, discounts?: array{corporate_client_code?: string, coupon?: string}, extra_charges?: array{amount?: int, type?: string}[], prepaid_amount?: int, tax?: array{tax_exempt_indicator?: bool, taxes?: array{amount?: int, rate?: int, type?: string}[]}}}[], order_reference?: null|string, subscription?: array{affiliate?: array{name: string}, auto_renewal?: bool, billing_interval?: array{count: int, interval: string}, ends_at?: int, name: string, starts_at?: int}}, statement_descriptor?: string, statement_descriptor_suffix?: string, transfer_data?: array{amount?: int}} $params * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @return \Stripe\PaymentIntent @@ -144,7 +144,7 @@ public function capture($id, $params = null, $opts = null) * transition the PaymentIntent to the canceled state. * * @param string $id - * @param null|array{allocated_funds?: array{enabled?: bool}, allowed_payment_method_types?: string[], amount_details?: null|array{discount_amount?: null|int, enforce_arithmetic_validation?: bool, line_items?: null|array{discount_amount?: int, payment_method_options?: array{card?: array{commodity_code?: string, fleet_data?: array{product_type: string, service_type?: string}}, card_present?: array{commodity_code?: string}, klarna?: array{image_url?: string, product_url?: string, reference?: string, subscription_reference?: string}, paypal?: array{category?: string, description?: string, sold_by?: string}}, product_code?: string, product_name: string, quantity: int, quantity_precision?: int, tax?: array{total_tax_amount: int}, unit_cost: int, unit_of_measure?: string}[], shipping?: null|array{amount?: null|int, from_postal_code?: null|string, to_postal_code?: null|string}, surcharge?: null|array{amount?: null|int, enforce_validation?: null|string}, tax?: null|array{total_tax_amount: int}}, amount_to_confirm?: int, application_fee_amount?: null|int, capture_method?: string, confirmation_token?: string, error_on_requires_action?: bool, excluded_payment_method_types?: null|string[], expand?: string[], fx_quote?: string, hooks?: array{inputs?: array{tax?: array{calculation: null|string}}}, mandate?: string, mandate_data?: null|array{customer_acceptance?: array{accepted_at?: int, offline?: array{}, online?: array{ip_address?: string, user_agent?: string}, type: string}}, off_session?: array|bool|string, payment_details?: null|array{benefit?: array{fr_meal_voucher?: null|array{enabled?: string, siret?: string}}, car_rental?: array{affiliate?: array{name: string}, booking_number: string, car_class_code?: string, car_make?: string, car_model?: string, company?: string, customer_service_phone_number?: string, days_rented: int, delivery?: array{mode?: string, recipient?: array{email?: string, name?: string, phone?: string}}, distance?: array{amount?: int, unit?: string}, drivers?: array{driver_identification_number?: string, driver_tax_number?: string, name: string}[], extra_charges?: string[], no_show?: bool, pickup_address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, pickup_at: int, pickup_location_name?: string, rate_amount?: int, rate_interval?: string, renter_name?: string, return_address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, return_at: int, return_location_name?: string, tax_exempt?: bool, vehicle_identification_number?: string}, car_rental_data?: null|array{affiliate?: array{code?: string, name?: string}, booking_number?: string, carrier_name?: string, customer_service_phone_number?: string, days_rented?: int, distance?: array{amount: int, unit: string}, drivers?: array{date_of_birth?: array{day: int, month: int, year: int}, driver_identification_number?: string, driver_tax_number?: string, name: string}[], drop_off: array{address: array{city: string, country: string, line1: string, line2?: string, postal_code: string, state?: string}, location_name?: string, time: int}, insurances?: array{amount: int, currency?: string, insurance_company_name?: string, insurance_type: string}[], no_show_indicator?: bool, pickup: array{address: array{city: string, country: string, line1: string, line2?: string, postal_code: string, state?: string}, location_name?: string, time: int}, renter_name?: string, total: array{amount: int, currency?: string, discounts?: array{corporate_client_code?: string, coupon?: string, maximum_free_miles_or_kilometers?: int}, extra_charges?: array{amount: int, type: string}[], rate_per_unit?: int, rate_unit?: string, tax?: array{tax_exempt_indicator?: bool, taxes?: array{amount?: int, rate?: int, type?: string}[]}}, vehicle?: array{make?: string, model?: string, odometer?: int, type?: string, vehicle_class?: string, vehicle_identification_number?: string}}[], customer_reference?: null|string, event_details?: array{access_controlled_venue?: bool, address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, affiliate?: array{name: string}, company?: string, delivery?: array{mode?: string, recipient?: array{email?: string, name?: string, phone?: string}}, ends_at?: int, genre?: string, name: string, starts_at?: int}, fleet_data?: null|array{primary_fuel_fields?: array{brand?: string}, station?: array{additional_contact_info?: string, customer_service_phone_number?: string, partner_id_code?: string, phone_number?: string, service_location?: array{city?: string, country?: string, line1: string, line2?: string, postal_code?: string, state?: string}, url?: string}, vat?: array{iob_indicator: string}}[], flight?: array{affiliate?: array{name: string}, agency_number?: string, carrier?: string, delivery?: array{mode?: string, recipient?: array{email?: string, name?: string, phone?: string}}, passenger_name?: string, passengers?: array{name: string}[], segments: array{amount?: int, arrival_airport?: string, arrives_at?: int, carrier?: string, departs_at: int, departure_airport?: string, flight_number?: string, service_class?: string}[], ticket_number?: string}, flight_data?: null|array{affiliate?: array{code?: string, name?: string, travel_authorization_code?: string}, booking_number?: string, computerized_reservation_system?: string, endorsements_and_restrictions?: string, insurances?: array{amount: int, currency?: string, insurance_company_name?: string, insurance_type: string}[], passengers?: array{name: string}[], segments: array{amount?: int, arrival: array{airport: string, arrives_at?: int, city?: string, country?: string}, carrier_code: string, carrier_name?: string, currency?: string, departure: array{airport: string, city?: string, country?: string, departs_at: int}, exchange_ticket_number?: string, fare_basis_code?: string, fees?: int, flight_number?: string, is_stop_over_indicator?: bool, refundable?: bool, service_class: string, tax_amount?: int, ticket_number?: string}[], ticket_electronically_issued_indicator?: bool, total: array{amount: int, credit_reason?: string, currency?: string, discounts?: array{corporate_client_code?: string}, extra_charges?: array{amount?: int, type?: string}[], tax?: array{taxes?: array{amount?: int, rate?: int, type?: string}[]}}, transaction_type?: string}[], location?: string, lodging?: array{address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, adults?: int, affiliate?: array{name: string}, booking_number?: string, category?: string, checkin_at: int, checkout_at: int, customer_service_phone_number?: string, daily_room_rate_amount?: int, delivery?: array{mode?: string, recipient?: array{email?: string, name?: string, phone?: string}}, extra_charges?: string[], fire_safety_act_compliance?: bool, name?: string, no_show?: bool, number_of_rooms?: int, passengers?: array{name: string}[], property_phone_number?: string, room_class?: string, room_nights?: int, total_room_tax_amount?: int, total_tax_amount?: int}, lodging_data?: null|array{accommodation?: array{accommodation_type?: string, bed_type?: string, daily_rate_amount?: int, nights?: int, number_of_rooms?: int, rate_type?: string, smoking_indicator?: bool}, affiliate?: array{code?: string, name?: string}, booking_number?: string, checkin_at: int, checkout_at: int, customer_service_phone_number?: string, fire_safety_act_compliance_indicator?: bool, guests?: array{name: string}[], host?: array{address?: array{city: string, country: string, line1: string, line2?: string, postal_code: string, state?: string}, country_of_domicile?: string, host_reference?: string, host_type?: string, name?: string, number_of_reservations?: int, property_phone_number?: string, registered_at?: int}, insurances?: array{amount: int, currency?: string, insurance_company_name?: string, insurance_type: string}[], no_show_indicator?: bool, renter_id_number?: string, renter_name?: string, total: array{amount: int, cash_advances?: int, currency?: string, discounts?: array{corporate_client_code?: string, coupon?: string}, extra_charges?: array{amount?: int, type?: string}[], prepaid_amount?: int, tax?: array{tax_exempt_indicator?: bool, taxes?: array{amount?: int, rate?: int, type?: string}[]}}}[], money_services?: null|array{account_funding?: null|array{sender_details?: null|array{address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, date_of_birth?: array{day: int, month: int, year: int}, email?: string, given_name?: string, phone?: string, surname?: string}}, beneficiary_details?: null|array{account_reference?: string, address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, date_of_birth?: array{day: int, month: int, year: int}, email?: string, given_name?: string, phone?: string, surname?: string}, transaction_type?: null|string}, order_reference?: null|string, subscription?: array{affiliate?: array{name: string}, auto_renewal?: bool, billing_interval?: array{count: int, interval: string}, ends_at?: int, name: string, starts_at?: int}}, payment_method?: string, payment_method_data?: array{acss_debit?: array{account_number: string, institution_number: string, transit_number: string}, affirm?: array{}, afterpay_clearpay?: array{}, alipay?: array{}, allow_redisplay?: string, alma?: array{}, amazon_pay?: array{}, au_becs_debit?: array{account_number: string, bsb_number: string}, bacs_debit?: array{account_number?: string, sort_code?: string}, bancontact?: array{}, billie?: array{}, billing_details?: array{address?: null|array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, email?: null|string, name?: null|string, phone?: null|string, tax_id?: string}, bizum?: array{}, blik?: array{}, boleto?: array{tax_id: string}, cashapp?: array{}, crypto?: array{}, customer_balance?: array{}, eps?: array{bank?: string}, fpx?: array{account_holder_type?: string, bank: string}, gift_card?: array{gift_card: string}, giropay?: array{}, gopay?: array{}, grabpay?: array{}, id_bank_transfer?: array{bank?: string}, ideal?: array{bank?: string}, interac_present?: array{}, kakao_pay?: array{}, klarna?: array{dob?: array{day: int, month: int, year: int}}, konbini?: array{}, kr_card?: array{}, link?: array{}, mb_way?: array{}, metadata?: array, mobilepay?: array{}, multibanco?: array{}, naver_pay?: array{funding?: string}, nz_bank_account?: array{account_holder_name?: string, account_number: string, bank_code: string, branch_code: string, reference?: string, suffix: string}, oxxo?: array{}, p24?: array{bank?: string}, pay_by_bank?: array{}, payco?: array{}, paynow?: array{}, paypal?: array{}, paypay?: array{}, payto?: array{account_number?: string, bsb_number?: string, pay_id?: string}, pix?: array{}, promptpay?: array{}, qris?: array{}, radar_options?: array{session?: string}, rechnung?: array{dob: array{day: int, month: int, year: int}}, revolut_pay?: array{}, samsung_pay?: array{}, satispay?: array{}, scalapay?: array{}, sepa_debit?: array{iban: string}, shared_payment_granted_token?: string, shopeepay?: array{}, sofort?: array{country: string}, stripe_balance?: array{account?: string}, sunbit?: array{}, swish?: array{}, tamara?: array{}, twint?: array{}, type: string, upi?: array{mandate_options?: array{amount?: int, amount_type?: string, description?: string, end_date?: int}}, us_bank_account?: array{account_holder_type?: string, account_number?: string, account_type?: string, financial_connections_account?: string, routing_number?: string}, wechat_pay?: array{}, zip?: array{}}, payment_method_options?: array{acss_debit?: null|array{mandate_options?: array{custom_mandate_url?: null|string, interval_description?: string, payment_schedule?: string, transaction_type?: string}, setup_future_usage?: null|string, target_date?: string, verification_method?: string}, affirm?: null|array{capture_method?: null|string, preferred_locale?: string, setup_future_usage?: string}, afterpay_clearpay?: null|array{capture_method?: null|string, reference?: string, setup_future_usage?: string}, alipay?: null|array{setup_future_usage?: null|string}, alma?: null|array{capture_method?: null|string}, amazon_pay?: null|array{capture_method?: null|string, setup_future_usage?: null|string}, au_becs_debit?: null|array{setup_future_usage?: null|string, target_date?: string}, bacs_debit?: null|array{mandate_options?: array{reference_prefix?: null|string}, setup_future_usage?: null|string, target_date?: string}, bancontact?: null|array{preferred_language?: string, setup_future_usage?: null|string}, billie?: null|array{capture_method?: null|string}, bizum?: null|array{}, blik?: null|array{code?: string, setup_future_usage?: null|string}, boleto?: null|array{expires_after_days?: int, setup_future_usage?: null|string}, card?: null|array{capture_by?: string, capture_delay?: array{days?: int, hours?: int}, capture_method?: null|string, cvc_token?: string, installments?: array{enabled?: bool, plan?: null|array{count?: int, interval?: string, type: string}}, mandate_options?: array{amount: int, amount_type: string, description?: string, end_date?: int, interval: string, interval_count?: int, reference: string, start_date: int, supported_types?: string[]}, moto?: bool, network?: string, payment_details?: array{money_services?: array{account_funding?: array{digital_asset_category?: string}}}, request_decremental_authorization?: string, request_extended_authorization?: string, request_incremental_authorization?: string, request_multicapture?: string, request_overcapture?: string, request_partial_authorization?: string, request_reauthorization?: string, request_three_d_secure?: string, require_cvc_recollection?: bool, setup_future_usage?: null|string, statement_descriptor_suffix_kana?: null|string, statement_descriptor_suffix_kanji?: null|string, statement_details?: null|array{address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, phone?: string}, three_d_secure?: array{ares_trans_status?: string, cryptogram: string, electronic_commerce_indicator?: string, exemption_indicator?: string, network_options?: array{cartes_bancaires?: array{cb_avalgo: string, cb_exemption?: string, cb_score?: int}}, requestor_challenge_indicator?: string, transaction_id: string, version: string}}, card_present?: null|array{capture_by?: string, capture_delay?: array{days?: int, hours?: int}, capture_method?: string, payment_details?: array{money_services?: array{account_funding?: array{digital_asset_category?: string}}}, request_extended_authorization?: bool, request_incremental_authorization_support?: bool, request_multicapture?: string, request_reauthorization?: string, routing?: array{requested_priority?: string}}, cashapp?: null|array{capture_method?: null|string, setup_future_usage?: null|string}, crypto?: null|array{deposit_options?: array{networks: string[], static_address?: bool}, mode?: string, setup_future_usage?: string, transaction_verification_options?: array{network: string, transaction_hash: string}}, customer_balance?: null|array{bank_transfer?: array{eu_bank_transfer?: array{country: string}, requested_address_types?: string[], type: string}, funding_type?: string, setup_future_usage?: string}, eps?: null|array{setup_future_usage?: string}, fpx?: null|array{setup_future_usage?: string}, gift_card?: null|array{ignore_application_fee?: string, ignore_transfer_data?: string, request_partial_authorization?: string}, giropay?: null|array{setup_future_usage?: string}, gopay?: null|array{setup_future_usage?: string}, grabpay?: null|array{setup_future_usage?: string}, id_bank_transfer?: null|array{expires_after?: int, expires_at?: int, setup_future_usage?: string}, ideal?: null|array{setup_future_usage?: null|string}, interac_present?: null|array{}, kakao_pay?: null|array{capture_method?: null|string, setup_future_usage?: null|string}, klarna?: null|array{capture_method?: null|string, on_demand?: array{average_amount?: int, maximum_amount?: int, minimum_amount?: int, purchase_interval?: string, purchase_interval_count?: int}, preferred_locale?: string, setup_future_usage?: string, subscriptions?: null|array{interval: string, interval_count?: int, name?: string, next_billing?: array{amount: int, date: string}, reference: string}[], supplementary_purchase_data?: null|array{bus_reservation_details?: null|array{affiliate_name?: string, arrival?: array{address?: array{city?: string, country?: string, postal_code?: string, region?: string, street_address?: string, street_address2?: string}, arrival_location?: string}, carrier_name?: string, currency?: string, departure?: array{address?: array{city?: string, country?: string, postal_code?: string, region?: string, street_address?: string, street_address2?: string}, departs_at?: int, departure_location?: string}, insurances?: array{currency?: string, insurance_company_name?: string, insurance_type?: string, price?: int}[], passengers?: array{family_name?: string, given_name?: string}[], price?: int, ticket_class?: string}[], event_reservation_details?: null|array{access_controlled_venue?: bool, address?: array{city?: string, country?: string, postal_code?: string, region?: string, street_address?: string, street_address2?: string}, affiliate_name?: string, ends_at?: int, event_company_name?: string, event_name?: string, event_type?: string, insurances?: array{currency?: string, insurance_company_name?: string, insurance_type?: string, price?: int}[], starts_at?: int, venue_name?: string}[], ferry_reservation_details?: null|array{affiliate_name?: string, arrival?: array{address?: array{city?: string, country?: string, postal_code?: string, region?: string, street_address?: string, street_address2?: string}, arrival_location?: string}, carrier_name?: string, currency?: string, departure?: array{address?: array{city?: string, country?: string, postal_code?: string, region?: string, street_address?: string, street_address2?: string}, departs_at?: int, departure_location?: string}, insurances?: array{currency?: string, insurance_company_name?: string, insurance_type?: string, price?: int}[], passengers?: array{family_name?: string, given_name?: string}[], price?: int, ticket_class?: string}[], insurances?: null|array{currency?: string, insurance_company_name?: string, insurance_type?: string, price?: int}[], marketplace_sellers?: null|array{line_item_references?: string[], marketplace_seller_address?: array{city?: string, country?: string, postal_code?: string, region?: string, street_address?: string, street_address2?: string}, marketplace_seller_name?: string, marketplace_seller_reference?: string, number_of_transactions?: int, product_category?: string, seller_last_login_at?: int, seller_rating?: string, seller_registered_at?: int, seller_updated_at?: int, shipping_references?: string[], volume_of_transactions?: int}[], round_trip_reservation_details?: null|array{affiliate_name?: string, arrival?: array{address?: array{city?: string, country?: string, postal_code?: string, region?: string, street_address?: string, street_address2?: string}, arrival_location?: string}, carrier_name?: string, currency?: string, departure?: array{address?: array{city?: string, country?: string, postal_code?: string, region?: string, street_address?: string, street_address2?: string}, departs_at?: int, departure_location?: string}, insurances?: array{currency?: string, insurance_company_name?: string, insurance_type?: string, price?: int}[], passengers?: array{family_name?: string, given_name?: string}[], price?: int, ticket_class?: string}[], train_reservation_details?: null|array{affiliate_name?: string, arrival?: array{address?: array{city?: string, country?: string, postal_code?: string, region?: string, street_address?: string, street_address2?: string}, arrival_location?: string}, carrier_name?: string, currency?: string, departure?: array{address?: array{city?: string, country?: string, postal_code?: string, region?: string, street_address?: string, street_address2?: string}, departs_at?: int, departure_location?: string}, insurances?: array{currency?: string, insurance_company_name?: string, insurance_type?: string, price?: int}[], passengers?: array{family_name?: string, given_name?: string}[], price?: int, ticket_class?: string}[], vouchers?: null|array{affiliate_name?: string, ends_at?: int, starts_at?: int, voucher_company?: string, voucher_name?: string, voucher_type?: string}[]}}, konbini?: null|array{confirmation_number?: null|string, expires_after_days?: null|int, expires_at?: null|int, product_description?: null|string, setup_future_usage?: string}, kr_card?: null|array{capture_method?: null|string, setup_future_usage?: null|string}, link?: null|array{capture_method?: null|string, persistent_token?: string, setup_future_usage?: null|string}, mb_way?: null|array{setup_future_usage?: string}, mobilepay?: null|array{capture_method?: null|string, setup_future_usage?: string}, multibanco?: null|array{setup_future_usage?: string}, naver_pay?: null|array{capture_method?: null|string, setup_future_usage?: null|string}, nz_bank_account?: null|array{setup_future_usage?: null|string, target_date?: string}, oxxo?: null|array{expires_after_days?: int, setup_future_usage?: string}, p24?: null|array{setup_future_usage?: string, tos_shown_and_accepted?: bool}, pay_by_bank?: null|array{}, payco?: null|array{capture_method?: null|string}, paynow?: null|array{setup_future_usage?: string}, paypal?: null|array{capture_method?: null|string, line_items?: array{category?: string, description?: string, name: string, quantity: int, sku?: string, sold_by?: string, tax?: array{amount: int, behavior: string}, unit_amount: int}[], preferred_locale?: string, reference?: string, reference_id?: string, risk_correlation_id?: string, setup_future_usage?: null|string, subsellers?: string[]}, paypay?: null|array{capture_method?: null|string}, payto?: null|array{mandate_options?: array{amount?: null|int, amount_type?: null|string, end_date?: null|string, payment_schedule?: null|string, payments_per_period?: null|int, purpose?: null|string}, setup_future_usage?: null|string}, pix?: null|array{amount_includes_iof?: string, expires_after_seconds?: int, expires_at?: int, mandate_options?: array{amount?: int, amount_includes_iof?: string, amount_type?: string, currency?: string, end_date?: string, payment_schedule?: string, reference?: string, start_date?: string}, setup_future_usage?: string}, promptpay?: null|array{setup_future_usage?: string}, qris?: null|array{setup_future_usage?: string}, rechnung?: null|array{}, revolut_pay?: null|array{capture_method?: null|string, setup_future_usage?: null|string}, samsung_pay?: null|array{capture_method?: null|string}, satispay?: null|array{capture_method?: null|string}, scalapay?: null|array{capture_method?: null|string}, sepa_debit?: null|array{mandate_options?: array{reference_prefix?: null|string}, setup_future_usage?: null|string, target_date?: string}, shopeepay?: null|array{setup_future_usage?: string}, sofort?: null|array{preferred_language?: null|string, setup_future_usage?: null|string}, stripe_balance?: null|array{mandate_options?: array{stripe_balance_debit_agreement?: string}, setup_future_usage?: null|string}, swish?: null|array{reference?: null|string, setup_future_usage?: string}, twint?: null|array{setup_future_usage?: string}, upi?: null|array{mandate_options?: array{amount?: int, amount_type?: string, description?: string, end_date?: int}, setup_future_usage?: null|string}, us_bank_account?: null|array{financial_connections?: array{filters?: array{account_subcategories?: string[], institution?: string}, manual_entry?: array{mode: string}, permissions?: string[], prefetch?: string[], return_url?: string}, mandate_options?: array{collection_method?: null|string}, networks?: array{requested?: string[]}, setup_future_usage?: null|string, target_date?: string, transaction_purpose?: null|string, verification_method?: string}, wechat_pay?: null|array{app_id?: string, buyer_id?: string, client?: string, setup_future_usage?: string}, zip?: null|array{setup_future_usage?: string}}, payment_method_types?: string[], radar_options?: array{session?: string}, receipt_email?: null|string, return_url?: string, setup_future_usage?: null|string, shipping?: null|array{address: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, carrier?: string, name: string, phone?: string, tracking_number?: string}, use_stripe_sdk?: bool} $params + * @param null|array{allocated_funds?: array{enabled?: bool}, allowed_payment_method_types?: string[], amount_details?: null|array{discount_amount?: null|int, enforce_arithmetic_validation?: bool, line_items?: null|array{discount_amount?: int, payment_method_options?: array{card?: array{commodity_code?: string, fleet_data?: array{product_type: string, service_type?: string}}, card_present?: array{commodity_code?: string}, klarna?: array{image_url?: string, product_url?: string, reference?: string, subscription_reference?: string}, paypal?: array{category?: string, description?: string, sold_by?: string}}, product_code?: string, product_name: string, quantity: int, quantity_precision?: int, tax?: array{total_tax_amount: int}, unit_cost: int, unit_of_measure?: string}[], shipping?: null|array{amount?: null|int, from_postal_code?: null|string, to_postal_code?: null|string}, surcharge?: null|array{amount?: null|int, enforce_validation?: null|string}, tax?: null|array{total_tax_amount: int}, tip?: null|array{amount?: null|int}}, amount_to_confirm?: int, application_fee_amount?: null|int, capture_method?: string, confirmation_token?: string, error_on_requires_action?: bool, excluded_payment_method_types?: null|string[], expand?: string[], fx_quote?: string, hooks?: array{inputs?: array{tax?: array{calculation: null|string}}}, mandate?: string, mandate_data?: null|array{customer_acceptance?: array{accepted_at?: int, offline?: array{}, online?: array{ip_address?: string, user_agent?: string}, type: string}}, off_session?: array|bool|string, payment_details?: null|array{benefit?: array{fr_meal_voucher?: null|array{enabled?: string, siret?: string}}, car_rental?: array{affiliate?: array{name: string}, booking_number: string, car_class_code?: string, car_make?: string, car_model?: string, company?: string, customer_service_phone_number?: string, days_rented: int, delivery?: array{mode?: string, recipient?: array{email?: string, name?: string, phone?: string}}, distance?: array{amount?: int, unit?: string}, drivers?: array{driver_identification_number?: string, driver_tax_number?: string, name: string}[], extra_charges?: string[], no_show?: bool, pickup_address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, pickup_at: int, pickup_location_name?: string, rate_amount?: int, rate_interval?: string, renter_name?: string, return_address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, return_at: int, return_location_name?: string, tax_exempt?: bool, vehicle_identification_number?: string}, car_rental_data?: null|array{affiliate?: array{code?: string, name?: string}, booking_number?: string, carrier_name?: string, customer_service_phone_number?: string, days_rented?: int, distance?: array{amount: int, unit: string}, drivers?: array{date_of_birth?: array{day: int, month: int, year: int}, driver_identification_number?: string, driver_tax_number?: string, name: string}[], drop_off: array{address: array{city: string, country: string, line1: string, line2?: string, postal_code: string, state?: string}, location_name?: string, time: int}, insurances?: array{amount: int, currency?: string, insurance_company_name?: string, insurance_type: string}[], no_show_indicator?: bool, pickup: array{address: array{city: string, country: string, line1: string, line2?: string, postal_code: string, state?: string}, location_name?: string, time: int}, renter_name?: string, total: array{amount: int, currency?: string, discounts?: array{corporate_client_code?: string, coupon?: string, maximum_free_miles_or_kilometers?: int}, extra_charges?: array{amount: int, type: string}[], rate_per_unit?: int, rate_unit?: string, tax?: array{tax_exempt_indicator?: bool, taxes?: array{amount?: int, rate?: int, type?: string}[]}}, vehicle?: array{make?: string, model?: string, odometer?: int, type?: string, vehicle_class?: string, vehicle_identification_number?: string}}[], customer_reference?: null|string, event_details?: array{access_controlled_venue?: bool, address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, affiliate?: array{name: string}, company?: string, delivery?: array{mode?: string, recipient?: array{email?: string, name?: string, phone?: string}}, ends_at?: int, genre?: string, name: string, starts_at?: int}, fleet_data?: null|array{primary_fuel_fields?: array{brand?: string}, station?: array{additional_contact_info?: string, customer_service_phone_number?: string, partner_id_code?: string, phone_number?: string, service_location?: array{city?: string, country?: string, line1: string, line2?: string, postal_code?: string, state?: string}, url?: string}, vat?: array{iob_indicator: string}}[], flight?: array{affiliate?: array{name: string}, agency_number?: string, carrier?: string, delivery?: array{mode?: string, recipient?: array{email?: string, name?: string, phone?: string}}, passenger_name?: string, passengers?: array{name: string}[], segments: array{amount?: int, arrival_airport?: string, arrives_at?: int, carrier?: string, departs_at: int, departure_airport?: string, flight_number?: string, service_class?: string}[], ticket_number?: string}, flight_data?: null|array{affiliate?: array{code?: string, name?: string, travel_authorization_code?: string}, booking_number?: string, computerized_reservation_system?: string, endorsements_and_restrictions?: string, insurances?: array{amount: int, currency?: string, insurance_company_name?: string, insurance_type: string}[], passengers?: array{name: string}[], segments: array{amount?: int, arrival: array{airport: string, arrives_at?: int, city?: string, country?: string}, carrier_code: string, carrier_name?: string, currency?: string, departure: array{airport: string, city?: string, country?: string, departs_at: int}, exchange_ticket_number?: string, fare_basis_code?: string, fees?: int, flight_number?: string, is_stop_over_indicator?: bool, refundable?: bool, service_class: string, tax_amount?: int, ticket_number?: string}[], ticket_electronically_issued_indicator?: bool, total: array{amount: int, credit_reason?: string, currency?: string, discounts?: array{corporate_client_code?: string}, extra_charges?: array{amount?: int, type?: string}[], tax?: array{taxes?: array{amount?: int, rate?: int, type?: string}[]}}, transaction_type?: string}[], location?: string, lodging?: array{address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, adults?: int, affiliate?: array{name: string}, booking_number?: string, category?: string, checkin_at: int, checkout_at: int, customer_service_phone_number?: string, daily_room_rate_amount?: int, delivery?: array{mode?: string, recipient?: array{email?: string, name?: string, phone?: string}}, extra_charges?: string[], fire_safety_act_compliance?: bool, name?: string, no_show?: bool, number_of_rooms?: int, passengers?: array{name: string}[], property_phone_number?: string, room_class?: string, room_nights?: int, total_room_tax_amount?: int, total_tax_amount?: int}, lodging_data?: null|array{accommodation?: array{accommodation_type?: string, bed_type?: string, daily_rate_amount?: int, nights?: int, number_of_rooms?: int, rate_type?: string, smoking_indicator?: bool}, affiliate?: array{code?: string, name?: string}, booking_number?: string, checkin_at: int, checkout_at: int, customer_service_phone_number?: string, fire_safety_act_compliance_indicator?: bool, guests?: array{name: string}[], host?: array{address?: array{city: string, country: string, line1: string, line2?: string, postal_code: string, state?: string}, country_of_domicile?: string, host_reference?: string, host_type?: string, name?: string, number_of_reservations?: int, property_phone_number?: string, registered_at?: int}, insurances?: array{amount: int, currency?: string, insurance_company_name?: string, insurance_type: string}[], no_show_indicator?: bool, renter_id_number?: string, renter_name?: string, total: array{amount: int, cash_advances?: int, currency?: string, discounts?: array{corporate_client_code?: string, coupon?: string}, extra_charges?: array{amount?: int, type?: string}[], prepaid_amount?: int, tax?: array{tax_exempt_indicator?: bool, taxes?: array{amount?: int, rate?: int, type?: string}[]}}}[], money_services?: null|array{account_funding?: null|array{sender_details?: null|array{address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, date_of_birth?: array{day: int, month: int, year: int}, email?: string, given_name?: string, phone?: string, surname?: string}}, beneficiary_details?: null|array{account_reference?: string, address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, date_of_birth?: array{day: int, month: int, year: int}, email?: string, given_name?: string, phone?: string, surname?: string}, transaction_type?: null|string}, order_reference?: null|string, subscription?: array{affiliate?: array{name: string}, auto_renewal?: bool, billing_interval?: array{count: int, interval: string}, ends_at?: int, name: string, starts_at?: int}}, payment_method?: string, payment_method_data?: array{acss_debit?: array{account_number: string, institution_number: string, transit_number: string}, affirm?: array{}, afterpay_clearpay?: array{}, alipay?: array{}, allow_redisplay?: string, alma?: array{}, amazon_pay?: array{}, au_becs_debit?: array{account_number: string, bsb_number: string}, bacs_debit?: array{account_number?: string, sort_code?: string}, bancontact?: array{}, billie?: array{}, billing_details?: array{address?: null|array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, email?: null|string, name?: null|string, phone?: null|string, tax_id?: string}, bizum?: array{}, blik?: array{}, boleto?: array{tax_id: string}, cashapp?: array{}, crypto?: array{}, customer_balance?: array{}, eps?: array{bank?: string}, fpx?: array{account_holder_type?: string, bank: string}, gift_card?: array{gift_card: string}, giropay?: array{}, gopay?: array{}, grabpay?: array{}, id_bank_transfer?: array{bank?: string}, ideal?: array{bank?: string}, interac_present?: array{}, kakao_pay?: array{}, klarna?: array{dob?: array{day: int, month: int, year: int}}, konbini?: array{}, kr_card?: array{}, link?: array{}, mb_way?: array{}, metadata?: array, mobilepay?: array{}, multibanco?: array{}, naver_pay?: array{funding?: string}, nz_bank_account?: array{account_holder_name?: string, account_number: string, bank_code: string, branch_code: string, reference?: string, suffix: string}, oxxo?: array{}, p24?: array{bank?: string}, pay_by_bank?: array{}, payco?: array{}, paynow?: array{}, paypal?: array{}, paypay?: array{}, payto?: array{account_number?: string, bsb_number?: string, pay_id?: string}, pix?: array{}, promptpay?: array{}, qris?: array{}, radar_options?: array{session?: string}, rechnung?: array{dob: array{day: int, month: int, year: int}}, revolut_pay?: array{}, samsung_pay?: array{}, satispay?: array{}, scalapay?: array{}, sepa_debit?: array{iban: string}, shared_payment_granted_token?: string, shopeepay?: array{}, sofort?: array{country: string}, stripe_balance?: array{account?: string}, sunbit?: array{}, swish?: array{}, tamara?: array{}, twint?: array{}, type: string, upi?: array{mandate_options?: array{amount?: int, amount_type?: string, description?: string, end_date?: int}}, us_bank_account?: array{account_holder_type?: string, account_number?: string, account_type?: string, financial_connections_account?: string, routing_number?: string}, wechat_pay?: array{}, zip?: array{}}, payment_method_options?: array{acss_debit?: null|array{mandate_options?: array{custom_mandate_url?: null|string, interval_description?: string, payment_schedule?: string, transaction_type?: string}, setup_future_usage?: null|string, target_date?: string, verification_method?: string}, affirm?: null|array{capture_method?: null|string, preferred_locale?: string, setup_future_usage?: string}, afterpay_clearpay?: null|array{capture_method?: null|string, reference?: string, setup_future_usage?: string}, alipay?: null|array{setup_future_usage?: null|string}, alma?: null|array{capture_method?: null|string}, amazon_pay?: null|array{capture_method?: null|string, setup_future_usage?: null|string}, au_becs_debit?: null|array{setup_future_usage?: null|string, target_date?: string}, bacs_debit?: null|array{mandate_options?: array{reference_prefix?: null|string}, setup_future_usage?: null|string, target_date?: string}, bancontact?: null|array{preferred_language?: string, setup_future_usage?: null|string}, billie?: null|array{capture_method?: null|string}, bizum?: null|array{}, blik?: null|array{code?: string, setup_future_usage?: null|string}, boleto?: null|array{expires_after_days?: int, setup_future_usage?: null|string}, card?: null|array{capture_by?: string, capture_delay?: array{days?: int, hours?: int}, capture_method?: null|string, cvc_token?: string, installments?: array{enabled?: bool, plan?: null|array{count?: int, interval?: string, type: string}}, mandate_options?: array{amount: int, amount_type: string, description?: string, end_date?: int, interval: string, interval_count?: int, reference: string, start_date: int, supported_types?: string[]}, moto?: bool, network?: string, payment_details?: array{money_services?: array{account_funding?: array{digital_asset_category?: string}}}, request_decremental_authorization?: string, request_extended_authorization?: string, request_incremental_authorization?: string, request_multicapture?: string, request_overcapture?: string, request_partial_authorization?: string, request_reauthorization?: string, request_three_d_secure?: string, require_cvc_recollection?: bool, setup_future_usage?: null|string, statement_descriptor_suffix_kana?: null|string, statement_descriptor_suffix_kanji?: null|string, statement_details?: null|array{address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, phone?: string}, three_d_secure?: array{ares_trans_status?: string, cryptogram: string, electronic_commerce_indicator?: string, exemption_indicator?: string, network_options?: array{cartes_bancaires?: array{cb_avalgo: string, cb_exemption?: string, cb_score?: int}}, requestor_challenge_indicator?: string, transaction_id: string, version: string}}, card_present?: null|array{capture_by?: string, capture_delay?: array{days?: int, hours?: int}, capture_method?: string, payment_details?: array{money_services?: array{account_funding?: array{digital_asset_category?: string}}}, request_extended_authorization?: bool, request_incremental_authorization_support?: bool, request_multicapture?: string, request_reauthorization?: string, routing?: array{requested_priority?: string}}, cashapp?: null|array{capture_method?: null|string, setup_future_usage?: null|string}, crypto?: null|array{deposit_options?: array{networks: string[], static_address?: bool}, mode?: string, setup_future_usage?: string, transaction_verification_options?: array{network: string, transaction_hash: string}}, customer_balance?: null|array{bank_transfer?: array{eu_bank_transfer?: array{country: string}, requested_address_types?: string[], type: string}, funding_type?: string, setup_future_usage?: string}, eps?: null|array{setup_future_usage?: string}, fpx?: null|array{setup_future_usage?: string}, gift_card?: null|array{ignore_application_fee?: string, ignore_transfer_data?: string, request_partial_authorization?: string}, giropay?: null|array{setup_future_usage?: string}, gopay?: null|array{setup_future_usage?: string}, grabpay?: null|array{setup_future_usage?: string}, id_bank_transfer?: null|array{expires_after?: int, expires_at?: int, setup_future_usage?: string}, ideal?: null|array{setup_future_usage?: null|string}, interac_present?: null|array{}, kakao_pay?: null|array{capture_method?: null|string, setup_future_usage?: null|string}, klarna?: null|array{capture_method?: null|string, on_demand?: array{average_amount?: int, maximum_amount?: int, minimum_amount?: int, purchase_interval?: string, purchase_interval_count?: int}, preferred_locale?: string, setup_future_usage?: string, subscriptions?: null|array{interval: string, interval_count?: int, name?: string, next_billing?: array{amount: int, date: string}, reference: string}[], supplementary_purchase_data?: null|array{bus_reservation_details?: null|array{affiliate_name?: string, arrival?: array{address?: array{city?: string, country?: string, postal_code?: string, region?: string, street_address?: string, street_address2?: string}, arrival_location?: string}, carrier_name?: string, currency?: string, departure?: array{address?: array{city?: string, country?: string, postal_code?: string, region?: string, street_address?: string, street_address2?: string}, departs_at?: int, departure_location?: string}, insurances?: array{currency?: string, insurance_company_name?: string, insurance_type?: string, price?: int}[], passengers?: array{family_name?: string, given_name?: string}[], price?: int, ticket_class?: string}[], event_reservation_details?: null|array{access_controlled_venue?: bool, address?: array{city?: string, country?: string, postal_code?: string, region?: string, street_address?: string, street_address2?: string}, affiliate_name?: string, ends_at?: int, event_company_name?: string, event_name?: string, event_type?: string, insurances?: array{currency?: string, insurance_company_name?: string, insurance_type?: string, price?: int}[], starts_at?: int, venue_name?: string}[], ferry_reservation_details?: null|array{affiliate_name?: string, arrival?: array{address?: array{city?: string, country?: string, postal_code?: string, region?: string, street_address?: string, street_address2?: string}, arrival_location?: string}, carrier_name?: string, currency?: string, departure?: array{address?: array{city?: string, country?: string, postal_code?: string, region?: string, street_address?: string, street_address2?: string}, departs_at?: int, departure_location?: string}, insurances?: array{currency?: string, insurance_company_name?: string, insurance_type?: string, price?: int}[], passengers?: array{family_name?: string, given_name?: string}[], price?: int, ticket_class?: string}[], insurances?: null|array{currency?: string, insurance_company_name?: string, insurance_type?: string, price?: int}[], marketplace_sellers?: null|array{line_item_references?: string[], marketplace_seller_address?: array{city?: string, country?: string, postal_code?: string, region?: string, street_address?: string, street_address2?: string}, marketplace_seller_name?: string, marketplace_seller_reference?: string, number_of_transactions?: int, product_category?: string, seller_last_login_at?: int, seller_rating?: string, seller_registered_at?: int, seller_updated_at?: int, shipping_references?: string[], volume_of_transactions?: int}[], round_trip_reservation_details?: null|array{affiliate_name?: string, arrival?: array{address?: array{city?: string, country?: string, postal_code?: string, region?: string, street_address?: string, street_address2?: string}, arrival_location?: string}, carrier_name?: string, currency?: string, departure?: array{address?: array{city?: string, country?: string, postal_code?: string, region?: string, street_address?: string, street_address2?: string}, departs_at?: int, departure_location?: string}, insurances?: array{currency?: string, insurance_company_name?: string, insurance_type?: string, price?: int}[], passengers?: array{family_name?: string, given_name?: string}[], price?: int, ticket_class?: string}[], train_reservation_details?: null|array{affiliate_name?: string, arrival?: array{address?: array{city?: string, country?: string, postal_code?: string, region?: string, street_address?: string, street_address2?: string}, arrival_location?: string}, carrier_name?: string, currency?: string, departure?: array{address?: array{city?: string, country?: string, postal_code?: string, region?: string, street_address?: string, street_address2?: string}, departs_at?: int, departure_location?: string}, insurances?: array{currency?: string, insurance_company_name?: string, insurance_type?: string, price?: int}[], passengers?: array{family_name?: string, given_name?: string}[], price?: int, ticket_class?: string}[], vouchers?: null|array{affiliate_name?: string, ends_at?: int, starts_at?: int, voucher_company?: string, voucher_name?: string, voucher_type?: string}[]}}, konbini?: null|array{confirmation_number?: null|string, expires_after_days?: null|int, expires_at?: null|int, product_description?: null|string, setup_future_usage?: string}, kr_card?: null|array{capture_method?: null|string, setup_future_usage?: null|string}, link?: null|array{capture_method?: null|string, persistent_token?: string, setup_future_usage?: null|string}, mb_way?: null|array{setup_future_usage?: string}, mobilepay?: null|array{capture_method?: null|string, setup_future_usage?: string}, multibanco?: null|array{setup_future_usage?: string}, naver_pay?: null|array{capture_method?: null|string, setup_future_usage?: null|string}, nz_bank_account?: null|array{setup_future_usage?: null|string, target_date?: string}, oxxo?: null|array{expires_after_days?: int, setup_future_usage?: string}, p24?: null|array{setup_future_usage?: string, tos_shown_and_accepted?: bool}, pay_by_bank?: null|array{}, payco?: null|array{capture_method?: null|string}, paynow?: null|array{setup_future_usage?: string}, paypal?: null|array{capture_method?: null|string, line_items?: array{category?: string, description?: string, name: string, quantity: int, sku?: string, sold_by?: string, tax?: array{amount: int, behavior: string}, unit_amount: int}[], preferred_locale?: string, reference?: string, reference_id?: string, risk_correlation_id?: string, setup_future_usage?: null|string, subsellers?: string[]}, paypay?: null|array{capture_method?: null|string}, payto?: null|array{mandate_options?: array{amount?: null|int, amount_type?: null|string, end_date?: null|string, payment_schedule?: null|string, payments_per_period?: null|int, purpose?: null|string}, setup_future_usage?: null|string}, pix?: null|array{amount_includes_iof?: string, expires_after_seconds?: int, expires_at?: int, mandate_options?: array{amount?: int, amount_includes_iof?: string, amount_type?: string, currency?: string, end_date?: string, payment_schedule?: string, reference?: string, start_date?: string}, setup_future_usage?: string}, promptpay?: null|array{setup_future_usage?: string}, qris?: null|array{setup_future_usage?: string}, rechnung?: null|array{}, revolut_pay?: null|array{capture_method?: null|string, setup_future_usage?: null|string}, samsung_pay?: null|array{capture_method?: null|string}, satispay?: null|array{capture_method?: null|string}, scalapay?: null|array{capture_method?: null|string}, sepa_debit?: null|array{mandate_options?: array{reference_prefix?: null|string}, setup_future_usage?: null|string, target_date?: string}, shopeepay?: null|array{setup_future_usage?: string}, sofort?: null|array{preferred_language?: null|string, setup_future_usage?: null|string}, stripe_balance?: null|array{mandate_options?: array{stripe_balance_debit_agreement?: string}, setup_future_usage?: null|string}, swish?: null|array{reference?: null|string, setup_future_usage?: string}, twint?: null|array{setup_future_usage?: string}, upi?: null|array{mandate_options?: array{amount?: int, amount_type?: string, description?: string, end_date?: int}, setup_future_usage?: null|string}, us_bank_account?: null|array{financial_connections?: array{filters?: array{account_subcategories?: string[], institution?: string}, manual_entry?: array{mode: string}, permissions?: string[], prefetch?: string[], return_url?: string}, mandate_options?: array{collection_method?: null|string}, networks?: array{requested?: string[]}, setup_future_usage?: null|string, target_date?: string, transaction_purpose?: null|string, verification_method?: string}, wechat_pay?: null|array{app_id?: string, buyer_id?: string, client?: string, setup_future_usage?: string}, zip?: null|array{setup_future_usage?: string}}, payment_method_types?: string[], radar_options?: array{session?: string}, receipt_email?: null|string, return_url?: string, setup_future_usage?: null|string, shipping?: null|array{address: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, carrier?: string, name: string, phone?: string, tracking_number?: string}, use_stripe_sdk?: bool} $params * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @return \Stripe\PaymentIntent @@ -169,7 +169,7 @@ public function confirm($id, $params = null, $opts = null) * parameters available in the confirm * API when you supply confirm=true. * - * @param null|array{allocated_funds?: array{enabled?: bool}, allowed_payment_method_types?: string[], amount: int, amount_details?: array{discount_amount?: null|int, enforce_arithmetic_validation?: bool, line_items?: null|array{discount_amount?: int, payment_method_options?: array{card?: array{commodity_code?: string, fleet_data?: array{product_type: string, service_type?: string}}, card_present?: array{commodity_code?: string}, klarna?: array{image_url?: string, product_url?: string, reference?: string, subscription_reference?: string}, paypal?: array{category?: string, description?: string, sold_by?: string}}, product_code?: string, product_name: string, quantity: int, quantity_precision?: int, tax?: array{total_tax_amount: int}, unit_cost: int, unit_of_measure?: string}[], shipping?: null|array{amount?: null|int, from_postal_code?: null|string, to_postal_code?: null|string}, surcharge?: null|array{amount?: null|int, enforce_validation?: null|string}, tax?: null|array{total_tax_amount: int}}, application_fee_amount?: int, automatic_payment_methods?: array{allow_redirects?: string, enabled: bool}, capture_method?: string, confirm?: bool, confirmation_method?: string, confirmation_token?: string, currency: string, customer?: string, customer_account?: string, description?: string, error_on_requires_action?: bool, excluded_payment_method_types?: string[], expand?: string[], fx_quote?: string, hooks?: array{inputs?: array{tax?: array{calculation: null|string}}}, mandate?: string, mandate_data?: null|array{customer_acceptance: array{accepted_at?: int, offline?: array{}, online?: array{ip_address: string, user_agent: string}, type: string}}, metadata?: array, off_session?: array|bool|string, on_behalf_of?: string, payment_details?: array{benefit?: array{fr_meal_voucher?: null|array{enabled?: string, siret?: string}}, car_rental?: array{affiliate?: array{name: string}, booking_number: string, car_class_code?: string, car_make?: string, car_model?: string, company?: string, customer_service_phone_number?: string, days_rented: int, delivery?: array{mode?: string, recipient?: array{email?: string, name?: string, phone?: string}}, distance?: array{amount?: int, unit?: string}, drivers?: array{driver_identification_number?: string, driver_tax_number?: string, name: string}[], extra_charges?: string[], no_show?: bool, pickup_address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, pickup_at: int, pickup_location_name?: string, rate_amount?: int, rate_interval?: string, renter_name?: string, return_address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, return_at: int, return_location_name?: string, tax_exempt?: bool, vehicle_identification_number?: string}, car_rental_data?: null|array{affiliate?: array{code?: string, name?: string}, booking_number?: string, carrier_name?: string, customer_service_phone_number?: string, days_rented?: int, distance?: array{amount: int, unit: string}, drivers?: array{date_of_birth?: array{day: int, month: int, year: int}, driver_identification_number?: string, driver_tax_number?: string, name: string}[], drop_off: array{address: array{city: string, country: string, line1: string, line2?: string, postal_code: string, state?: string}, location_name?: string, time: int}, insurances?: array{amount: int, currency?: string, insurance_company_name?: string, insurance_type: string}[], no_show_indicator?: bool, pickup: array{address: array{city: string, country: string, line1: string, line2?: string, postal_code: string, state?: string}, location_name?: string, time: int}, renter_name?: string, total: array{amount: int, currency?: string, discounts?: array{corporate_client_code?: string, coupon?: string, maximum_free_miles_or_kilometers?: int}, extra_charges?: array{amount: int, type: string}[], rate_per_unit?: int, rate_unit?: string, tax?: array{tax_exempt_indicator?: bool, taxes?: array{amount?: int, rate?: int, type?: string}[]}}, vehicle?: array{make?: string, model?: string, odometer?: int, type?: string, vehicle_class?: string, vehicle_identification_number?: string}}[], customer_reference?: null|string, event_details?: array{access_controlled_venue?: bool, address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, affiliate?: array{name: string}, company?: string, delivery?: array{mode?: string, recipient?: array{email?: string, name?: string, phone?: string}}, ends_at?: int, genre?: string, name: string, starts_at?: int}, fleet_data?: null|array{primary_fuel_fields?: array{brand?: string}, station?: array{additional_contact_info?: string, customer_service_phone_number?: string, partner_id_code?: string, phone_number?: string, service_location?: array{city?: string, country?: string, line1: string, line2?: string, postal_code?: string, state?: string}, url?: string}, vat?: array{iob_indicator: string}}[], flight?: array{affiliate?: array{name: string}, agency_number?: string, carrier?: string, delivery?: array{mode?: string, recipient?: array{email?: string, name?: string, phone?: string}}, passenger_name?: string, passengers?: array{name: string}[], segments: array{amount?: int, arrival_airport?: string, arrives_at?: int, carrier?: string, departs_at: int, departure_airport?: string, flight_number?: string, service_class?: string}[], ticket_number?: string}, flight_data?: null|array{affiliate?: array{code?: string, name?: string, travel_authorization_code?: string}, booking_number?: string, computerized_reservation_system?: string, endorsements_and_restrictions?: string, insurances?: array{amount: int, currency?: string, insurance_company_name?: string, insurance_type: string}[], passengers?: array{name: string}[], segments: array{amount?: int, arrival: array{airport: string, arrives_at?: int, city?: string, country?: string}, carrier_code: string, carrier_name?: string, currency?: string, departure: array{airport: string, city?: string, country?: string, departs_at: int}, exchange_ticket_number?: string, fare_basis_code?: string, fees?: int, flight_number?: string, is_stop_over_indicator?: bool, refundable?: bool, service_class: string, tax_amount?: int, ticket_number?: string}[], ticket_electronically_issued_indicator?: bool, total: array{amount: int, credit_reason?: string, currency?: string, discounts?: array{corporate_client_code?: string}, extra_charges?: array{amount?: int, type?: string}[], tax?: array{taxes?: array{amount?: int, rate?: int, type?: string}[]}}, transaction_type?: string}[], location?: string, lodging?: array{address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, adults?: int, affiliate?: array{name: string}, booking_number?: string, category?: string, checkin_at: int, checkout_at: int, customer_service_phone_number?: string, daily_room_rate_amount?: int, delivery?: array{mode?: string, recipient?: array{email?: string, name?: string, phone?: string}}, extra_charges?: string[], fire_safety_act_compliance?: bool, name?: string, no_show?: bool, number_of_rooms?: int, passengers?: array{name: string}[], property_phone_number?: string, room_class?: string, room_nights?: int, total_room_tax_amount?: int, total_tax_amount?: int}, lodging_data?: null|array{accommodation?: array{accommodation_type?: string, bed_type?: string, daily_rate_amount?: int, nights?: int, number_of_rooms?: int, rate_type?: string, smoking_indicator?: bool}, affiliate?: array{code?: string, name?: string}, booking_number?: string, checkin_at: int, checkout_at: int, customer_service_phone_number?: string, fire_safety_act_compliance_indicator?: bool, guests?: array{name: string}[], host?: array{address?: array{city: string, country: string, line1: string, line2?: string, postal_code: string, state?: string}, country_of_domicile?: string, host_reference?: string, host_type?: string, name?: string, number_of_reservations?: int, property_phone_number?: string, registered_at?: int}, insurances?: array{amount: int, currency?: string, insurance_company_name?: string, insurance_type: string}[], no_show_indicator?: bool, renter_id_number?: string, renter_name?: string, total: array{amount: int, cash_advances?: int, currency?: string, discounts?: array{corporate_client_code?: string, coupon?: string}, extra_charges?: array{amount?: int, type?: string}[], prepaid_amount?: int, tax?: array{tax_exempt_indicator?: bool, taxes?: array{amount?: int, rate?: int, type?: string}[]}}}[], money_services?: null|array{account_funding?: null|array{sender_details?: null|array{address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, date_of_birth?: array{day: int, month: int, year: int}, email?: string, given_name?: string, phone?: string, surname?: string}}, beneficiary_details?: null|array{account_reference?: string, address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, date_of_birth?: array{day: int, month: int, year: int}, email?: string, given_name?: string, phone?: string, surname?: string}, transaction_type?: null|string}, order_reference?: null|string, subscription?: array{affiliate?: array{name: string}, auto_renewal?: bool, billing_interval?: array{count: int, interval: string}, ends_at?: int, name: string, starts_at?: int}}, payment_method?: string, payment_method_configuration?: string, payment_method_data?: array{acss_debit?: array{account_number: string, institution_number: string, transit_number: string}, affirm?: array{}, afterpay_clearpay?: array{}, alipay?: array{}, allow_redisplay?: string, alma?: array{}, amazon_pay?: array{}, au_becs_debit?: array{account_number: string, bsb_number: string}, bacs_debit?: array{account_number?: string, sort_code?: string}, bancontact?: array{}, billie?: array{}, billing_details?: array{address?: null|array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, email?: null|string, name?: null|string, phone?: null|string, tax_id?: string}, bizum?: array{}, blik?: array{}, boleto?: array{tax_id: string}, cashapp?: array{}, crypto?: array{}, customer_balance?: array{}, eps?: array{bank?: string}, fpx?: array{account_holder_type?: string, bank: string}, gift_card?: array{gift_card: string}, giropay?: array{}, gopay?: array{}, grabpay?: array{}, id_bank_transfer?: array{bank?: string}, ideal?: array{bank?: string}, interac_present?: array{}, kakao_pay?: array{}, klarna?: array{dob?: array{day: int, month: int, year: int}}, konbini?: array{}, kr_card?: array{}, link?: array{}, mb_way?: array{}, metadata?: array, mobilepay?: array{}, multibanco?: array{}, naver_pay?: array{funding?: string}, nz_bank_account?: array{account_holder_name?: string, account_number: string, bank_code: string, branch_code: string, reference?: string, suffix: string}, oxxo?: array{}, p24?: array{bank?: string}, pay_by_bank?: array{}, payco?: array{}, paynow?: array{}, paypal?: array{}, paypay?: array{}, payto?: array{account_number?: string, bsb_number?: string, pay_id?: string}, pix?: array{}, promptpay?: array{}, qris?: array{}, radar_options?: array{session?: string}, rechnung?: array{dob: array{day: int, month: int, year: int}}, revolut_pay?: array{}, samsung_pay?: array{}, satispay?: array{}, scalapay?: array{}, sepa_debit?: array{iban: string}, shared_payment_granted_token?: string, shopeepay?: array{}, sofort?: array{country: string}, stripe_balance?: array{account?: string}, sunbit?: array{}, swish?: array{}, tamara?: array{}, twint?: array{}, type: string, upi?: array{mandate_options?: array{amount?: int, amount_type?: string, description?: string, end_date?: int}}, us_bank_account?: array{account_holder_type?: string, account_number?: string, account_type?: string, financial_connections_account?: string, routing_number?: string}, wechat_pay?: array{}, zip?: array{}}, payment_method_options?: array{acss_debit?: null|array{mandate_options?: array{custom_mandate_url?: null|string, interval_description?: string, payment_schedule?: string, transaction_type?: string}, setup_future_usage?: null|string, target_date?: string, verification_method?: string}, affirm?: null|array{capture_method?: null|string, preferred_locale?: string, setup_future_usage?: string}, afterpay_clearpay?: null|array{capture_method?: null|string, reference?: string, setup_future_usage?: string}, alipay?: null|array{setup_future_usage?: null|string}, alma?: null|array{capture_method?: null|string}, amazon_pay?: null|array{capture_method?: null|string, setup_future_usage?: null|string}, au_becs_debit?: null|array{setup_future_usage?: null|string, target_date?: string}, bacs_debit?: null|array{mandate_options?: array{reference_prefix?: null|string}, setup_future_usage?: null|string, target_date?: string}, bancontact?: null|array{preferred_language?: string, setup_future_usage?: null|string}, billie?: null|array{capture_method?: null|string}, bizum?: null|array{}, blik?: null|array{code?: string, setup_future_usage?: null|string}, boleto?: null|array{expires_after_days?: int, setup_future_usage?: null|string}, card?: null|array{capture_by?: string, capture_delay?: array{days?: int, hours?: int}, capture_method?: null|string, cvc_token?: string, installments?: array{enabled?: bool, plan?: null|array{count?: int, interval?: string, type: string}}, mandate_options?: array{amount: int, amount_type: string, description?: string, end_date?: int, interval: string, interval_count?: int, reference: string, start_date: int, supported_types?: string[]}, moto?: bool, network?: string, payment_details?: array{money_services?: array{account_funding?: array{digital_asset_category?: string}}}, request_decremental_authorization?: string, request_extended_authorization?: string, request_incremental_authorization?: string, request_multicapture?: string, request_overcapture?: string, request_partial_authorization?: string, request_reauthorization?: string, request_three_d_secure?: string, require_cvc_recollection?: bool, setup_future_usage?: null|string, statement_descriptor_suffix_kana?: null|string, statement_descriptor_suffix_kanji?: null|string, statement_details?: null|array{address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, phone?: string}, three_d_secure?: array{ares_trans_status?: string, cryptogram: string, electronic_commerce_indicator?: string, exemption_indicator?: string, network_options?: array{cartes_bancaires?: array{cb_avalgo: string, cb_exemption?: string, cb_score?: int}}, requestor_challenge_indicator?: string, transaction_id: string, version: string}}, card_present?: null|array{capture_by?: string, capture_delay?: array{days?: int, hours?: int}, capture_method?: string, payment_details?: array{money_services?: array{account_funding?: array{digital_asset_category?: string}}}, request_extended_authorization?: bool, request_incremental_authorization_support?: bool, request_multicapture?: string, request_reauthorization?: string, routing?: array{requested_priority?: string}}, cashapp?: null|array{capture_method?: null|string, setup_future_usage?: null|string}, crypto?: null|array{deposit_options?: array{networks: string[], static_address?: bool}, mode?: string, setup_future_usage?: string, transaction_verification_options?: array{network: string, transaction_hash: string}}, customer_balance?: null|array{bank_transfer?: array{eu_bank_transfer?: array{country: string}, requested_address_types?: string[], type: string}, funding_type?: string, setup_future_usage?: string}, eps?: null|array{setup_future_usage?: string}, fpx?: null|array{setup_future_usage?: string}, gift_card?: null|array{ignore_application_fee?: string, ignore_transfer_data?: string, request_partial_authorization?: string}, giropay?: null|array{setup_future_usage?: string}, gopay?: null|array{setup_future_usage?: string}, grabpay?: null|array{setup_future_usage?: string}, id_bank_transfer?: null|array{expires_after?: int, expires_at?: int, setup_future_usage?: string}, ideal?: null|array{setup_future_usage?: null|string}, interac_present?: null|array{}, kakao_pay?: null|array{capture_method?: null|string, setup_future_usage?: null|string}, klarna?: null|array{capture_method?: null|string, on_demand?: array{average_amount?: int, maximum_amount?: int, minimum_amount?: int, purchase_interval?: string, purchase_interval_count?: int}, preferred_locale?: string, setup_future_usage?: string, subscriptions?: null|array{interval: string, interval_count?: int, name?: string, next_billing?: array{amount: int, date: string}, reference: string}[], supplementary_purchase_data?: null|array{bus_reservation_details?: null|array{affiliate_name?: string, arrival?: array{address?: array{city?: string, country?: string, postal_code?: string, region?: string, street_address?: string, street_address2?: string}, arrival_location?: string}, carrier_name?: string, currency?: string, departure?: array{address?: array{city?: string, country?: string, postal_code?: string, region?: string, street_address?: string, street_address2?: string}, departs_at?: int, departure_location?: string}, insurances?: array{currency?: string, insurance_company_name?: string, insurance_type?: string, price?: int}[], passengers?: array{family_name?: string, given_name?: string}[], price?: int, ticket_class?: string}[], event_reservation_details?: null|array{access_controlled_venue?: bool, address?: array{city?: string, country?: string, postal_code?: string, region?: string, street_address?: string, street_address2?: string}, affiliate_name?: string, ends_at?: int, event_company_name?: string, event_name?: string, event_type?: string, insurances?: array{currency?: string, insurance_company_name?: string, insurance_type?: string, price?: int}[], starts_at?: int, venue_name?: string}[], ferry_reservation_details?: null|array{affiliate_name?: string, arrival?: array{address?: array{city?: string, country?: string, postal_code?: string, region?: string, street_address?: string, street_address2?: string}, arrival_location?: string}, carrier_name?: string, currency?: string, departure?: array{address?: array{city?: string, country?: string, postal_code?: string, region?: string, street_address?: string, street_address2?: string}, departs_at?: int, departure_location?: string}, insurances?: array{currency?: string, insurance_company_name?: string, insurance_type?: string, price?: int}[], passengers?: array{family_name?: string, given_name?: string}[], price?: int, ticket_class?: string}[], insurances?: null|array{currency?: string, insurance_company_name?: string, insurance_type?: string, price?: int}[], marketplace_sellers?: null|array{line_item_references?: string[], marketplace_seller_address?: array{city?: string, country?: string, postal_code?: string, region?: string, street_address?: string, street_address2?: string}, marketplace_seller_name?: string, marketplace_seller_reference?: string, number_of_transactions?: int, product_category?: string, seller_last_login_at?: int, seller_rating?: string, seller_registered_at?: int, seller_updated_at?: int, shipping_references?: string[], volume_of_transactions?: int}[], round_trip_reservation_details?: null|array{affiliate_name?: string, arrival?: array{address?: array{city?: string, country?: string, postal_code?: string, region?: string, street_address?: string, street_address2?: string}, arrival_location?: string}, carrier_name?: string, currency?: string, departure?: array{address?: array{city?: string, country?: string, postal_code?: string, region?: string, street_address?: string, street_address2?: string}, departs_at?: int, departure_location?: string}, insurances?: array{currency?: string, insurance_company_name?: string, insurance_type?: string, price?: int}[], passengers?: array{family_name?: string, given_name?: string}[], price?: int, ticket_class?: string}[], train_reservation_details?: null|array{affiliate_name?: string, arrival?: array{address?: array{city?: string, country?: string, postal_code?: string, region?: string, street_address?: string, street_address2?: string}, arrival_location?: string}, carrier_name?: string, currency?: string, departure?: array{address?: array{city?: string, country?: string, postal_code?: string, region?: string, street_address?: string, street_address2?: string}, departs_at?: int, departure_location?: string}, insurances?: array{currency?: string, insurance_company_name?: string, insurance_type?: string, price?: int}[], passengers?: array{family_name?: string, given_name?: string}[], price?: int, ticket_class?: string}[], vouchers?: null|array{affiliate_name?: string, ends_at?: int, starts_at?: int, voucher_company?: string, voucher_name?: string, voucher_type?: string}[]}}, konbini?: null|array{confirmation_number?: null|string, expires_after_days?: null|int, expires_at?: null|int, product_description?: null|string, setup_future_usage?: string}, kr_card?: null|array{capture_method?: null|string, setup_future_usage?: null|string}, link?: null|array{capture_method?: null|string, persistent_token?: string, setup_future_usage?: null|string}, mb_way?: null|array{setup_future_usage?: string}, mobilepay?: null|array{capture_method?: null|string, setup_future_usage?: string}, multibanco?: null|array{setup_future_usage?: string}, naver_pay?: null|array{capture_method?: null|string, setup_future_usage?: null|string}, nz_bank_account?: null|array{setup_future_usage?: null|string, target_date?: string}, oxxo?: null|array{expires_after_days?: int, setup_future_usage?: string}, p24?: null|array{setup_future_usage?: string, tos_shown_and_accepted?: bool}, pay_by_bank?: null|array{}, payco?: null|array{capture_method?: null|string}, paynow?: null|array{setup_future_usage?: string}, paypal?: null|array{capture_method?: null|string, line_items?: array{category?: string, description?: string, name: string, quantity: int, sku?: string, sold_by?: string, tax?: array{amount: int, behavior: string}, unit_amount: int}[], preferred_locale?: string, reference?: string, reference_id?: string, risk_correlation_id?: string, setup_future_usage?: null|string, subsellers?: string[]}, paypay?: null|array{capture_method?: null|string}, payto?: null|array{mandate_options?: array{amount?: null|int, amount_type?: null|string, end_date?: null|string, payment_schedule?: null|string, payments_per_period?: null|int, purpose?: null|string}, setup_future_usage?: null|string}, pix?: null|array{amount_includes_iof?: string, expires_after_seconds?: int, expires_at?: int, mandate_options?: array{amount?: int, amount_includes_iof?: string, amount_type?: string, currency?: string, end_date?: string, payment_schedule?: string, reference?: string, start_date?: string}, setup_future_usage?: string}, promptpay?: null|array{setup_future_usage?: string}, qris?: null|array{setup_future_usage?: string}, rechnung?: null|array{}, revolut_pay?: null|array{capture_method?: null|string, setup_future_usage?: null|string}, samsung_pay?: null|array{capture_method?: null|string}, satispay?: null|array{capture_method?: null|string}, scalapay?: null|array{capture_method?: null|string}, sepa_debit?: null|array{mandate_options?: array{reference_prefix?: null|string}, setup_future_usage?: null|string, target_date?: string}, shopeepay?: null|array{setup_future_usage?: string}, sofort?: null|array{preferred_language?: null|string, setup_future_usage?: null|string}, stripe_balance?: null|array{mandate_options?: array{stripe_balance_debit_agreement?: string}, setup_future_usage?: null|string}, swish?: null|array{reference?: null|string, setup_future_usage?: string}, twint?: null|array{setup_future_usage?: string}, upi?: null|array{mandate_options?: array{amount?: int, amount_type?: string, description?: string, end_date?: int}, setup_future_usage?: null|string}, us_bank_account?: null|array{financial_connections?: array{filters?: array{account_subcategories?: string[], institution?: string}, manual_entry?: array{mode: string}, permissions?: string[], prefetch?: string[], return_url?: string}, mandate_options?: array{collection_method?: null|string}, networks?: array{requested?: string[]}, setup_future_usage?: null|string, target_date?: string, transaction_purpose?: null|string, verification_method?: string}, wechat_pay?: null|array{app_id?: string, buyer_id?: string, client?: string, setup_future_usage?: string}, zip?: null|array{setup_future_usage?: string}}, payment_method_types?: string[], payments_orchestration?: array{enabled: bool, payment_reference?: string}, radar_options?: array{session?: string}, receipt_email?: string, return_url?: string, secret_key_confirmation?: string, setup_future_usage?: string, shipping?: array{address: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, carrier?: string, name: string, phone?: string, tracking_number?: string}, statement_descriptor?: string, statement_descriptor_suffix?: string, transfer_data?: array{amount?: int, description?: string, destination: string, metadata?: null|array, payment_data?: array{description?: string, metadata?: null|array}}, transfer_group?: string, use_stripe_sdk?: bool} $params + * @param null|array{allocated_funds?: array{enabled?: bool}, allowed_payment_method_types?: string[], amount: int, amount_details?: array{discount_amount?: null|int, enforce_arithmetic_validation?: bool, line_items?: null|array{discount_amount?: int, payment_method_options?: array{card?: array{commodity_code?: string, fleet_data?: array{product_type: string, service_type?: string}}, card_present?: array{commodity_code?: string}, klarna?: array{image_url?: string, product_url?: string, reference?: string, subscription_reference?: string}, paypal?: array{category?: string, description?: string, sold_by?: string}}, product_code?: string, product_name: string, quantity: int, quantity_precision?: int, tax?: array{total_tax_amount: int}, unit_cost: int, unit_of_measure?: string}[], shipping?: null|array{amount?: null|int, from_postal_code?: null|string, to_postal_code?: null|string}, surcharge?: null|array{amount?: null|int, enforce_validation?: null|string}, tax?: null|array{total_tax_amount: int}, tip?: null|array{amount?: null|int}}, application_fee_amount?: int, automatic_payment_methods?: array{allow_redirects?: string, enabled: bool}, capture_method?: string, confirm?: bool, confirmation_method?: string, confirmation_token?: string, currency: string, customer?: string, customer_account?: string, description?: string, error_on_requires_action?: bool, excluded_payment_method_types?: string[], expand?: string[], fx_quote?: string, hooks?: array{inputs?: array{tax?: array{calculation: null|string}}}, mandate?: string, mandate_data?: null|array{customer_acceptance: array{accepted_at?: int, offline?: array{}, online?: array{ip_address: string, user_agent: string}, type: string}}, metadata?: array, off_session?: array|bool|string, on_behalf_of?: string, payment_details?: array{benefit?: array{fr_meal_voucher?: null|array{enabled?: string, siret?: string}}, car_rental?: array{affiliate?: array{name: string}, booking_number: string, car_class_code?: string, car_make?: string, car_model?: string, company?: string, customer_service_phone_number?: string, days_rented: int, delivery?: array{mode?: string, recipient?: array{email?: string, name?: string, phone?: string}}, distance?: array{amount?: int, unit?: string}, drivers?: array{driver_identification_number?: string, driver_tax_number?: string, name: string}[], extra_charges?: string[], no_show?: bool, pickup_address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, pickup_at: int, pickup_location_name?: string, rate_amount?: int, rate_interval?: string, renter_name?: string, return_address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, return_at: int, return_location_name?: string, tax_exempt?: bool, vehicle_identification_number?: string}, car_rental_data?: null|array{affiliate?: array{code?: string, name?: string}, booking_number?: string, carrier_name?: string, customer_service_phone_number?: string, days_rented?: int, distance?: array{amount: int, unit: string}, drivers?: array{date_of_birth?: array{day: int, month: int, year: int}, driver_identification_number?: string, driver_tax_number?: string, name: string}[], drop_off: array{address: array{city: string, country: string, line1: string, line2?: string, postal_code: string, state?: string}, location_name?: string, time: int}, insurances?: array{amount: int, currency?: string, insurance_company_name?: string, insurance_type: string}[], no_show_indicator?: bool, pickup: array{address: array{city: string, country: string, line1: string, line2?: string, postal_code: string, state?: string}, location_name?: string, time: int}, renter_name?: string, total: array{amount: int, currency?: string, discounts?: array{corporate_client_code?: string, coupon?: string, maximum_free_miles_or_kilometers?: int}, extra_charges?: array{amount: int, type: string}[], rate_per_unit?: int, rate_unit?: string, tax?: array{tax_exempt_indicator?: bool, taxes?: array{amount?: int, rate?: int, type?: string}[]}}, vehicle?: array{make?: string, model?: string, odometer?: int, type?: string, vehicle_class?: string, vehicle_identification_number?: string}}[], customer_reference?: null|string, event_details?: array{access_controlled_venue?: bool, address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, affiliate?: array{name: string}, company?: string, delivery?: array{mode?: string, recipient?: array{email?: string, name?: string, phone?: string}}, ends_at?: int, genre?: string, name: string, starts_at?: int}, fleet_data?: null|array{primary_fuel_fields?: array{brand?: string}, station?: array{additional_contact_info?: string, customer_service_phone_number?: string, partner_id_code?: string, phone_number?: string, service_location?: array{city?: string, country?: string, line1: string, line2?: string, postal_code?: string, state?: string}, url?: string}, vat?: array{iob_indicator: string}}[], flight?: array{affiliate?: array{name: string}, agency_number?: string, carrier?: string, delivery?: array{mode?: string, recipient?: array{email?: string, name?: string, phone?: string}}, passenger_name?: string, passengers?: array{name: string}[], segments: array{amount?: int, arrival_airport?: string, arrives_at?: int, carrier?: string, departs_at: int, departure_airport?: string, flight_number?: string, service_class?: string}[], ticket_number?: string}, flight_data?: null|array{affiliate?: array{code?: string, name?: string, travel_authorization_code?: string}, booking_number?: string, computerized_reservation_system?: string, endorsements_and_restrictions?: string, insurances?: array{amount: int, currency?: string, insurance_company_name?: string, insurance_type: string}[], passengers?: array{name: string}[], segments: array{amount?: int, arrival: array{airport: string, arrives_at?: int, city?: string, country?: string}, carrier_code: string, carrier_name?: string, currency?: string, departure: array{airport: string, city?: string, country?: string, departs_at: int}, exchange_ticket_number?: string, fare_basis_code?: string, fees?: int, flight_number?: string, is_stop_over_indicator?: bool, refundable?: bool, service_class: string, tax_amount?: int, ticket_number?: string}[], ticket_electronically_issued_indicator?: bool, total: array{amount: int, credit_reason?: string, currency?: string, discounts?: array{corporate_client_code?: string}, extra_charges?: array{amount?: int, type?: string}[], tax?: array{taxes?: array{amount?: int, rate?: int, type?: string}[]}}, transaction_type?: string}[], location?: string, lodging?: array{address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, adults?: int, affiliate?: array{name: string}, booking_number?: string, category?: string, checkin_at: int, checkout_at: int, customer_service_phone_number?: string, daily_room_rate_amount?: int, delivery?: array{mode?: string, recipient?: array{email?: string, name?: string, phone?: string}}, extra_charges?: string[], fire_safety_act_compliance?: bool, name?: string, no_show?: bool, number_of_rooms?: int, passengers?: array{name: string}[], property_phone_number?: string, room_class?: string, room_nights?: int, total_room_tax_amount?: int, total_tax_amount?: int}, lodging_data?: null|array{accommodation?: array{accommodation_type?: string, bed_type?: string, daily_rate_amount?: int, nights?: int, number_of_rooms?: int, rate_type?: string, smoking_indicator?: bool}, affiliate?: array{code?: string, name?: string}, booking_number?: string, checkin_at: int, checkout_at: int, customer_service_phone_number?: string, fire_safety_act_compliance_indicator?: bool, guests?: array{name: string}[], host?: array{address?: array{city: string, country: string, line1: string, line2?: string, postal_code: string, state?: string}, country_of_domicile?: string, host_reference?: string, host_type?: string, name?: string, number_of_reservations?: int, property_phone_number?: string, registered_at?: int}, insurances?: array{amount: int, currency?: string, insurance_company_name?: string, insurance_type: string}[], no_show_indicator?: bool, renter_id_number?: string, renter_name?: string, total: array{amount: int, cash_advances?: int, currency?: string, discounts?: array{corporate_client_code?: string, coupon?: string}, extra_charges?: array{amount?: int, type?: string}[], prepaid_amount?: int, tax?: array{tax_exempt_indicator?: bool, taxes?: array{amount?: int, rate?: int, type?: string}[]}}}[], money_services?: null|array{account_funding?: null|array{sender_details?: null|array{address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, date_of_birth?: array{day: int, month: int, year: int}, email?: string, given_name?: string, phone?: string, surname?: string}}, beneficiary_details?: null|array{account_reference?: string, address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, date_of_birth?: array{day: int, month: int, year: int}, email?: string, given_name?: string, phone?: string, surname?: string}, transaction_type?: null|string}, order_reference?: null|string, subscription?: array{affiliate?: array{name: string}, auto_renewal?: bool, billing_interval?: array{count: int, interval: string}, ends_at?: int, name: string, starts_at?: int}}, payment_method?: string, payment_method_configuration?: string, payment_method_data?: array{acss_debit?: array{account_number: string, institution_number: string, transit_number: string}, affirm?: array{}, afterpay_clearpay?: array{}, alipay?: array{}, allow_redisplay?: string, alma?: array{}, amazon_pay?: array{}, au_becs_debit?: array{account_number: string, bsb_number: string}, bacs_debit?: array{account_number?: string, sort_code?: string}, bancontact?: array{}, billie?: array{}, billing_details?: array{address?: null|array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, email?: null|string, name?: null|string, phone?: null|string, tax_id?: string}, bizum?: array{}, blik?: array{}, boleto?: array{tax_id: string}, cashapp?: array{}, crypto?: array{}, customer_balance?: array{}, eps?: array{bank?: string}, fpx?: array{account_holder_type?: string, bank: string}, gift_card?: array{gift_card: string}, giropay?: array{}, gopay?: array{}, grabpay?: array{}, id_bank_transfer?: array{bank?: string}, ideal?: array{bank?: string}, interac_present?: array{}, kakao_pay?: array{}, klarna?: array{dob?: array{day: int, month: int, year: int}}, konbini?: array{}, kr_card?: array{}, link?: array{}, mb_way?: array{}, metadata?: array, mobilepay?: array{}, multibanco?: array{}, naver_pay?: array{funding?: string}, nz_bank_account?: array{account_holder_name?: string, account_number: string, bank_code: string, branch_code: string, reference?: string, suffix: string}, oxxo?: array{}, p24?: array{bank?: string}, pay_by_bank?: array{}, payco?: array{}, paynow?: array{}, paypal?: array{}, paypay?: array{}, payto?: array{account_number?: string, bsb_number?: string, pay_id?: string}, pix?: array{}, promptpay?: array{}, qris?: array{}, radar_options?: array{session?: string}, rechnung?: array{dob: array{day: int, month: int, year: int}}, revolut_pay?: array{}, samsung_pay?: array{}, satispay?: array{}, scalapay?: array{}, sepa_debit?: array{iban: string}, shared_payment_granted_token?: string, shopeepay?: array{}, sofort?: array{country: string}, stripe_balance?: array{account?: string}, sunbit?: array{}, swish?: array{}, tamara?: array{}, twint?: array{}, type: string, upi?: array{mandate_options?: array{amount?: int, amount_type?: string, description?: string, end_date?: int}}, us_bank_account?: array{account_holder_type?: string, account_number?: string, account_type?: string, financial_connections_account?: string, routing_number?: string}, wechat_pay?: array{}, zip?: array{}}, payment_method_options?: array{acss_debit?: null|array{mandate_options?: array{custom_mandate_url?: null|string, interval_description?: string, payment_schedule?: string, transaction_type?: string}, setup_future_usage?: null|string, target_date?: string, verification_method?: string}, affirm?: null|array{capture_method?: null|string, preferred_locale?: string, setup_future_usage?: string}, afterpay_clearpay?: null|array{capture_method?: null|string, reference?: string, setup_future_usage?: string}, alipay?: null|array{setup_future_usage?: null|string}, alma?: null|array{capture_method?: null|string}, amazon_pay?: null|array{capture_method?: null|string, setup_future_usage?: null|string}, au_becs_debit?: null|array{setup_future_usage?: null|string, target_date?: string}, bacs_debit?: null|array{mandate_options?: array{reference_prefix?: null|string}, setup_future_usage?: null|string, target_date?: string}, bancontact?: null|array{preferred_language?: string, setup_future_usage?: null|string}, billie?: null|array{capture_method?: null|string}, bizum?: null|array{}, blik?: null|array{code?: string, setup_future_usage?: null|string}, boleto?: null|array{expires_after_days?: int, setup_future_usage?: null|string}, card?: null|array{capture_by?: string, capture_delay?: array{days?: int, hours?: int}, capture_method?: null|string, cvc_token?: string, installments?: array{enabled?: bool, plan?: null|array{count?: int, interval?: string, type: string}}, mandate_options?: array{amount: int, amount_type: string, description?: string, end_date?: int, interval: string, interval_count?: int, reference: string, start_date: int, supported_types?: string[]}, moto?: bool, network?: string, payment_details?: array{money_services?: array{account_funding?: array{digital_asset_category?: string}}}, request_decremental_authorization?: string, request_extended_authorization?: string, request_incremental_authorization?: string, request_multicapture?: string, request_overcapture?: string, request_partial_authorization?: string, request_reauthorization?: string, request_three_d_secure?: string, require_cvc_recollection?: bool, setup_future_usage?: null|string, statement_descriptor_suffix_kana?: null|string, statement_descriptor_suffix_kanji?: null|string, statement_details?: null|array{address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, phone?: string}, three_d_secure?: array{ares_trans_status?: string, cryptogram: string, electronic_commerce_indicator?: string, exemption_indicator?: string, network_options?: array{cartes_bancaires?: array{cb_avalgo: string, cb_exemption?: string, cb_score?: int}}, requestor_challenge_indicator?: string, transaction_id: string, version: string}}, card_present?: null|array{capture_by?: string, capture_delay?: array{days?: int, hours?: int}, capture_method?: string, payment_details?: array{money_services?: array{account_funding?: array{digital_asset_category?: string}}}, request_extended_authorization?: bool, request_incremental_authorization_support?: bool, request_multicapture?: string, request_reauthorization?: string, routing?: array{requested_priority?: string}}, cashapp?: null|array{capture_method?: null|string, setup_future_usage?: null|string}, crypto?: null|array{deposit_options?: array{networks: string[], static_address?: bool}, mode?: string, setup_future_usage?: string, transaction_verification_options?: array{network: string, transaction_hash: string}}, customer_balance?: null|array{bank_transfer?: array{eu_bank_transfer?: array{country: string}, requested_address_types?: string[], type: string}, funding_type?: string, setup_future_usage?: string}, eps?: null|array{setup_future_usage?: string}, fpx?: null|array{setup_future_usage?: string}, gift_card?: null|array{ignore_application_fee?: string, ignore_transfer_data?: string, request_partial_authorization?: string}, giropay?: null|array{setup_future_usage?: string}, gopay?: null|array{setup_future_usage?: string}, grabpay?: null|array{setup_future_usage?: string}, id_bank_transfer?: null|array{expires_after?: int, expires_at?: int, setup_future_usage?: string}, ideal?: null|array{setup_future_usage?: null|string}, interac_present?: null|array{}, kakao_pay?: null|array{capture_method?: null|string, setup_future_usage?: null|string}, klarna?: null|array{capture_method?: null|string, on_demand?: array{average_amount?: int, maximum_amount?: int, minimum_amount?: int, purchase_interval?: string, purchase_interval_count?: int}, preferred_locale?: string, setup_future_usage?: string, subscriptions?: null|array{interval: string, interval_count?: int, name?: string, next_billing?: array{amount: int, date: string}, reference: string}[], supplementary_purchase_data?: null|array{bus_reservation_details?: null|array{affiliate_name?: string, arrival?: array{address?: array{city?: string, country?: string, postal_code?: string, region?: string, street_address?: string, street_address2?: string}, arrival_location?: string}, carrier_name?: string, currency?: string, departure?: array{address?: array{city?: string, country?: string, postal_code?: string, region?: string, street_address?: string, street_address2?: string}, departs_at?: int, departure_location?: string}, insurances?: array{currency?: string, insurance_company_name?: string, insurance_type?: string, price?: int}[], passengers?: array{family_name?: string, given_name?: string}[], price?: int, ticket_class?: string}[], event_reservation_details?: null|array{access_controlled_venue?: bool, address?: array{city?: string, country?: string, postal_code?: string, region?: string, street_address?: string, street_address2?: string}, affiliate_name?: string, ends_at?: int, event_company_name?: string, event_name?: string, event_type?: string, insurances?: array{currency?: string, insurance_company_name?: string, insurance_type?: string, price?: int}[], starts_at?: int, venue_name?: string}[], ferry_reservation_details?: null|array{affiliate_name?: string, arrival?: array{address?: array{city?: string, country?: string, postal_code?: string, region?: string, street_address?: string, street_address2?: string}, arrival_location?: string}, carrier_name?: string, currency?: string, departure?: array{address?: array{city?: string, country?: string, postal_code?: string, region?: string, street_address?: string, street_address2?: string}, departs_at?: int, departure_location?: string}, insurances?: array{currency?: string, insurance_company_name?: string, insurance_type?: string, price?: int}[], passengers?: array{family_name?: string, given_name?: string}[], price?: int, ticket_class?: string}[], insurances?: null|array{currency?: string, insurance_company_name?: string, insurance_type?: string, price?: int}[], marketplace_sellers?: null|array{line_item_references?: string[], marketplace_seller_address?: array{city?: string, country?: string, postal_code?: string, region?: string, street_address?: string, street_address2?: string}, marketplace_seller_name?: string, marketplace_seller_reference?: string, number_of_transactions?: int, product_category?: string, seller_last_login_at?: int, seller_rating?: string, seller_registered_at?: int, seller_updated_at?: int, shipping_references?: string[], volume_of_transactions?: int}[], round_trip_reservation_details?: null|array{affiliate_name?: string, arrival?: array{address?: array{city?: string, country?: string, postal_code?: string, region?: string, street_address?: string, street_address2?: string}, arrival_location?: string}, carrier_name?: string, currency?: string, departure?: array{address?: array{city?: string, country?: string, postal_code?: string, region?: string, street_address?: string, street_address2?: string}, departs_at?: int, departure_location?: string}, insurances?: array{currency?: string, insurance_company_name?: string, insurance_type?: string, price?: int}[], passengers?: array{family_name?: string, given_name?: string}[], price?: int, ticket_class?: string}[], train_reservation_details?: null|array{affiliate_name?: string, arrival?: array{address?: array{city?: string, country?: string, postal_code?: string, region?: string, street_address?: string, street_address2?: string}, arrival_location?: string}, carrier_name?: string, currency?: string, departure?: array{address?: array{city?: string, country?: string, postal_code?: string, region?: string, street_address?: string, street_address2?: string}, departs_at?: int, departure_location?: string}, insurances?: array{currency?: string, insurance_company_name?: string, insurance_type?: string, price?: int}[], passengers?: array{family_name?: string, given_name?: string}[], price?: int, ticket_class?: string}[], vouchers?: null|array{affiliate_name?: string, ends_at?: int, starts_at?: int, voucher_company?: string, voucher_name?: string, voucher_type?: string}[]}}, konbini?: null|array{confirmation_number?: null|string, expires_after_days?: null|int, expires_at?: null|int, product_description?: null|string, setup_future_usage?: string}, kr_card?: null|array{capture_method?: null|string, setup_future_usage?: null|string}, link?: null|array{capture_method?: null|string, persistent_token?: string, setup_future_usage?: null|string}, mb_way?: null|array{setup_future_usage?: string}, mobilepay?: null|array{capture_method?: null|string, setup_future_usage?: string}, multibanco?: null|array{setup_future_usage?: string}, naver_pay?: null|array{capture_method?: null|string, setup_future_usage?: null|string}, nz_bank_account?: null|array{setup_future_usage?: null|string, target_date?: string}, oxxo?: null|array{expires_after_days?: int, setup_future_usage?: string}, p24?: null|array{setup_future_usage?: string, tos_shown_and_accepted?: bool}, pay_by_bank?: null|array{}, payco?: null|array{capture_method?: null|string}, paynow?: null|array{setup_future_usage?: string}, paypal?: null|array{capture_method?: null|string, line_items?: array{category?: string, description?: string, name: string, quantity: int, sku?: string, sold_by?: string, tax?: array{amount: int, behavior: string}, unit_amount: int}[], preferred_locale?: string, reference?: string, reference_id?: string, risk_correlation_id?: string, setup_future_usage?: null|string, subsellers?: string[]}, paypay?: null|array{capture_method?: null|string}, payto?: null|array{mandate_options?: array{amount?: null|int, amount_type?: null|string, end_date?: null|string, payment_schedule?: null|string, payments_per_period?: null|int, purpose?: null|string}, setup_future_usage?: null|string}, pix?: null|array{amount_includes_iof?: string, expires_after_seconds?: int, expires_at?: int, mandate_options?: array{amount?: int, amount_includes_iof?: string, amount_type?: string, currency?: string, end_date?: string, payment_schedule?: string, reference?: string, start_date?: string}, setup_future_usage?: string}, promptpay?: null|array{setup_future_usage?: string}, qris?: null|array{setup_future_usage?: string}, rechnung?: null|array{}, revolut_pay?: null|array{capture_method?: null|string, setup_future_usage?: null|string}, samsung_pay?: null|array{capture_method?: null|string}, satispay?: null|array{capture_method?: null|string}, scalapay?: null|array{capture_method?: null|string}, sepa_debit?: null|array{mandate_options?: array{reference_prefix?: null|string}, setup_future_usage?: null|string, target_date?: string}, shopeepay?: null|array{setup_future_usage?: string}, sofort?: null|array{preferred_language?: null|string, setup_future_usage?: null|string}, stripe_balance?: null|array{mandate_options?: array{stripe_balance_debit_agreement?: string}, setup_future_usage?: null|string}, swish?: null|array{reference?: null|string, setup_future_usage?: string}, twint?: null|array{setup_future_usage?: string}, upi?: null|array{mandate_options?: array{amount?: int, amount_type?: string, description?: string, end_date?: int}, setup_future_usage?: null|string}, us_bank_account?: null|array{financial_connections?: array{filters?: array{account_subcategories?: string[], institution?: string}, manual_entry?: array{mode: string}, permissions?: string[], prefetch?: string[], return_url?: string}, mandate_options?: array{collection_method?: null|string}, networks?: array{requested?: string[]}, setup_future_usage?: null|string, target_date?: string, transaction_purpose?: null|string, verification_method?: string}, wechat_pay?: null|array{app_id?: string, buyer_id?: string, client?: string, setup_future_usage?: string}, zip?: null|array{setup_future_usage?: string}}, payment_method_types?: string[], payments_orchestration?: array{enabled: bool, payment_reference?: string}, radar_options?: array{session?: string}, receipt_email?: string, return_url?: string, secret_key_confirmation?: string, setup_future_usage?: string, shipping?: array{address: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, carrier?: string, name: string, phone?: string, tracking_number?: string}, statement_descriptor?: string, statement_descriptor_suffix?: string, transfer_data?: array{amount?: int, description?: string, destination: string, metadata?: null|array, payment_data?: array{description?: string, metadata?: null|array}}, transfer_group?: string, use_stripe_sdk?: bool} $params * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @return \Stripe\PaymentIntent @@ -201,7 +201,7 @@ public function create($params = null, $opts = null) * PaymentIntent can no longer be decremented. * * @param string $id - * @param null|array{amount: int, amount_details?: array{discount_amount?: null|int, enforce_arithmetic_validation?: bool, line_items?: null|array{discount_amount?: int, payment_method_options?: array{card?: array{commodity_code?: string, fleet_data?: array{product_type: string, service_type?: string}}, card_present?: array{commodity_code?: string}, klarna?: array{image_url?: string, product_url?: string, reference?: string, subscription_reference?: string}, paypal?: array{category?: string, description?: string, sold_by?: string}}, product_code?: string, product_name: string, quantity: int, quantity_precision?: int, tax?: array{total_tax_amount: int}, unit_cost: int, unit_of_measure?: string}[], shipping?: null|array{amount?: null|int, from_postal_code?: null|string, to_postal_code?: null|string}, surcharge?: null|array{amount?: null|int, enforce_validation?: null|string}, tax?: null|array{total_tax_amount: int}}, application_fee_amount?: int, description?: string, expand?: string[], hooks?: array{inputs?: array{tax?: array{calculation: null|string}}}, metadata?: array, payment_details?: array{customer_reference?: null|string, order_reference?: null|string}, transfer_data?: array{amount?: int}} $params + * @param null|array{amount: int, amount_details?: array{discount_amount?: null|int, enforce_arithmetic_validation?: bool, line_items?: null|array{discount_amount?: int, payment_method_options?: array{card?: array{commodity_code?: string, fleet_data?: array{product_type: string, service_type?: string}}, card_present?: array{commodity_code?: string}, klarna?: array{image_url?: string, product_url?: string, reference?: string, subscription_reference?: string}, paypal?: array{category?: string, description?: string, sold_by?: string}}, product_code?: string, product_name: string, quantity: int, quantity_precision?: int, tax?: array{total_tax_amount: int}, unit_cost: int, unit_of_measure?: string}[], shipping?: null|array{amount?: null|int, from_postal_code?: null|string, to_postal_code?: null|string}, surcharge?: null|array{amount?: null|int, enforce_validation?: null|string}, tax?: null|array{total_tax_amount: int}, tip?: null|array{amount?: null|int}}, application_fee_amount?: int, description?: string, expand?: string[], hooks?: array{inputs?: array{tax?: array{calculation: null|string}}}, metadata?: array, payment_details?: array{customer_reference?: null|string, order_reference?: null|string}, transfer_data?: array{amount?: int}} $params * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @return \Stripe\PaymentIntent @@ -245,7 +245,7 @@ public function decrementAuthorization($id, $params = null, $opts = null) * payments. * * @param string $id - * @param null|array{amount: int, amount_details?: array{discount_amount?: null|int, enforce_arithmetic_validation?: bool, line_items?: null|array{discount_amount?: int, payment_method_options?: array{card?: array{commodity_code?: string, fleet_data?: array{product_type: string, service_type?: string}}, card_present?: array{commodity_code?: string}, klarna?: array{image_url?: string, product_url?: string, reference?: string, subscription_reference?: string}, paypal?: array{category?: string, description?: string, sold_by?: string}}, product_code?: string, product_name: string, quantity: int, quantity_precision?: int, tax?: array{total_tax_amount: int}, unit_cost: int, unit_of_measure?: string}[], shipping?: null|array{amount?: null|int, from_postal_code?: null|string, to_postal_code?: null|string}, surcharge?: null|array{amount?: null|int, enforce_validation?: null|string}, tax?: null|array{total_tax_amount: int}}, application_fee_amount?: int, description?: string, expand?: string[], hooks?: array{inputs?: array{tax?: array{calculation: null|string}}}, metadata?: array, payment_details?: array{customer_reference?: null|string, order_reference?: null|string}, payment_method_options?: array{card?: array{request_partial_authorization?: string}}, statement_descriptor?: string, transfer_data?: array{amount?: int}} $params + * @param null|array{amount: int, amount_details?: array{discount_amount?: null|int, enforce_arithmetic_validation?: bool, line_items?: null|array{discount_amount?: int, payment_method_options?: array{card?: array{commodity_code?: string, fleet_data?: array{product_type: string, service_type?: string}}, card_present?: array{commodity_code?: string}, klarna?: array{image_url?: string, product_url?: string, reference?: string, subscription_reference?: string}, paypal?: array{category?: string, description?: string, sold_by?: string}}, product_code?: string, product_name: string, quantity: int, quantity_precision?: int, tax?: array{total_tax_amount: int}, unit_cost: int, unit_of_measure?: string}[], shipping?: null|array{amount?: null|int, from_postal_code?: null|string, to_postal_code?: null|string}, surcharge?: null|array{amount?: null|int, enforce_validation?: null|string}, tax?: null|array{total_tax_amount: int}, tip?: null|array{amount?: null|int}}, application_fee_amount?: int, description?: string, expand?: string[], hooks?: array{inputs?: array{tax?: array{calculation: null|string}}}, metadata?: array, payment_details?: array{customer_reference?: null|string, order_reference?: null|string}, payment_method_options?: array{card?: array{request_partial_authorization?: string}}, statement_descriptor?: string, transfer_data?: array{amount?: int}} $params * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @return \Stripe\PaymentIntent @@ -352,7 +352,7 @@ public function triggerAction($id, $params = null, $opts = null) * href="/docs/api/payment_intents/confirm">confirm API instead. * * @param string $id - * @param null|array{allocated_funds?: array{enabled?: bool}, allowed_payment_method_types?: string[], amount?: int, amount_details?: null|array{discount_amount?: null|int, enforce_arithmetic_validation?: bool, line_items?: null|array{discount_amount?: int, payment_method_options?: array{card?: array{commodity_code?: string, fleet_data?: array{product_type: string, service_type?: string}}, card_present?: array{commodity_code?: string}, klarna?: array{image_url?: string, product_url?: string, reference?: string, subscription_reference?: string}, paypal?: array{category?: string, description?: string, sold_by?: string}}, product_code?: string, product_name: string, quantity: int, quantity_precision?: int, tax?: array{total_tax_amount: int}, unit_cost: int, unit_of_measure?: string}[], shipping?: null|array{amount?: null|int, from_postal_code?: null|string, to_postal_code?: null|string}, surcharge?: null|array{amount?: null|int, enforce_validation?: null|string}, tax?: null|array{total_tax_amount: int}}, application_fee_amount?: null|int, capture_method?: string, currency?: string, customer?: string, customer_account?: string, description?: string, excluded_payment_method_types?: null|string[], expand?: string[], fx_quote?: string, hooks?: array{inputs?: array{tax?: array{calculation: null|string}}}, mandate_data?: array{customer_acceptance: array{online: array{ip_address?: string, user_agent?: string}, type: string}}, metadata?: null|array, payment_details?: null|array{benefit?: array{fr_meal_voucher?: null|array{enabled?: string, siret?: string}}, car_rental?: array{affiliate?: array{name: string}, booking_number: string, car_class_code?: string, car_make?: string, car_model?: string, company?: string, customer_service_phone_number?: string, days_rented: int, delivery?: array{mode?: string, recipient?: array{email?: string, name?: string, phone?: string}}, distance?: array{amount?: int, unit?: string}, drivers?: array{driver_identification_number?: string, driver_tax_number?: string, name: string}[], extra_charges?: string[], no_show?: bool, pickup_address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, pickup_at: int, pickup_location_name?: string, rate_amount?: int, rate_interval?: string, renter_name?: string, return_address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, return_at: int, return_location_name?: string, tax_exempt?: bool, vehicle_identification_number?: string}, car_rental_data?: null|array{affiliate?: array{code?: string, name?: string}, booking_number?: string, carrier_name?: string, customer_service_phone_number?: string, days_rented?: int, distance?: array{amount: int, unit: string}, drivers?: array{date_of_birth?: array{day: int, month: int, year: int}, driver_identification_number?: string, driver_tax_number?: string, name: string}[], drop_off: array{address: array{city: string, country: string, line1: string, line2?: string, postal_code: string, state?: string}, location_name?: string, time: int}, insurances?: array{amount: int, currency?: string, insurance_company_name?: string, insurance_type: string}[], no_show_indicator?: bool, pickup: array{address: array{city: string, country: string, line1: string, line2?: string, postal_code: string, state?: string}, location_name?: string, time: int}, renter_name?: string, total: array{amount: int, currency?: string, discounts?: array{corporate_client_code?: string, coupon?: string, maximum_free_miles_or_kilometers?: int}, extra_charges?: array{amount: int, type: string}[], rate_per_unit?: int, rate_unit?: string, tax?: array{tax_exempt_indicator?: bool, taxes?: array{amount?: int, rate?: int, type?: string}[]}}, vehicle?: array{make?: string, model?: string, odometer?: int, type?: string, vehicle_class?: string, vehicle_identification_number?: string}}[], customer_reference?: null|string, event_details?: array{access_controlled_venue?: bool, address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, affiliate?: array{name: string}, company?: string, delivery?: array{mode?: string, recipient?: array{email?: string, name?: string, phone?: string}}, ends_at?: int, genre?: string, name: string, starts_at?: int}, fleet_data?: null|array{primary_fuel_fields?: array{brand?: string}, station?: array{additional_contact_info?: string, customer_service_phone_number?: string, partner_id_code?: string, phone_number?: string, service_location?: array{city?: string, country?: string, line1: string, line2?: string, postal_code?: string, state?: string}, url?: string}, vat?: array{iob_indicator: string}}[], flight?: array{affiliate?: array{name: string}, agency_number?: string, carrier?: string, delivery?: array{mode?: string, recipient?: array{email?: string, name?: string, phone?: string}}, passenger_name?: string, passengers?: array{name: string}[], segments: array{amount?: int, arrival_airport?: string, arrives_at?: int, carrier?: string, departs_at: int, departure_airport?: string, flight_number?: string, service_class?: string}[], ticket_number?: string}, flight_data?: null|array{affiliate?: array{code?: string, name?: string, travel_authorization_code?: string}, booking_number?: string, computerized_reservation_system?: string, endorsements_and_restrictions?: string, insurances?: array{amount: int, currency?: string, insurance_company_name?: string, insurance_type: string}[], passengers?: array{name: string}[], segments: array{amount?: int, arrival: array{airport: string, arrives_at?: int, city?: string, country?: string}, carrier_code: string, carrier_name?: string, currency?: string, departure: array{airport: string, city?: string, country?: string, departs_at: int}, exchange_ticket_number?: string, fare_basis_code?: string, fees?: int, flight_number?: string, is_stop_over_indicator?: bool, refundable?: bool, service_class: string, tax_amount?: int, ticket_number?: string}[], ticket_electronically_issued_indicator?: bool, total: array{amount: int, credit_reason?: string, currency?: string, discounts?: array{corporate_client_code?: string}, extra_charges?: array{amount?: int, type?: string}[], tax?: array{taxes?: array{amount?: int, rate?: int, type?: string}[]}}, transaction_type?: string}[], location?: string, lodging?: array{address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, adults?: int, affiliate?: array{name: string}, booking_number?: string, category?: string, checkin_at: int, checkout_at: int, customer_service_phone_number?: string, daily_room_rate_amount?: int, delivery?: array{mode?: string, recipient?: array{email?: string, name?: string, phone?: string}}, extra_charges?: string[], fire_safety_act_compliance?: bool, name?: string, no_show?: bool, number_of_rooms?: int, passengers?: array{name: string}[], property_phone_number?: string, room_class?: string, room_nights?: int, total_room_tax_amount?: int, total_tax_amount?: int}, lodging_data?: null|array{accommodation?: array{accommodation_type?: string, bed_type?: string, daily_rate_amount?: int, nights?: int, number_of_rooms?: int, rate_type?: string, smoking_indicator?: bool}, affiliate?: array{code?: string, name?: string}, booking_number?: string, checkin_at: int, checkout_at: int, customer_service_phone_number?: string, fire_safety_act_compliance_indicator?: bool, guests?: array{name: string}[], host?: array{address?: array{city: string, country: string, line1: string, line2?: string, postal_code: string, state?: string}, country_of_domicile?: string, host_reference?: string, host_type?: string, name?: string, number_of_reservations?: int, property_phone_number?: string, registered_at?: int}, insurances?: array{amount: int, currency?: string, insurance_company_name?: string, insurance_type: string}[], no_show_indicator?: bool, renter_id_number?: string, renter_name?: string, total: array{amount: int, cash_advances?: int, currency?: string, discounts?: array{corporate_client_code?: string, coupon?: string}, extra_charges?: array{amount?: int, type?: string}[], prepaid_amount?: int, tax?: array{tax_exempt_indicator?: bool, taxes?: array{amount?: int, rate?: int, type?: string}[]}}}[], money_services?: null|array{account_funding?: null|array{sender_details?: null|array{address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, date_of_birth?: array{day: int, month: int, year: int}, email?: string, given_name?: string, phone?: string, surname?: string}}, beneficiary_details?: null|array{account_reference?: string, address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, date_of_birth?: array{day: int, month: int, year: int}, email?: string, given_name?: string, phone?: string, surname?: string}, transaction_type?: null|string}, order_reference?: null|string, subscription?: array{affiliate?: array{name: string}, auto_renewal?: bool, billing_interval?: array{count: int, interval: string}, ends_at?: int, name: string, starts_at?: int}}, payment_method?: string, payment_method_configuration?: string, payment_method_data?: array{acss_debit?: array{account_number: string, institution_number: string, transit_number: string}, affirm?: array{}, afterpay_clearpay?: array{}, alipay?: array{}, allow_redisplay?: string, alma?: array{}, amazon_pay?: array{}, au_becs_debit?: array{account_number: string, bsb_number: string}, bacs_debit?: array{account_number?: string, sort_code?: string}, bancontact?: array{}, billie?: array{}, billing_details?: array{address?: null|array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, email?: null|string, name?: null|string, phone?: null|string, tax_id?: string}, bizum?: array{}, blik?: array{}, boleto?: array{tax_id: string}, cashapp?: array{}, crypto?: array{}, customer_balance?: array{}, eps?: array{bank?: string}, fpx?: array{account_holder_type?: string, bank: string}, gift_card?: array{gift_card: string}, giropay?: array{}, gopay?: array{}, grabpay?: array{}, id_bank_transfer?: array{bank?: string}, ideal?: array{bank?: string}, interac_present?: array{}, kakao_pay?: array{}, klarna?: array{dob?: array{day: int, month: int, year: int}}, konbini?: array{}, kr_card?: array{}, link?: array{}, mb_way?: array{}, metadata?: array, mobilepay?: array{}, multibanco?: array{}, naver_pay?: array{funding?: string}, nz_bank_account?: array{account_holder_name?: string, account_number: string, bank_code: string, branch_code: string, reference?: string, suffix: string}, oxxo?: array{}, p24?: array{bank?: string}, pay_by_bank?: array{}, payco?: array{}, paynow?: array{}, paypal?: array{}, paypay?: array{}, payto?: array{account_number?: string, bsb_number?: string, pay_id?: string}, pix?: array{}, promptpay?: array{}, qris?: array{}, radar_options?: array{session?: string}, rechnung?: array{dob: array{day: int, month: int, year: int}}, revolut_pay?: array{}, samsung_pay?: array{}, satispay?: array{}, scalapay?: array{}, sepa_debit?: array{iban: string}, shared_payment_granted_token?: string, shopeepay?: array{}, sofort?: array{country: string}, stripe_balance?: array{account?: string}, sunbit?: array{}, swish?: array{}, tamara?: array{}, twint?: array{}, type: string, upi?: array{mandate_options?: array{amount?: int, amount_type?: string, description?: string, end_date?: int}}, us_bank_account?: array{account_holder_type?: string, account_number?: string, account_type?: string, financial_connections_account?: string, routing_number?: string}, wechat_pay?: array{}, zip?: array{}}, payment_method_options?: array{acss_debit?: null|array{mandate_options?: array{custom_mandate_url?: null|string, interval_description?: string, payment_schedule?: string, transaction_type?: string}, setup_future_usage?: null|string, target_date?: string, verification_method?: string}, affirm?: null|array{capture_method?: null|string, preferred_locale?: string, setup_future_usage?: string}, afterpay_clearpay?: null|array{capture_method?: null|string, reference?: string, setup_future_usage?: string}, alipay?: null|array{setup_future_usage?: null|string}, alma?: null|array{capture_method?: null|string}, amazon_pay?: null|array{capture_method?: null|string, setup_future_usage?: null|string}, au_becs_debit?: null|array{setup_future_usage?: null|string, target_date?: string}, bacs_debit?: null|array{mandate_options?: array{reference_prefix?: null|string}, setup_future_usage?: null|string, target_date?: string}, bancontact?: null|array{preferred_language?: string, setup_future_usage?: null|string}, billie?: null|array{capture_method?: null|string}, bizum?: null|array{}, blik?: null|array{code?: string, setup_future_usage?: null|string}, boleto?: null|array{expires_after_days?: int, setup_future_usage?: null|string}, card?: null|array{capture_by?: string, capture_delay?: array{days?: int, hours?: int}, capture_method?: null|string, cvc_token?: string, installments?: array{enabled?: bool, plan?: null|array{count?: int, interval?: string, type: string}}, mandate_options?: array{amount: int, amount_type: string, description?: string, end_date?: int, interval: string, interval_count?: int, reference: string, start_date: int, supported_types?: string[]}, moto?: bool, network?: string, payment_details?: array{money_services?: array{account_funding?: array{digital_asset_category?: string}}}, request_decremental_authorization?: string, request_extended_authorization?: string, request_incremental_authorization?: string, request_multicapture?: string, request_overcapture?: string, request_partial_authorization?: string, request_reauthorization?: string, request_three_d_secure?: string, require_cvc_recollection?: bool, setup_future_usage?: null|string, statement_descriptor_suffix_kana?: null|string, statement_descriptor_suffix_kanji?: null|string, statement_details?: null|array{address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, phone?: string}, three_d_secure?: array{ares_trans_status?: string, cryptogram: string, electronic_commerce_indicator?: string, exemption_indicator?: string, network_options?: array{cartes_bancaires?: array{cb_avalgo: string, cb_exemption?: string, cb_score?: int}}, requestor_challenge_indicator?: string, transaction_id: string, version: string}}, card_present?: null|array{capture_by?: string, capture_delay?: array{days?: int, hours?: int}, capture_method?: string, payment_details?: array{money_services?: array{account_funding?: array{digital_asset_category?: string}}}, request_extended_authorization?: bool, request_incremental_authorization_support?: bool, request_multicapture?: string, request_reauthorization?: string, routing?: array{requested_priority?: string}}, cashapp?: null|array{capture_method?: null|string, setup_future_usage?: null|string}, crypto?: null|array{deposit_options?: array{networks: string[], static_address?: bool}, mode?: string, setup_future_usage?: string, transaction_verification_options?: array{network: string, transaction_hash: string}}, customer_balance?: null|array{bank_transfer?: array{eu_bank_transfer?: array{country: string}, requested_address_types?: string[], type: string}, funding_type?: string, setup_future_usage?: string}, eps?: null|array{setup_future_usage?: string}, fpx?: null|array{setup_future_usage?: string}, gift_card?: null|array{ignore_application_fee?: string, ignore_transfer_data?: string, request_partial_authorization?: string}, giropay?: null|array{setup_future_usage?: string}, gopay?: null|array{setup_future_usage?: string}, grabpay?: null|array{setup_future_usage?: string}, id_bank_transfer?: null|array{expires_after?: int, expires_at?: int, setup_future_usage?: string}, ideal?: null|array{setup_future_usage?: null|string}, interac_present?: null|array{}, kakao_pay?: null|array{capture_method?: null|string, setup_future_usage?: null|string}, klarna?: null|array{capture_method?: null|string, on_demand?: array{average_amount?: int, maximum_amount?: int, minimum_amount?: int, purchase_interval?: string, purchase_interval_count?: int}, preferred_locale?: string, setup_future_usage?: string, subscriptions?: null|array{interval: string, interval_count?: int, name?: string, next_billing?: array{amount: int, date: string}, reference: string}[], supplementary_purchase_data?: null|array{bus_reservation_details?: null|array{affiliate_name?: string, arrival?: array{address?: array{city?: string, country?: string, postal_code?: string, region?: string, street_address?: string, street_address2?: string}, arrival_location?: string}, carrier_name?: string, currency?: string, departure?: array{address?: array{city?: string, country?: string, postal_code?: string, region?: string, street_address?: string, street_address2?: string}, departs_at?: int, departure_location?: string}, insurances?: array{currency?: string, insurance_company_name?: string, insurance_type?: string, price?: int}[], passengers?: array{family_name?: string, given_name?: string}[], price?: int, ticket_class?: string}[], event_reservation_details?: null|array{access_controlled_venue?: bool, address?: array{city?: string, country?: string, postal_code?: string, region?: string, street_address?: string, street_address2?: string}, affiliate_name?: string, ends_at?: int, event_company_name?: string, event_name?: string, event_type?: string, insurances?: array{currency?: string, insurance_company_name?: string, insurance_type?: string, price?: int}[], starts_at?: int, venue_name?: string}[], ferry_reservation_details?: null|array{affiliate_name?: string, arrival?: array{address?: array{city?: string, country?: string, postal_code?: string, region?: string, street_address?: string, street_address2?: string}, arrival_location?: string}, carrier_name?: string, currency?: string, departure?: array{address?: array{city?: string, country?: string, postal_code?: string, region?: string, street_address?: string, street_address2?: string}, departs_at?: int, departure_location?: string}, insurances?: array{currency?: string, insurance_company_name?: string, insurance_type?: string, price?: int}[], passengers?: array{family_name?: string, given_name?: string}[], price?: int, ticket_class?: string}[], insurances?: null|array{currency?: string, insurance_company_name?: string, insurance_type?: string, price?: int}[], marketplace_sellers?: null|array{line_item_references?: string[], marketplace_seller_address?: array{city?: string, country?: string, postal_code?: string, region?: string, street_address?: string, street_address2?: string}, marketplace_seller_name?: string, marketplace_seller_reference?: string, number_of_transactions?: int, product_category?: string, seller_last_login_at?: int, seller_rating?: string, seller_registered_at?: int, seller_updated_at?: int, shipping_references?: string[], volume_of_transactions?: int}[], round_trip_reservation_details?: null|array{affiliate_name?: string, arrival?: array{address?: array{city?: string, country?: string, postal_code?: string, region?: string, street_address?: string, street_address2?: string}, arrival_location?: string}, carrier_name?: string, currency?: string, departure?: array{address?: array{city?: string, country?: string, postal_code?: string, region?: string, street_address?: string, street_address2?: string}, departs_at?: int, departure_location?: string}, insurances?: array{currency?: string, insurance_company_name?: string, insurance_type?: string, price?: int}[], passengers?: array{family_name?: string, given_name?: string}[], price?: int, ticket_class?: string}[], train_reservation_details?: null|array{affiliate_name?: string, arrival?: array{address?: array{city?: string, country?: string, postal_code?: string, region?: string, street_address?: string, street_address2?: string}, arrival_location?: string}, carrier_name?: string, currency?: string, departure?: array{address?: array{city?: string, country?: string, postal_code?: string, region?: string, street_address?: string, street_address2?: string}, departs_at?: int, departure_location?: string}, insurances?: array{currency?: string, insurance_company_name?: string, insurance_type?: string, price?: int}[], passengers?: array{family_name?: string, given_name?: string}[], price?: int, ticket_class?: string}[], vouchers?: null|array{affiliate_name?: string, ends_at?: int, starts_at?: int, voucher_company?: string, voucher_name?: string, voucher_type?: string}[]}}, konbini?: null|array{confirmation_number?: null|string, expires_after_days?: null|int, expires_at?: null|int, product_description?: null|string, setup_future_usage?: string}, kr_card?: null|array{capture_method?: null|string, setup_future_usage?: null|string}, link?: null|array{capture_method?: null|string, persistent_token?: string, setup_future_usage?: null|string}, mb_way?: null|array{setup_future_usage?: string}, mobilepay?: null|array{capture_method?: null|string, setup_future_usage?: string}, multibanco?: null|array{setup_future_usage?: string}, naver_pay?: null|array{capture_method?: null|string, setup_future_usage?: null|string}, nz_bank_account?: null|array{setup_future_usage?: null|string, target_date?: string}, oxxo?: null|array{expires_after_days?: int, setup_future_usage?: string}, p24?: null|array{setup_future_usage?: string, tos_shown_and_accepted?: bool}, pay_by_bank?: null|array{}, payco?: null|array{capture_method?: null|string}, paynow?: null|array{setup_future_usage?: string}, paypal?: null|array{capture_method?: null|string, line_items?: array{category?: string, description?: string, name: string, quantity: int, sku?: string, sold_by?: string, tax?: array{amount: int, behavior: string}, unit_amount: int}[], preferred_locale?: string, reference?: string, reference_id?: string, risk_correlation_id?: string, setup_future_usage?: null|string, subsellers?: string[]}, paypay?: null|array{capture_method?: null|string}, payto?: null|array{mandate_options?: array{amount?: null|int, amount_type?: null|string, end_date?: null|string, payment_schedule?: null|string, payments_per_period?: null|int, purpose?: null|string}, setup_future_usage?: null|string}, pix?: null|array{amount_includes_iof?: string, expires_after_seconds?: int, expires_at?: int, mandate_options?: array{amount?: int, amount_includes_iof?: string, amount_type?: string, currency?: string, end_date?: string, payment_schedule?: string, reference?: string, start_date?: string}, setup_future_usage?: string}, promptpay?: null|array{setup_future_usage?: string}, qris?: null|array{setup_future_usage?: string}, rechnung?: null|array{}, revolut_pay?: null|array{capture_method?: null|string, setup_future_usage?: null|string}, samsung_pay?: null|array{capture_method?: null|string}, satispay?: null|array{capture_method?: null|string}, scalapay?: null|array{capture_method?: null|string}, sepa_debit?: null|array{mandate_options?: array{reference_prefix?: null|string}, setup_future_usage?: null|string, target_date?: string}, shopeepay?: null|array{setup_future_usage?: string}, sofort?: null|array{preferred_language?: null|string, setup_future_usage?: null|string}, stripe_balance?: null|array{mandate_options?: array{stripe_balance_debit_agreement?: string}, setup_future_usage?: null|string}, swish?: null|array{reference?: null|string, setup_future_usage?: string}, twint?: null|array{setup_future_usage?: string}, upi?: null|array{mandate_options?: array{amount?: int, amount_type?: string, description?: string, end_date?: int}, setup_future_usage?: null|string}, us_bank_account?: null|array{financial_connections?: array{filters?: array{account_subcategories?: string[], institution?: string}, manual_entry?: array{mode: string}, permissions?: string[], prefetch?: string[], return_url?: string}, mandate_options?: array{collection_method?: null|string}, networks?: array{requested?: string[]}, setup_future_usage?: null|string, target_date?: string, transaction_purpose?: null|string, verification_method?: string}, wechat_pay?: null|array{app_id?: string, buyer_id?: string, client?: string, setup_future_usage?: string}, zip?: null|array{setup_future_usage?: string}}, payment_method_types?: string[], receipt_email?: null|string, setup_future_usage?: null|string, shipping?: null|array{address: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, carrier?: string, name: string, phone?: string, tracking_number?: string}, statement_descriptor?: string, statement_descriptor_suffix?: string, transfer_data?: array{amount?: int, description?: string, metadata?: null|array, payment_data?: array{description?: string, metadata?: null|array}}, transfer_group?: string} $params + * @param null|array{allocated_funds?: array{enabled?: bool}, allowed_payment_method_types?: string[], amount?: int, amount_details?: null|array{discount_amount?: null|int, enforce_arithmetic_validation?: bool, line_items?: null|array{discount_amount?: int, payment_method_options?: array{card?: array{commodity_code?: string, fleet_data?: array{product_type: string, service_type?: string}}, card_present?: array{commodity_code?: string}, klarna?: array{image_url?: string, product_url?: string, reference?: string, subscription_reference?: string}, paypal?: array{category?: string, description?: string, sold_by?: string}}, product_code?: string, product_name: string, quantity: int, quantity_precision?: int, tax?: array{total_tax_amount: int}, unit_cost: int, unit_of_measure?: string}[], shipping?: null|array{amount?: null|int, from_postal_code?: null|string, to_postal_code?: null|string}, surcharge?: null|array{amount?: null|int, enforce_validation?: null|string}, tax?: null|array{total_tax_amount: int}, tip?: null|array{amount?: null|int}}, application_fee_amount?: null|int, capture_method?: string, currency?: string, customer?: string, customer_account?: string, description?: string, excluded_payment_method_types?: null|string[], expand?: string[], fx_quote?: string, hooks?: array{inputs?: array{tax?: array{calculation: null|string}}}, mandate_data?: array{customer_acceptance: array{online: array{ip_address?: string, user_agent?: string}, type: string}}, metadata?: null|array, payment_details?: null|array{benefit?: array{fr_meal_voucher?: null|array{enabled?: string, siret?: string}}, car_rental?: array{affiliate?: array{name: string}, booking_number: string, car_class_code?: string, car_make?: string, car_model?: string, company?: string, customer_service_phone_number?: string, days_rented: int, delivery?: array{mode?: string, recipient?: array{email?: string, name?: string, phone?: string}}, distance?: array{amount?: int, unit?: string}, drivers?: array{driver_identification_number?: string, driver_tax_number?: string, name: string}[], extra_charges?: string[], no_show?: bool, pickup_address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, pickup_at: int, pickup_location_name?: string, rate_amount?: int, rate_interval?: string, renter_name?: string, return_address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, return_at: int, return_location_name?: string, tax_exempt?: bool, vehicle_identification_number?: string}, car_rental_data?: null|array{affiliate?: array{code?: string, name?: string}, booking_number?: string, carrier_name?: string, customer_service_phone_number?: string, days_rented?: int, distance?: array{amount: int, unit: string}, drivers?: array{date_of_birth?: array{day: int, month: int, year: int}, driver_identification_number?: string, driver_tax_number?: string, name: string}[], drop_off: array{address: array{city: string, country: string, line1: string, line2?: string, postal_code: string, state?: string}, location_name?: string, time: int}, insurances?: array{amount: int, currency?: string, insurance_company_name?: string, insurance_type: string}[], no_show_indicator?: bool, pickup: array{address: array{city: string, country: string, line1: string, line2?: string, postal_code: string, state?: string}, location_name?: string, time: int}, renter_name?: string, total: array{amount: int, currency?: string, discounts?: array{corporate_client_code?: string, coupon?: string, maximum_free_miles_or_kilometers?: int}, extra_charges?: array{amount: int, type: string}[], rate_per_unit?: int, rate_unit?: string, tax?: array{tax_exempt_indicator?: bool, taxes?: array{amount?: int, rate?: int, type?: string}[]}}, vehicle?: array{make?: string, model?: string, odometer?: int, type?: string, vehicle_class?: string, vehicle_identification_number?: string}}[], customer_reference?: null|string, event_details?: array{access_controlled_venue?: bool, address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, affiliate?: array{name: string}, company?: string, delivery?: array{mode?: string, recipient?: array{email?: string, name?: string, phone?: string}}, ends_at?: int, genre?: string, name: string, starts_at?: int}, fleet_data?: null|array{primary_fuel_fields?: array{brand?: string}, station?: array{additional_contact_info?: string, customer_service_phone_number?: string, partner_id_code?: string, phone_number?: string, service_location?: array{city?: string, country?: string, line1: string, line2?: string, postal_code?: string, state?: string}, url?: string}, vat?: array{iob_indicator: string}}[], flight?: array{affiliate?: array{name: string}, agency_number?: string, carrier?: string, delivery?: array{mode?: string, recipient?: array{email?: string, name?: string, phone?: string}}, passenger_name?: string, passengers?: array{name: string}[], segments: array{amount?: int, arrival_airport?: string, arrives_at?: int, carrier?: string, departs_at: int, departure_airport?: string, flight_number?: string, service_class?: string}[], ticket_number?: string}, flight_data?: null|array{affiliate?: array{code?: string, name?: string, travel_authorization_code?: string}, booking_number?: string, computerized_reservation_system?: string, endorsements_and_restrictions?: string, insurances?: array{amount: int, currency?: string, insurance_company_name?: string, insurance_type: string}[], passengers?: array{name: string}[], segments: array{amount?: int, arrival: array{airport: string, arrives_at?: int, city?: string, country?: string}, carrier_code: string, carrier_name?: string, currency?: string, departure: array{airport: string, city?: string, country?: string, departs_at: int}, exchange_ticket_number?: string, fare_basis_code?: string, fees?: int, flight_number?: string, is_stop_over_indicator?: bool, refundable?: bool, service_class: string, tax_amount?: int, ticket_number?: string}[], ticket_electronically_issued_indicator?: bool, total: array{amount: int, credit_reason?: string, currency?: string, discounts?: array{corporate_client_code?: string}, extra_charges?: array{amount?: int, type?: string}[], tax?: array{taxes?: array{amount?: int, rate?: int, type?: string}[]}}, transaction_type?: string}[], location?: string, lodging?: array{address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, adults?: int, affiliate?: array{name: string}, booking_number?: string, category?: string, checkin_at: int, checkout_at: int, customer_service_phone_number?: string, daily_room_rate_amount?: int, delivery?: array{mode?: string, recipient?: array{email?: string, name?: string, phone?: string}}, extra_charges?: string[], fire_safety_act_compliance?: bool, name?: string, no_show?: bool, number_of_rooms?: int, passengers?: array{name: string}[], property_phone_number?: string, room_class?: string, room_nights?: int, total_room_tax_amount?: int, total_tax_amount?: int}, lodging_data?: null|array{accommodation?: array{accommodation_type?: string, bed_type?: string, daily_rate_amount?: int, nights?: int, number_of_rooms?: int, rate_type?: string, smoking_indicator?: bool}, affiliate?: array{code?: string, name?: string}, booking_number?: string, checkin_at: int, checkout_at: int, customer_service_phone_number?: string, fire_safety_act_compliance_indicator?: bool, guests?: array{name: string}[], host?: array{address?: array{city: string, country: string, line1: string, line2?: string, postal_code: string, state?: string}, country_of_domicile?: string, host_reference?: string, host_type?: string, name?: string, number_of_reservations?: int, property_phone_number?: string, registered_at?: int}, insurances?: array{amount: int, currency?: string, insurance_company_name?: string, insurance_type: string}[], no_show_indicator?: bool, renter_id_number?: string, renter_name?: string, total: array{amount: int, cash_advances?: int, currency?: string, discounts?: array{corporate_client_code?: string, coupon?: string}, extra_charges?: array{amount?: int, type?: string}[], prepaid_amount?: int, tax?: array{tax_exempt_indicator?: bool, taxes?: array{amount?: int, rate?: int, type?: string}[]}}}[], money_services?: null|array{account_funding?: null|array{sender_details?: null|array{address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, date_of_birth?: array{day: int, month: int, year: int}, email?: string, given_name?: string, phone?: string, surname?: string}}, beneficiary_details?: null|array{account_reference?: string, address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, date_of_birth?: array{day: int, month: int, year: int}, email?: string, given_name?: string, phone?: string, surname?: string}, transaction_type?: null|string}, order_reference?: null|string, subscription?: array{affiliate?: array{name: string}, auto_renewal?: bool, billing_interval?: array{count: int, interval: string}, ends_at?: int, name: string, starts_at?: int}}, payment_method?: string, payment_method_configuration?: string, payment_method_data?: array{acss_debit?: array{account_number: string, institution_number: string, transit_number: string}, affirm?: array{}, afterpay_clearpay?: array{}, alipay?: array{}, allow_redisplay?: string, alma?: array{}, amazon_pay?: array{}, au_becs_debit?: array{account_number: string, bsb_number: string}, bacs_debit?: array{account_number?: string, sort_code?: string}, bancontact?: array{}, billie?: array{}, billing_details?: array{address?: null|array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, email?: null|string, name?: null|string, phone?: null|string, tax_id?: string}, bizum?: array{}, blik?: array{}, boleto?: array{tax_id: string}, cashapp?: array{}, crypto?: array{}, customer_balance?: array{}, eps?: array{bank?: string}, fpx?: array{account_holder_type?: string, bank: string}, gift_card?: array{gift_card: string}, giropay?: array{}, gopay?: array{}, grabpay?: array{}, id_bank_transfer?: array{bank?: string}, ideal?: array{bank?: string}, interac_present?: array{}, kakao_pay?: array{}, klarna?: array{dob?: array{day: int, month: int, year: int}}, konbini?: array{}, kr_card?: array{}, link?: array{}, mb_way?: array{}, metadata?: array, mobilepay?: array{}, multibanco?: array{}, naver_pay?: array{funding?: string}, nz_bank_account?: array{account_holder_name?: string, account_number: string, bank_code: string, branch_code: string, reference?: string, suffix: string}, oxxo?: array{}, p24?: array{bank?: string}, pay_by_bank?: array{}, payco?: array{}, paynow?: array{}, paypal?: array{}, paypay?: array{}, payto?: array{account_number?: string, bsb_number?: string, pay_id?: string}, pix?: array{}, promptpay?: array{}, qris?: array{}, radar_options?: array{session?: string}, rechnung?: array{dob: array{day: int, month: int, year: int}}, revolut_pay?: array{}, samsung_pay?: array{}, satispay?: array{}, scalapay?: array{}, sepa_debit?: array{iban: string}, shared_payment_granted_token?: string, shopeepay?: array{}, sofort?: array{country: string}, stripe_balance?: array{account?: string}, sunbit?: array{}, swish?: array{}, tamara?: array{}, twint?: array{}, type: string, upi?: array{mandate_options?: array{amount?: int, amount_type?: string, description?: string, end_date?: int}}, us_bank_account?: array{account_holder_type?: string, account_number?: string, account_type?: string, financial_connections_account?: string, routing_number?: string}, wechat_pay?: array{}, zip?: array{}}, payment_method_options?: array{acss_debit?: null|array{mandate_options?: array{custom_mandate_url?: null|string, interval_description?: string, payment_schedule?: string, transaction_type?: string}, setup_future_usage?: null|string, target_date?: string, verification_method?: string}, affirm?: null|array{capture_method?: null|string, preferred_locale?: string, setup_future_usage?: string}, afterpay_clearpay?: null|array{capture_method?: null|string, reference?: string, setup_future_usage?: string}, alipay?: null|array{setup_future_usage?: null|string}, alma?: null|array{capture_method?: null|string}, amazon_pay?: null|array{capture_method?: null|string, setup_future_usage?: null|string}, au_becs_debit?: null|array{setup_future_usage?: null|string, target_date?: string}, bacs_debit?: null|array{mandate_options?: array{reference_prefix?: null|string}, setup_future_usage?: null|string, target_date?: string}, bancontact?: null|array{preferred_language?: string, setup_future_usage?: null|string}, billie?: null|array{capture_method?: null|string}, bizum?: null|array{}, blik?: null|array{code?: string, setup_future_usage?: null|string}, boleto?: null|array{expires_after_days?: int, setup_future_usage?: null|string}, card?: null|array{capture_by?: string, capture_delay?: array{days?: int, hours?: int}, capture_method?: null|string, cvc_token?: string, installments?: array{enabled?: bool, plan?: null|array{count?: int, interval?: string, type: string}}, mandate_options?: array{amount: int, amount_type: string, description?: string, end_date?: int, interval: string, interval_count?: int, reference: string, start_date: int, supported_types?: string[]}, moto?: bool, network?: string, payment_details?: array{money_services?: array{account_funding?: array{digital_asset_category?: string}}}, request_decremental_authorization?: string, request_extended_authorization?: string, request_incremental_authorization?: string, request_multicapture?: string, request_overcapture?: string, request_partial_authorization?: string, request_reauthorization?: string, request_three_d_secure?: string, require_cvc_recollection?: bool, setup_future_usage?: null|string, statement_descriptor_suffix_kana?: null|string, statement_descriptor_suffix_kanji?: null|string, statement_details?: null|array{address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, phone?: string}, three_d_secure?: array{ares_trans_status?: string, cryptogram: string, electronic_commerce_indicator?: string, exemption_indicator?: string, network_options?: array{cartes_bancaires?: array{cb_avalgo: string, cb_exemption?: string, cb_score?: int}}, requestor_challenge_indicator?: string, transaction_id: string, version: string}}, card_present?: null|array{capture_by?: string, capture_delay?: array{days?: int, hours?: int}, capture_method?: string, payment_details?: array{money_services?: array{account_funding?: array{digital_asset_category?: string}}}, request_extended_authorization?: bool, request_incremental_authorization_support?: bool, request_multicapture?: string, request_reauthorization?: string, routing?: array{requested_priority?: string}}, cashapp?: null|array{capture_method?: null|string, setup_future_usage?: null|string}, crypto?: null|array{deposit_options?: array{networks: string[], static_address?: bool}, mode?: string, setup_future_usage?: string, transaction_verification_options?: array{network: string, transaction_hash: string}}, customer_balance?: null|array{bank_transfer?: array{eu_bank_transfer?: array{country: string}, requested_address_types?: string[], type: string}, funding_type?: string, setup_future_usage?: string}, eps?: null|array{setup_future_usage?: string}, fpx?: null|array{setup_future_usage?: string}, gift_card?: null|array{ignore_application_fee?: string, ignore_transfer_data?: string, request_partial_authorization?: string}, giropay?: null|array{setup_future_usage?: string}, gopay?: null|array{setup_future_usage?: string}, grabpay?: null|array{setup_future_usage?: string}, id_bank_transfer?: null|array{expires_after?: int, expires_at?: int, setup_future_usage?: string}, ideal?: null|array{setup_future_usage?: null|string}, interac_present?: null|array{}, kakao_pay?: null|array{capture_method?: null|string, setup_future_usage?: null|string}, klarna?: null|array{capture_method?: null|string, on_demand?: array{average_amount?: int, maximum_amount?: int, minimum_amount?: int, purchase_interval?: string, purchase_interval_count?: int}, preferred_locale?: string, setup_future_usage?: string, subscriptions?: null|array{interval: string, interval_count?: int, name?: string, next_billing?: array{amount: int, date: string}, reference: string}[], supplementary_purchase_data?: null|array{bus_reservation_details?: null|array{affiliate_name?: string, arrival?: array{address?: array{city?: string, country?: string, postal_code?: string, region?: string, street_address?: string, street_address2?: string}, arrival_location?: string}, carrier_name?: string, currency?: string, departure?: array{address?: array{city?: string, country?: string, postal_code?: string, region?: string, street_address?: string, street_address2?: string}, departs_at?: int, departure_location?: string}, insurances?: array{currency?: string, insurance_company_name?: string, insurance_type?: string, price?: int}[], passengers?: array{family_name?: string, given_name?: string}[], price?: int, ticket_class?: string}[], event_reservation_details?: null|array{access_controlled_venue?: bool, address?: array{city?: string, country?: string, postal_code?: string, region?: string, street_address?: string, street_address2?: string}, affiliate_name?: string, ends_at?: int, event_company_name?: string, event_name?: string, event_type?: string, insurances?: array{currency?: string, insurance_company_name?: string, insurance_type?: string, price?: int}[], starts_at?: int, venue_name?: string}[], ferry_reservation_details?: null|array{affiliate_name?: string, arrival?: array{address?: array{city?: string, country?: string, postal_code?: string, region?: string, street_address?: string, street_address2?: string}, arrival_location?: string}, carrier_name?: string, currency?: string, departure?: array{address?: array{city?: string, country?: string, postal_code?: string, region?: string, street_address?: string, street_address2?: string}, departs_at?: int, departure_location?: string}, insurances?: array{currency?: string, insurance_company_name?: string, insurance_type?: string, price?: int}[], passengers?: array{family_name?: string, given_name?: string}[], price?: int, ticket_class?: string}[], insurances?: null|array{currency?: string, insurance_company_name?: string, insurance_type?: string, price?: int}[], marketplace_sellers?: null|array{line_item_references?: string[], marketplace_seller_address?: array{city?: string, country?: string, postal_code?: string, region?: string, street_address?: string, street_address2?: string}, marketplace_seller_name?: string, marketplace_seller_reference?: string, number_of_transactions?: int, product_category?: string, seller_last_login_at?: int, seller_rating?: string, seller_registered_at?: int, seller_updated_at?: int, shipping_references?: string[], volume_of_transactions?: int}[], round_trip_reservation_details?: null|array{affiliate_name?: string, arrival?: array{address?: array{city?: string, country?: string, postal_code?: string, region?: string, street_address?: string, street_address2?: string}, arrival_location?: string}, carrier_name?: string, currency?: string, departure?: array{address?: array{city?: string, country?: string, postal_code?: string, region?: string, street_address?: string, street_address2?: string}, departs_at?: int, departure_location?: string}, insurances?: array{currency?: string, insurance_company_name?: string, insurance_type?: string, price?: int}[], passengers?: array{family_name?: string, given_name?: string}[], price?: int, ticket_class?: string}[], train_reservation_details?: null|array{affiliate_name?: string, arrival?: array{address?: array{city?: string, country?: string, postal_code?: string, region?: string, street_address?: string, street_address2?: string}, arrival_location?: string}, carrier_name?: string, currency?: string, departure?: array{address?: array{city?: string, country?: string, postal_code?: string, region?: string, street_address?: string, street_address2?: string}, departs_at?: int, departure_location?: string}, insurances?: array{currency?: string, insurance_company_name?: string, insurance_type?: string, price?: int}[], passengers?: array{family_name?: string, given_name?: string}[], price?: int, ticket_class?: string}[], vouchers?: null|array{affiliate_name?: string, ends_at?: int, starts_at?: int, voucher_company?: string, voucher_name?: string, voucher_type?: string}[]}}, konbini?: null|array{confirmation_number?: null|string, expires_after_days?: null|int, expires_at?: null|int, product_description?: null|string, setup_future_usage?: string}, kr_card?: null|array{capture_method?: null|string, setup_future_usage?: null|string}, link?: null|array{capture_method?: null|string, persistent_token?: string, setup_future_usage?: null|string}, mb_way?: null|array{setup_future_usage?: string}, mobilepay?: null|array{capture_method?: null|string, setup_future_usage?: string}, multibanco?: null|array{setup_future_usage?: string}, naver_pay?: null|array{capture_method?: null|string, setup_future_usage?: null|string}, nz_bank_account?: null|array{setup_future_usage?: null|string, target_date?: string}, oxxo?: null|array{expires_after_days?: int, setup_future_usage?: string}, p24?: null|array{setup_future_usage?: string, tos_shown_and_accepted?: bool}, pay_by_bank?: null|array{}, payco?: null|array{capture_method?: null|string}, paynow?: null|array{setup_future_usage?: string}, paypal?: null|array{capture_method?: null|string, line_items?: array{category?: string, description?: string, name: string, quantity: int, sku?: string, sold_by?: string, tax?: array{amount: int, behavior: string}, unit_amount: int}[], preferred_locale?: string, reference?: string, reference_id?: string, risk_correlation_id?: string, setup_future_usage?: null|string, subsellers?: string[]}, paypay?: null|array{capture_method?: null|string}, payto?: null|array{mandate_options?: array{amount?: null|int, amount_type?: null|string, end_date?: null|string, payment_schedule?: null|string, payments_per_period?: null|int, purpose?: null|string}, setup_future_usage?: null|string}, pix?: null|array{amount_includes_iof?: string, expires_after_seconds?: int, expires_at?: int, mandate_options?: array{amount?: int, amount_includes_iof?: string, amount_type?: string, currency?: string, end_date?: string, payment_schedule?: string, reference?: string, start_date?: string}, setup_future_usage?: string}, promptpay?: null|array{setup_future_usage?: string}, qris?: null|array{setup_future_usage?: string}, rechnung?: null|array{}, revolut_pay?: null|array{capture_method?: null|string, setup_future_usage?: null|string}, samsung_pay?: null|array{capture_method?: null|string}, satispay?: null|array{capture_method?: null|string}, scalapay?: null|array{capture_method?: null|string}, sepa_debit?: null|array{mandate_options?: array{reference_prefix?: null|string}, setup_future_usage?: null|string, target_date?: string}, shopeepay?: null|array{setup_future_usage?: string}, sofort?: null|array{preferred_language?: null|string, setup_future_usage?: null|string}, stripe_balance?: null|array{mandate_options?: array{stripe_balance_debit_agreement?: string}, setup_future_usage?: null|string}, swish?: null|array{reference?: null|string, setup_future_usage?: string}, twint?: null|array{setup_future_usage?: string}, upi?: null|array{mandate_options?: array{amount?: int, amount_type?: string, description?: string, end_date?: int}, setup_future_usage?: null|string}, us_bank_account?: null|array{financial_connections?: array{filters?: array{account_subcategories?: string[], institution?: string}, manual_entry?: array{mode: string}, permissions?: string[], prefetch?: string[], return_url?: string}, mandate_options?: array{collection_method?: null|string}, networks?: array{requested?: string[]}, setup_future_usage?: null|string, target_date?: string, transaction_purpose?: null|string, verification_method?: string}, wechat_pay?: null|array{app_id?: string, buyer_id?: string, client?: string, setup_future_usage?: string}, zip?: null|array{setup_future_usage?: string}}, payment_method_types?: string[], receipt_email?: null|string, setup_future_usage?: null|string, shipping?: null|array{address: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, carrier?: string, name: string, phone?: string, tracking_number?: string}, statement_descriptor?: string, statement_descriptor_suffix?: string, transfer_data?: array{amount?: int, description?: string, metadata?: null|array, payment_data?: array{description?: string, metadata?: null|array}}, transfer_group?: string} $params * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @return \Stripe\PaymentIntent From dd424be31feab47d4e8cc1e640331315e57ee548 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Mon, 22 Jun 2026 21:52:48 +0000 Subject: [PATCH 7/8] Update generated code for v2323 and f239adb51212b8dd4e5202b448d71ca4955fe9f9 --- CODEGEN_VERSION | 2 +- OPENAPI_VERSION | 2 +- lib/Checkout/Session.php | 2 +- lib/Util/ApiVersion.php | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/CODEGEN_VERSION b/CODEGEN_VERSION index 99dcf2bc1..5d7a4e0ca 100644 --- a/CODEGEN_VERSION +++ b/CODEGEN_VERSION @@ -1 +1 @@ -ed24339642d76128f1cf24d3fe7afef73a840e11 \ No newline at end of file +f239adb51212b8dd4e5202b448d71ca4955fe9f9 \ No newline at end of file diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index e4fe8e06b..c22138244 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v2322 \ No newline at end of file +v2323 \ No newline at end of file diff --git a/lib/Checkout/Session.php b/lib/Checkout/Session.php index 92ccd3303..a45c17604 100644 --- a/lib/Checkout/Session.php +++ b/lib/Checkout/Session.php @@ -42,7 +42,7 @@ * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch. * @property null|string $currency Three-letter ISO currency code, in lowercase. Must be a supported currency. * @property null|(object{amount_subtotal: int, amount_total: int, fx_rate: string, source_currency: string}&\Stripe\StripeObject) $currency_conversion Currency conversion details for Adaptive Pricing sessions created before 2025-03-31. - * @property null|(object{billing_details?: null|(object{address: (object{city: null|string, country: null|string, line1: null|string, line2: null|string, postal_code: null|string, state: null|string}&\Stripe\StripeObject), name: null|string}&\Stripe\StripeObject), email?: null|string, id: string, payment_method_details?: null|(object{allow_redisplay: string, au_becs_debit?: (object{fingerprint: null|string}&\Stripe\StripeObject), bacs_debit?: (object{fingerprint: null|string}&\Stripe\StripeObject), boleto?: (object{fingerprint: null|string}&\Stripe\StripeObject), card?: (object{country: null|string, exp_month: int, exp_year: int, fingerprint: null|string, funding: string, iin?: null|string, last4: string, wallet: null|(object{type: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), link?: (object{fingerprint?: null|string}&\Stripe\StripeObject), pix?: (object{fingerprint: null|string}&\Stripe\StripeObject), sepa_debit?: (object{fingerprint: null|string}&\Stripe\StripeObject), type: string, us_bank_account?: (object{fingerprint: null|string}&\Stripe\StripeObject)}&\Stripe\StripeObject), phone?: null|string, shipping_details: null|(object{address: (object{city: null|string, country: null|string, line1: null|string, line2: null|string, postal_code: null|string, state: null|string}&\Stripe\StripeObject), name: string}&\Stripe\StripeObject)}&\Stripe\StripeObject) $current_attempt The customer's pending attempt to pay that requires your approval. Contains information about the customer and their payment details. + * @property null|(object{billing_details?: null|(object{address: (object{city: null|string, country: null|string, line1: null|string, line2: null|string, postal_code: null|string, state: null|string}&\Stripe\StripeObject), name: null|string}&\Stripe\StripeObject), email?: null|string, id: string, payment_method_details?: null|(object{allow_redisplay: string, au_becs_debit?: (object{fingerprint: null|string}&\Stripe\StripeObject), bacs_debit?: (object{fingerprint: null|string}&\Stripe\StripeObject), boleto?: (object{fingerprint: null|string}&\Stripe\StripeObject), card?: (object{brand: string, country: null|string, exp_month: int, exp_year: int, fingerprint: null|string, funding: string, iin?: null|string, last4: string, wallet: null|(object{type: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), link?: (object{fingerprint?: null|string}&\Stripe\StripeObject), pix?: (object{fingerprint: null|string}&\Stripe\StripeObject), sepa_debit?: (object{fingerprint: null|string}&\Stripe\StripeObject), type: string, us_bank_account?: (object{fingerprint: null|string}&\Stripe\StripeObject)}&\Stripe\StripeObject), phone?: null|string, shipping_details: null|(object{address: (object{city: null|string, country: null|string, line1: null|string, line2: null|string, postal_code: null|string, state: null|string}&\Stripe\StripeObject), name: string}&\Stripe\StripeObject)}&\Stripe\StripeObject) $current_attempt The customer's pending attempt to pay that requires your approval. Contains information about the customer and their payment details. * @property ((object{dropdown?: (object{default_value: null|string, options: (object{label: string, value: string}&\Stripe\StripeObject)[], value: null|string}&\Stripe\StripeObject), key: string, label: (object{custom: null|string, type: string}&\Stripe\StripeObject), numeric?: (object{default_value: null|string, maximum_length: null|int, minimum_length: null|int, value: null|string}&\Stripe\StripeObject), optional: bool, text?: (object{default_value: null|string, maximum_length: null|int, minimum_length: null|int, value: null|string}&\Stripe\StripeObject), type: string}&\Stripe\StripeObject))[] $custom_fields Collect additional information from your customer using custom fields. Up to 3 fields are supported. You can't set this parameter if ui_mode is custom. * @property null|string[] $custom_payment_method_types A list of the types of custom payment methods (e.g. cpmt_123) this Checkout Session is allowed to accept. * @property (object{after_submit: null|(object{message: string}&\Stripe\StripeObject), shipping_address: null|(object{message: string}&\Stripe\StripeObject), submit: null|(object{message: string}&\Stripe\StripeObject), terms_of_service_acceptance: null|(object{message: string}&\Stripe\StripeObject)}&\Stripe\StripeObject) $custom_text diff --git a/lib/Util/ApiVersion.php b/lib/Util/ApiVersion.php index 88e45121a..aa83eb2ed 100644 --- a/lib/Util/ApiVersion.php +++ b/lib/Util/ApiVersion.php @@ -6,5 +6,5 @@ class ApiVersion { - const CURRENT = '2026-06-10.preview'; + const CURRENT = '2026-06-24.preview'; } From c25e55db289bf5d8a87b22c3792595c45d6a22c0 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Tue, 23 Jun 2026 18:51:07 +0000 Subject: [PATCH 8/8] Update generated code for v2323 and 088388aa159596ba4e240aeb0bb65d5bb4a562ab --- CODEGEN_VERSION | 2 +- lib/Service/V2/Billing/ContractService.php | 169 +-------------------- lib/V2/Billing/Contract.php | 30 +--- 3 files changed, 7 insertions(+), 194 deletions(-) diff --git a/CODEGEN_VERSION b/CODEGEN_VERSION index 5d7a4e0ca..308e72af1 100644 --- a/CODEGEN_VERSION +++ b/CODEGEN_VERSION @@ -1 +1 @@ -f239adb51212b8dd4e5202b448d71ca4955fe9f9 \ No newline at end of file +088388aa159596ba4e240aeb0bb65d5bb4a562ab \ No newline at end of file diff --git a/lib/Service/V2/Billing/ContractService.php b/lib/Service/V2/Billing/ContractService.php index 320316232..8cd2fa5bf 100644 --- a/lib/Service/V2/Billing/ContractService.php +++ b/lib/Service/V2/Billing/ContractService.php @@ -36,30 +36,6 @@ public function activate($id, $params = null, $opts = null) 'response_schema' => [ 'kind' => 'object', 'fields' => [ - 'one_time_fees' => [ - 'kind' => 'object', - 'fields' => [ - 'data' => [ - 'kind' => 'array', - 'element' => [ - 'kind' => 'object', - 'fields' => [ - 'bill_schedule' => [ - 'kind' => 'array', - 'element' => [ - 'kind' => 'object', - 'fields' => [ - 'value' => [ - 'kind' => 'int64_string', - ], - ], - ], - ], - ], - ], - ], - ], - ], 'pricing_lines' => [ 'kind' => 'object', 'fields' => [ @@ -123,7 +99,7 @@ public function activate($id, $params = null, $opts = null) /** * List Contract objects with pagination. * - * @param null|array{customer?: string, limit?: int} $params + * @param null|array{customer?: string, include?: string[], limit?: int} $params * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @return \Stripe\V2\Collection<\Stripe\V2\Billing\Contract> @@ -141,30 +117,6 @@ public function all($params = null, $opts = null) 'element' => [ 'kind' => 'object', 'fields' => [ - 'one_time_fees' => [ - 'kind' => 'object', - 'fields' => [ - 'data' => [ - 'kind' => 'array', - 'element' => [ - 'kind' => 'object', - 'fields' => [ - 'bill_schedule' => [ - 'kind' => 'array', - 'element' => [ - 'kind' => 'object', - 'fields' => [ - 'value' => [ - 'kind' => 'int64_string', - ], - ], - ], - ], - ], - ], - ], - ], - ], 'pricing_lines' => [ 'kind' => 'object', 'fields' => [ @@ -245,30 +197,6 @@ public function cancel($id, $params = null, $opts = null) 'response_schema' => [ 'kind' => 'object', 'fields' => [ - 'one_time_fees' => [ - 'kind' => 'object', - 'fields' => [ - 'data' => [ - 'kind' => 'array', - 'element' => [ - 'kind' => 'object', - 'fields' => [ - 'bill_schedule' => [ - 'kind' => 'array', - 'element' => [ - 'kind' => 'object', - 'fields' => [ - 'value' => [ - 'kind' => 'int64_string', - ], - ], - ], - ], - ], - ], - ], - ], - ], 'pricing_lines' => [ 'kind' => 'object', 'fields' => [ @@ -332,7 +260,7 @@ public function cancel($id, $params = null, $opts = null) /** * Create a Contract object. * - * @param null|array{billing_cycle_anchor?: array{config?: array{day_of_month: int, hour?: int, minute?: int, month_of_year?: int, second?: int}, timestamp?: string, type: string}, billing_settings?: array{contract_billing_details?: array{bill_settings_details?: array{calculation?: array{tax?: array{type: string}}, invoice?: array{time_until_due?: array{interval: string, interval_count: int}}}, billing_profile_details: array{customer: string, default_payment_method?: string}, collection_settings_details: array{collection_method: string, payment_method_configuration?: string}}}, contract_number: string, currency: string, include?: string[], metadata?: array, one_time_fees?: array{bill_schedule: array{bill_at: array{timestamp?: string, type: string}, value: int}[], billable_item_type: string, product_details?: array{product: string}}[], pricing_lines: array{ends_at: array{timestamp?: string, type: string}, lookup_key?: string, metadata?: array, pricing: array{price_details?: array{price: string, pricing_overrides?: array{ends_at?: array{timestamp?: string, type: string}, lookup_key?: string, metadata?: array, overwrite_price?: array{tiering_mode?: string, tiers?: array{flat_amount?: string, unit_amount?: string, up_to_decimal?: string, up_to_inf?: string}[], unit_amount?: string}, priority?: int, starts_at?: array{timestamp?: string, type: string}, type: string}[], quantity_changes?: array{effective_at: array{timestamp?: string, type: string}, set: string}[]}, type: string}, starts_at: array{timestamp?: string, type: string}}[], pricing_overrides?: array{ends_at: array{timestamp?: string, type: string}, lookup_key?: string, multiplier?: array{criteria?: array{billable_item_ids: string[], billable_item_lookup_keys: string[], billable_item_types: string[], metadata_conditions: array{all_of: array{key: string, value: string}[]}[], rate_card_ids: string[], type: string}[], factor: string}, priority: int, starts_at: array{timestamp?: string, type: string}, type: string}[]} $params + * @param null|array{billing_cycle_anchor?: array{config?: array{day_of_month: int, hour?: int, minute?: int, month_of_year?: int, second?: int}, timestamp?: string, type: string}, billing_settings?: array{bill_settings_details?: array{calculation?: array{tax?: array{type: string}}, invoice?: array{time_until_due?: array{interval: string, interval_count: int}}}, billing_profile_details: array{customer: string, default_payment_method?: string}, collection_settings_details: array{collection_method: string, payment_method_configuration?: string}}, contract_number: string, currency: string, include?: string[], metadata?: array, one_time_fees?: array{amount: \Stripe\StripeObject, bill_at: array{timestamp?: string, type: string}, lookup_key?: string, product: string}[], pricing_lines: array{ends_at: array{timestamp?: string, type: string}, lookup_key?: string, metadata?: array, pricing: array{price_details?: array{price: string, pricing_overrides?: array{ends_at?: array{timestamp?: string, type: string}, lookup_key?: string, metadata?: array, overwrite_price?: array{tiering_mode?: string, tiers?: array{flat_amount?: string, unit_amount?: string, up_to_decimal?: string, up_to_inf?: string}[], unit_amount?: string}, priority?: int, starts_at?: array{timestamp?: string, type: string}, type: string}[], quantity_changes?: array{effective_at: array{timestamp?: string, type: string}, set: string}[]}, type: string}, starts_at: array{timestamp?: string, type: string}}[], pricing_overrides?: array{ends_at: array{timestamp?: string, type: string}, lookup_key?: string, multiplier?: array{criteria?: array{pricing_line_ids?: string[], pricing_line_lookup_keys?: string[], type: string}[], factor: string}, priority: int, starts_at: array{timestamp?: string, type: string}, type: string}[]} $params * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @return \Stripe\V2\Billing\Contract @@ -345,25 +273,6 @@ public function create($params = null, $opts = null) 'request_schema' => [ 'kind' => 'object', 'fields' => [ - 'one_time_fees' => [ - 'kind' => 'array', - 'element' => [ - 'kind' => 'object', - 'fields' => [ - 'bill_schedule' => [ - 'kind' => 'array', - 'element' => [ - 'kind' => 'object', - 'fields' => [ - 'value' => [ - 'kind' => 'int64_string', - ], - ], - ], - ], - ], - ], - ], 'pricing_lines' => [ 'kind' => 'array', 'element' => [ @@ -422,30 +331,6 @@ public function create($params = null, $opts = null) 'response_schema' => [ 'kind' => 'object', 'fields' => [ - 'one_time_fees' => [ - 'kind' => 'object', - 'fields' => [ - 'data' => [ - 'kind' => 'array', - 'element' => [ - 'kind' => 'object', - 'fields' => [ - 'bill_schedule' => [ - 'kind' => 'array', - 'element' => [ - 'kind' => 'object', - 'fields' => [ - 'value' => [ - 'kind' => 'int64_string', - ], - ], - ], - ], - ], - ], - ], - ], - ], 'pricing_lines' => [ 'kind' => 'object', 'fields' => [ @@ -539,30 +424,6 @@ public function retrieve($id, $params = null, $opts = null) 'response_schema' => [ 'kind' => 'object', 'fields' => [ - 'one_time_fees' => [ - 'kind' => 'object', - 'fields' => [ - 'data' => [ - 'kind' => 'array', - 'element' => [ - 'kind' => 'object', - 'fields' => [ - 'bill_schedule' => [ - 'kind' => 'array', - 'element' => [ - 'kind' => 'object', - 'fields' => [ - 'value' => [ - 'kind' => 'int64_string', - ], - ], - ], - ], - ], - ], - ], - ], - ], 'pricing_lines' => [ 'kind' => 'object', 'fields' => [ @@ -627,7 +488,7 @@ public function retrieve($id, $params = null, $opts = null) * Update a Contract object by ID. * * @param string $id - * @param null|array{include?: string[], pricing_line_actions?: array{add?: array{ends_at: array{timestamp?: string, type: string}, lookup_key?: string, metadata?: array, pricing: array{price_details?: array{price: string, pricing_overrides?: array{ends_at?: array{timestamp?: string, type: string}, lookup_key?: string, metadata?: array, overwrite_price?: array{tiering_mode?: string, tiers?: array{flat_amount?: string, unit_amount?: string, up_to_decimal?: string, up_to_inf?: string}[], unit_amount?: string}, priority?: int, starts_at?: array{timestamp?: string, type: string}, type: string}[], quantity_changes?: array{effective_at: array{timestamp?: string, type: string}, set: string}[]}, type: string}, starts_at: array{timestamp?: string, type: string}}, remove?: array{id: string}, type: string, update?: array{ends_at?: array{timestamp?: string, type: string}, id: string, pricing?: array{price_details?: array{pricing_override_actions?: array{add?: array{ends_at: array{timestamp?: string, type: string}, lookup_key?: string, metadata?: array, overwrite_price?: array{tiering_mode?: string, tiers?: array{flat_amount?: string, unit_amount?: string, up_to_decimal?: string, up_to_inf?: string}[], unit_amount?: string}, priority?: int, starts_at: array{timestamp?: string, type: string}, type: string}, remove?: array{id?: string, lookup_key?: string}, type: string, update?: array{ends_at?: array{timestamp?: string, type: string}, id?: string, lookup_key?: string, metadata?: array, starts_at?: array{timestamp?: string, type: string}}}[], quantity_changes?: array{effective_at: array{timestamp?: string, type: string}, set: string}[]}}, starts_at?: array{timestamp?: string, type: string}}}[], pricing_override_actions?: array{add?: array{ends_at: array{timestamp?: string, type: string}, lookup_key?: string, multiplier?: array{criteria: array{billable_item_ids: string[], billable_item_lookup_keys: string[], billable_item_types: string[], metadata_conditions: array{all_of: array{key: string, value: string}[]}[], rate_card_ids: string[], type: string}[], factor: string}, overwrite_price?: array{tiering_mode?: string, tiers: array{flat_amount?: string, unit_amount?: string, up_to_decimal?: string, up_to_inf?: string}[], unit_amount?: string}, priority: int, starts_at: array{timestamp?: string, type: string}, type: string}, remove?: array{id: string}, type: string, update?: array{ends_at?: array{timestamp?: string, type: string}, id: string, starts_at?: array{timestamp?: string, type: string}}}[]} $params + * @param null|array{include?: string[], pricing_line_actions?: array{add?: array{ends_at: array{timestamp?: string, type: string}, lookup_key?: string, metadata?: array, pricing: array{price_details?: array{price: string, pricing_overrides?: array{ends_at?: array{timestamp?: string, type: string}, lookup_key?: string, metadata?: array, overwrite_price?: array{tiering_mode?: string, tiers?: array{flat_amount?: string, unit_amount?: string, up_to_decimal?: string, up_to_inf?: string}[], unit_amount?: string}, priority?: int, starts_at?: array{timestamp?: string, type: string}, type: string}[], quantity_changes?: array{effective_at: array{timestamp?: string, type: string}, set: string}[]}, type: string}, starts_at: array{timestamp?: string, type: string}}, remove?: array{id: string}, type: string, update?: array{ends_at?: array{timestamp?: string, type: string}, id: string, pricing?: array{price_details?: array{pricing_override_actions?: array{add?: array{ends_at: array{timestamp?: string, type: string}, lookup_key?: string, metadata?: array, overwrite_price?: array{tiering_mode?: string, tiers?: array{flat_amount?: string, unit_amount?: string, up_to_decimal?: string, up_to_inf?: string}[], unit_amount?: string}, priority?: int, starts_at: array{timestamp?: string, type: string}, type: string}, remove?: array{id?: string, lookup_key?: string}, type: string, update?: array{ends_at?: array{timestamp?: string, type: string}, id?: string, lookup_key?: string, metadata?: array, starts_at?: array{timestamp?: string, type: string}}}[], quantity_changes?: array{effective_at: array{timestamp?: string, type: string}, set: string}[]}}, starts_at?: array{timestamp?: string, type: string}}}[], pricing_override_actions?: array{add?: array{ends_at: array{timestamp?: string, type: string}, lookup_key?: string, multiplier?: array{criteria: array{pricing_line_ids?: string[], pricing_line_lookup_keys?: string[], type: string}[], factor: string}, overwrite_price?: array{tiering_mode?: string, tiers: array{flat_amount?: string, unit_amount?: string, up_to_decimal?: string, up_to_inf?: string}[], unit_amount?: string}, priority: int, starts_at: array{timestamp?: string, type: string}, type: string}, remove?: array{id: string}, type: string, update?: array{ends_at?: array{timestamp?: string, type: string}, id: string, starts_at?: array{timestamp?: string, type: string}}}[]} $params * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @return \Stripe\V2\Billing\Contract @@ -787,30 +648,6 @@ public function update($id, $params = null, $opts = null) 'response_schema' => [ 'kind' => 'object', 'fields' => [ - 'one_time_fees' => [ - 'kind' => 'object', - 'fields' => [ - 'data' => [ - 'kind' => 'array', - 'element' => [ - 'kind' => 'object', - 'fields' => [ - 'bill_schedule' => [ - 'kind' => 'array', - 'element' => [ - 'kind' => 'object', - 'fields' => [ - 'value' => [ - 'kind' => 'int64_string', - ], - ], - ], - ], - ], - ], - ], - ], - ], 'pricing_lines' => [ 'kind' => 'object', 'fields' => [ diff --git a/lib/V2/Billing/Contract.php b/lib/V2/Billing/Contract.php index 9fd928106..b953b4c47 100644 --- a/lib/V2/Billing/Contract.php +++ b/lib/V2/Billing/Contract.php @@ -10,16 +10,16 @@ * @property string $id The ID of the contract object. * @property string $object String representing the object's type. Objects of the same type share the same value of the object field. * @property null|(object{timestamp: int}&\Stripe\StripeObject) $billing_cycle_anchor The billing cycle anchor for the contract. - * @property null|(object{contract_billing_details?: (object{bill_settings_details?: (object{calculation?: (object{tax?: (object{type: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), invoice?: (object{time_until_due?: (object{interval: string, interval_count: int}&\Stripe\StripeObject)}&\Stripe\StripeObject)}&\Stripe\StripeObject), billing_profile_details: (object{customer: string, default_payment_method?: string}&\Stripe\StripeObject), collection_settings_details: (object{collection_method: string, payment_method_configuration?: string}&\Stripe\StripeObject)}&\Stripe\StripeObject)}&\Stripe\StripeObject) $billing_settings The billing settings for the contract. + * @property null|(object{bill_settings_details?: (object{calculation?: (object{tax?: (object{type: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), invoice?: (object{time_until_due?: (object{interval: string, interval_count: int}&\Stripe\StripeObject)}&\Stripe\StripeObject)}&\Stripe\StripeObject), billing_profile_details: (object{customer: string, default_payment_method?: string}&\Stripe\StripeObject), collection_settings_details: (object{collection_method: string, payment_method_configuration?: string}&\Stripe\StripeObject)}&\Stripe\StripeObject) $billing_settings The billing settings for the contract. * @property string $contract_number A unique user-provided contract number e.g. C-2026-0001. * @property int $created Timestamp of when the object was created. * @property string $currency The currency of the contract. * @property string $customer The ID of the customer associated with the contract. * @property bool $livemode Has the value true if the object exists in live mode or the value false if the object exists in test mode. * @property null|\Stripe\StripeObject $metadata Set of key-value pairs that you can attach to an object. - * @property null|(object{data: (object{bill_schedule: (object{bill_at: (object{timestamp?: int, type: string}&\Stripe\StripeObject), value: int}&\Stripe\StripeObject)[], billable_item_type: string, id: string, lookup_key?: string, product_details?: (object{product: string}&\Stripe\StripeObject)}&\Stripe\StripeObject)[]}&\Stripe\StripeObject) $one_time_fees The one-time fees of the contract. Only populated when one_time_fees is passed in the include parameter. + * @property null|(object{data: (object{amount: \Stripe\StripeObject, bill_at: (object{timestamp: int}&\Stripe\StripeObject), id: string, lookup_key?: string, product: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject) $one_time_fees The one-time fees of the contract. Only populated when one_time_fees is passed in the include parameter. * @property null|(object{data: (object{ends_at: (object{timestamp: int}&\Stripe\StripeObject), id: string, lookup_key?: string, metadata?: \Stripe\StripeObject, pricing: (object{price_details?: (object{current_quantity: string, price: string, pricing_overrides?: (object{data: (object{ends_at: (object{timestamp: int}&\Stripe\StripeObject), lookup_key?: string, overwrite_price?: (object{tiering_mode?: string, tiers: (object{flat_amount?: string, unit_amount?: string, up_to_decimal?: string, up_to_inf?: string}&\Stripe\StripeObject)[], unit_amount?: string}&\Stripe\StripeObject), pricing_override: string, starts_at: (object{timestamp: int}&\Stripe\StripeObject), type: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject)}&\Stripe\StripeObject), type: string}&\Stripe\StripeObject), starts_at: (object{timestamp: int}&\Stripe\StripeObject)}&\Stripe\StripeObject)[]}&\Stripe\StripeObject) $pricing_lines The pricing lines of the contract. Only populated when pricing_lines is passed in the include parameter. - * @property null|(object{data: (object{ends_at: (object{timestamp: int}&\Stripe\StripeObject), id: string, lookup_key?: string, multiplier?: (object{criteria: (object{billable_item_ids: string[], billable_item_lookup_keys: string[], billable_item_types: string[], metadata_conditions: (object{all_of: (object{key: string, value: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject)[], rate_card_ids: string[], type: string}&\Stripe\StripeObject)[], factor: string}&\Stripe\StripeObject), priority: int, starts_at: (object{timestamp: int}&\Stripe\StripeObject), type: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject) $pricing_overrides The pricing overrides of the contract. Only populated when pricing_overrides is passed in the include parameter. + * @property null|(object{data: (object{ends_at: (object{timestamp: int}&\Stripe\StripeObject), id: string, lookup_key?: string, multiplier?: (object{criteria: (object{pricing_line_ids?: string[], pricing_line_lookup_keys?: string[], type: string}&\Stripe\StripeObject)[], factor: string}&\Stripe\StripeObject), priority: int, starts_at: (object{timestamp: int}&\Stripe\StripeObject), type: string}&\Stripe\StripeObject)[]}&\Stripe\StripeObject) $pricing_overrides The pricing overrides of the contract. Only populated when pricing_overrides is passed in the include parameter. * @property string $status The current status of the contract. * @property (object{active?: (object{activated_at: int}&\Stripe\StripeObject), canceled?: (object{canceled_at: int}&\Stripe\StripeObject)}&\Stripe\StripeObject) $status_details Information about the contract status transitions. */ @@ -30,30 +30,6 @@ class Contract extends \Stripe\ApiResource public static function fieldEncodings() { return [ - 'one_time_fees' => [ - 'kind' => 'object', - 'fields' => [ - 'data' => [ - 'kind' => 'array', - 'element' => [ - 'kind' => 'object', - 'fields' => [ - 'bill_schedule' => [ - 'kind' => 'array', - 'element' => [ - 'kind' => 'object', - 'fields' => [ - 'value' => [ - 'kind' => 'int64_string', - ], - ], - ], - ], - ], - ], - ], - ], - ], 'pricing_lines' => [ 'kind' => 'object', 'fields' => [