diff --git a/.hark/changes/2026-10-14_stripe-openapi_4faf44cc.change.md b/.hark/changes/2026-10-14_stripe-openapi_4faf44cc.change.md new file mode 100644 index 0000000000..b695dc974c --- /dev/null +++ b/.hark/changes/2026-10-14_stripe-openapi_4faf44cc.change.md @@ -0,0 +1,39 @@ +--- +title: Update generated code +pr_url: https://github.com/stripe/stripe-php/pull/2177 +semver_level: major +is_stripe_api_change: true +--- + +* ⚠️ Remove support for `capture` method on resource `V2.Payments.OffSessionPayment` +* ⚠️ Remove support for `acknowledge_confirmation_of_payee` and `initiate_confirmation_of_payee` methods on resource `V2.Core.Vault.GbBankAccount` +* Add support for `wechat_pay_mobile_web_payments` on `Account.create().$params.setting`, `Account.settings`, and `Account.update().$params.setting` +* ⚠️ Remove support for `wechat_pay_payments` on `Account.create().$params.setting`, `Account.settings`, and `Account.update().$params.setting` +* Add support for `settlement_reserved` on `Balance` +* Change type of `BalanceSettings.payments.default_settlement_currency` from `nullable(string)` to `string` +* Add support for new value `settlement_reserved` on enum `BalanceTransaction.balance_type` +* Add support for `carecredit`, `getflex`, and `sezzle` on `Charge.payment_method_details`, `ConfirmationToken.create().$params.payment_method_datum`, `ConfirmationToken.payment_method_preview`, `PaymentAttemptRecord.payment_method_details`, `PaymentIntent.confirm().$params.payment_method_datum`, `PaymentIntent.confirm().$params.payment_method_option`, `PaymentIntent.create().$params.payment_method_datum`, `PaymentIntent.create().$params.payment_method_option`, `PaymentIntent.payment_method_options`, `PaymentIntent.update().$params.payment_method_datum`, `PaymentIntent.update().$params.payment_method_option`, `PaymentMethod.create().$params`, `PaymentMethod`, `PaymentRecord.payment_method_details`, `SetupIntent.confirm().$params.payment_method_datum`, `SetupIntent.create().$params.payment_method_datum`, and `SetupIntent.update().$params.payment_method_datum` +* Add support for `rakuten_pay` on `Charge.payment_method_details`, `ConfirmationToken.create().$params.payment_method_datum`, `ConfirmationToken.payment_method_preview`, `PaymentAttemptRecord.payment_method_details`, `PaymentIntent.confirm().$params.payment_method_datum`, `PaymentIntent.create().$params.payment_method_datum`, `PaymentIntent.update().$params.payment_method_datum`, `PaymentMethod.create().$params`, `PaymentMethod`, `PaymentRecord.payment_method_details`, `SetupIntent.confirm().$params.payment_method_datum`, `SetupIntent.create().$params.payment_method_datum`, and `SetupIntent.update().$params.payment_method_datum` +* Add support for `mandate_options` on `Checkout\Session.create().$params.payment_method_option.card` +* Add support for new value `auto` on enum `Checkout.Session.payment_method_collection` +* Change `Checkout.Session.items[].subscription.backdate_start_date` to be required +* Add support for new values `carecredit`, `getflex`, `rakuten_pay`, and `sezzle` on enums `ConfirmationToken.payment_method_preview.type` and `PaymentMethod.type` +* Add support for new values `three_d_secure.authentication.canceled`, `three_d_secure.authentication.challenge_started`, `three_d_secure.authentication.errored`, `three_d_secure.authentication.failed`, `three_d_secure.authentication.requires_challenge`, `three_d_secure.authentication.requires_submission`, and `three_d_secure.authentication.succeeded` on enum `Event.type` +* Add support for `fraudulent_document` on `Identity.VerificationReport.signals` +* Add support for new values `carecredit`, `getflex`, `rakuten_pay`, and `sezzle` on enums `PaymentIntent.allowed_payment_method_types` and `SetupIntent.allowed_payment_method_types` +* Add support for new values `carecredit`, `getflex`, `rakuten_pay`, and `sezzle` on enums `PaymentIntent.excluded_payment_method_types` and `SetupIntent.excluded_payment_method_types` +* Add support for `contact_email` on `V2.Core.AccountEvaluation.account_data`, `V2.Signals.AccountActivity.account_details.data`, `V2.Signals.AccountEvaluation.account_details.data`, `V2\Core\AccountEvaluation.create().$params.account_datum`, `V2\Signals\AccountActivity.create().$params.account_detail.datum`, and `V2\Signals\AccountEvaluation.create().$params.account_detail.datum` +* Add support for new value `user_merchant_fit` on enum `V2.Core.AccountEvaluation.evaluations_triggered` +* ⚠️ Change type of `V2.Core.Account.identity.individual.additional_addresses[].purpose` and `V2.Core.AccountPerson.additional_addresses[].purpose` from `literal('registered')` to `enum('birthplace'|'registered')` +* Add support for `bre_b`, `nip`, and `pix` on `V2.MoneyManagement.FinancialAddress.bank_account` and `V2.MoneyManagement.ReceivedCredit.bank_transfer.originating_bank_account` +* Add support for new value `ousd` on enum `V2.MoneyManagement.FinancialAddress.crypto_wallet.supported_network_details.value.supported_token_currencies` +* Add support for new values `bre_b`, `nip`, and `pix` on enum `V2.MoneyManagement.ReceivedCredit.bank_transfer.originating_bank_account.type` +* ⚠️ Remove support for `amount_capturable` on `V2.Payments.OffSessionPayment` +* ⚠️ Remove support for `capture` on `V2.Payments.OffSessionPayment` and `V2\Payments\OffSessionPayment.create().$params` +* Add support for `user_merchant_fit` on `V2.Signals.AccountEvaluation.evaluated_signals` and `V2.Signals.AccountSignal` +* Add support for new value `user_merchant_fit` on enum `V2.Signals.AccountEvaluation.pending_signals` +* Add support for new value `user_merchant_fit` on enum `V2.Signals.AccountEvaluation.requested_signals` +* Add support for new value `user_merchant_fit` on enum `V2.Signals.AccountSignal.type` +* Change type of `V2\Core\Account.create().$params.identity.individual.additional_address.purpose`, `V2\Core\Account.update().$params.identity.individual.additional_address.purpose`, `V2\Core\AccountPerson.create().$params.additional_address.purpose`, `V2\Core\AccountPerson.update().$params.additional_address.purpose`, `V2\Core\AccountPersonToken.create().$params.additional_address.purpose`, and `V2\Core\AccountToken.create().$params.identity.individual.additional_address.purpose` from `literal('registered')` to `enum('birthplace'|'registered')` +* Add support for snapshot events `THREE_D_SECURE_AUTHENTICATION_CANCELED`, `THREE_D_SECURE_AUTHENTICATION_CHALLENGE_STARTED`, `THREE_D_SECURE_AUTHENTICATION_ERRORED`, `THREE_D_SECURE_AUTHENTICATION_FAILED`, `THREE_D_SECURE_AUTHENTICATION_REQUIRES_CHALLENGE`, `THREE_D_SECURE_AUTHENTICATION_REQUIRES_SUBMISSION`, and `THREE_D_SECURE_AUTHENTICATION_SUCCEEDED` with resource `ThreeDSecure.Authentication` +* ⚠️ Remove support for event notification `V2PaymentsOffSessionPaymentRequiresCaptureEvent` with related object `V2.Payments.OffSessionPayment` diff --git a/CODEGEN_VERSION b/CODEGEN_VERSION index 0f330b47ae..52d81e8f18 100644 --- a/CODEGEN_VERSION +++ b/CODEGEN_VERSION @@ -1 +1 @@ -43649cb7390f9257ffa04232dc7ed9ea8359c77f \ No newline at end of file +ee856c792d5b7bc7c9a55588bd92531c2774e744 \ No newline at end of file diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 06472c208f..24341e7738 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v2544 \ No newline at end of file +v2562 \ No newline at end of file diff --git a/init.php b/init.php index f2b4e9802d..e3c4f78d37 100644 --- a/init.php +++ b/init.php @@ -1158,8 +1158,6 @@ require __DIR__ . '/lib/Events/V2PaymentsOffSessionPaymentFailedEventNotification.php'; require __DIR__ . '/lib/Events/V2PaymentsOffSessionPaymentPausedEvent.php'; require __DIR__ . '/lib/Events/V2PaymentsOffSessionPaymentPausedEventNotification.php'; -require __DIR__ . '/lib/Events/V2PaymentsOffSessionPaymentRequiresCaptureEvent.php'; -require __DIR__ . '/lib/Events/V2PaymentsOffSessionPaymentRequiresCaptureEventNotification.php'; require __DIR__ . '/lib/Events/V2PaymentsOffSessionPaymentResumedEvent.php'; require __DIR__ . '/lib/Events/V2PaymentsOffSessionPaymentResumedEventNotification.php'; require __DIR__ . '/lib/Events/V2PaymentsOffSessionPaymentSucceededEvent.php'; diff --git a/lib/AbstractEventNotificationHandler.php b/lib/AbstractEventNotificationHandler.php index ac6e80b2df..38cd2e99c5 100644 --- a/lib/AbstractEventNotificationHandler.php +++ b/lib/AbstractEventNotificationHandler.php @@ -6306,22 +6306,6 @@ public function onV2PaymentsOffSessionPaymentPaused($handler) $this->register('v2.payments.off_session_payment.paused', $handler); } - /** - * Registers a handler for the "v2.payments.off_session_payment.requires_capture" event. - * - * @param callable(Events\V2PaymentsOffSessionPaymentRequiresCaptureEventNotification, StripeClient): void $handler Handles v2.payments.off_session_payment.requires_capture 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 onV2PaymentsOffSessionPaymentRequiresCapture($handler) - { - $this->register( - 'v2.payments.off_session_payment.requires_capture', - $handler - ); - } - /** * Registers a handler for the "v2.payments.off_session_payment.resumed" event. * diff --git a/lib/Account.php b/lib/Account.php index dd49f9a61f..fd0f4c26c6 100644 --- a/lib/Account.php +++ b/lib/Account.php @@ -42,7 +42,7 @@ * @property null|(object{alternatives: null|(object{alternative_fields_due: string[], original_fields_due: string[]}&StripeObject)[], current_deadline: null|int, currently_due: null|string[], disabled_reason: null|string, errors: null|(object{code: string, details?: (object{partner_rejection_code?: string}&StripeObject), reason: string, requirement: string}&StripeObject)[], eventually_due: null|string[], past_due: null|string[], pending_verification: null|string[]}&StripeObject) $requirements * @property null|(object{charges: (object{pause_requested: bool}&StripeObject), payouts: (object{pause_requested: bool}&StripeObject), rejected_reason?: null|string}&StripeObject) $risk_controls * @property null|RiskSignals $risk_signals A hash containing information about risk signal collection - * @property null|(object{bacs_debit_payments?: (object{display_name: null|string, service_user_number: null|string}&StripeObject), bank_bca_onboarding?: (object{account_holder_name?: string, business_account_number?: string}&StripeObject), branding: (object{icon: null|File|string, logo: null|File|string, primary_color: null|string, secondary_color: null|string}&StripeObject), capital?: (object{allowed_payout_destinations?: null|string[], excluded_payout_destinations?: null|string[]}&StripeObject), card_issuing?: (object{tos_acceptance?: (object{date: null|int, ip: null|string, user_agent?: string}&StripeObject)}&StripeObject), card_payments: (object{decline_on?: (object{avs_failure: bool, cvc_failure: bool}&StripeObject), statement_descriptor_prefix: null|string, statement_descriptor_prefix_kana: null|string, statement_descriptor_prefix_kanji: null|string}&StripeObject), dashboard: (object{display_name: null|string, timezone: null|string}&StripeObject), invoices?: (object{default_account_tax_ids: null|(string|TaxId)[], hosted_payment_method_save: null|string}&StripeObject), payments: (object{email_customers_on_successful_payment?: null|bool, statement_descriptor: null|string, statement_descriptor_kana: null|string, statement_descriptor_kanji: null|string, statement_descriptor_prefix_kana: null|string, statement_descriptor_prefix_kanji: null|string}&StripeObject), payouts?: (object{debit_negative_balances: bool, schedule: (object{delay_days: int, interval: string, monthly_anchor?: int, monthly_payout_days?: int[], weekly_anchor?: string, weekly_payout_days?: string[]}&StripeObject), statement_descriptor: null|string}&StripeObject), paypay_payments?: (object{additional_files?: string[], goods_type?: string, site?: (object{accessible?: (object{}&StripeObject), in_development?: (object{password_provided?: bool, username: null|string}&StripeObject), restricted?: (object{payment_flow_file: null|string}&StripeObject), type?: string}&StripeObject)}&StripeObject), sepa_debit_payments?: (object{creditor_id?: string}&StripeObject), smart_disputes?: (object{auto_respond: (object{preference: string, value: string}&StripeObject)}&StripeObject), tax_forms?: (object{consented_to_paperless_delivery: bool}&StripeObject), treasury?: (object{tos_acceptance?: (object{date: null|int, ip: null|string, user_agent?: string}&StripeObject)}&StripeObject), wechat_pay_payments?: (object{mobile_web_domains?: string[]}&StripeObject)}&StripeObject) $settings Options for customizing how the account functions within Stripe. + * @property null|(object{bacs_debit_payments?: (object{display_name: null|string, service_user_number: null|string}&StripeObject), bank_bca_onboarding?: (object{account_holder_name?: string, business_account_number?: string}&StripeObject), branding: (object{icon: null|File|string, logo: null|File|string, primary_color: null|string, secondary_color: null|string}&StripeObject), capital?: (object{allowed_payout_destinations?: null|string[], excluded_payout_destinations?: null|string[]}&StripeObject), card_issuing?: (object{tos_acceptance?: (object{date: null|int, ip: null|string, user_agent?: string}&StripeObject)}&StripeObject), card_payments: (object{decline_on?: (object{avs_failure: bool, cvc_failure: bool}&StripeObject), statement_descriptor_prefix: null|string, statement_descriptor_prefix_kana: null|string, statement_descriptor_prefix_kanji: null|string}&StripeObject), dashboard: (object{display_name: null|string, timezone: null|string}&StripeObject), invoices?: (object{default_account_tax_ids: null|(string|TaxId)[], hosted_payment_method_save: null|string}&StripeObject), payments: (object{email_customers_on_successful_payment?: null|bool, statement_descriptor: null|string, statement_descriptor_kana: null|string, statement_descriptor_kanji: null|string, statement_descriptor_prefix_kana: null|string, statement_descriptor_prefix_kanji: null|string}&StripeObject), payouts?: (object{debit_negative_balances: bool, schedule: (object{delay_days: int, interval: string, monthly_anchor?: int, monthly_payout_days?: int[], weekly_anchor?: string, weekly_payout_days?: string[]}&StripeObject), statement_descriptor: null|string}&StripeObject), paypay_payments?: (object{additional_files?: string[], goods_type?: string, site?: (object{accessible?: (object{}&StripeObject), in_development?: (object{password_provided?: bool, username: null|string}&StripeObject), restricted?: (object{payment_flow_file: null|string}&StripeObject), type?: string}&StripeObject)}&StripeObject), sepa_debit_payments?: (object{creditor_id?: string}&StripeObject), smart_disputes?: (object{auto_respond: (object{preference: string, value: string}&StripeObject)}&StripeObject), tax_forms?: (object{consented_to_paperless_delivery: bool}&StripeObject), treasury?: (object{tos_acceptance?: (object{date: null|int, ip: null|string, user_agent?: string}&StripeObject)}&StripeObject), wechat_pay_mobile_web_payments?: (object{domains?: string[]}&StripeObject)}&StripeObject) $settings Options for customizing how the account functions within Stripe. * @property null|(object{date?: null|int, ip?: null|string, service_agreement?: string, user_agent?: null|string}&StripeObject) $tos_acceptance * @property null|string $type The Stripe account type. Can be standard, express, custom, or none. */ @@ -75,7 +75,7 @@ class Account extends ApiResource * the prefilled information during account onboarding. You can prefill any * information on the account. * - * @param null|array{account_token?: string, business_profile?: array{annual_revenue?: array{amount: int, currency: string, fiscal_year_end: string}, estimated_worker_count?: int, mcc?: string, minority_owned_business_designation?: string[], monthly_estimated_revenue?: array{amount: int, currency: string}, name?: string, product_description?: string, specified_commercial_transactions_act_url?: null|string, support_address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, support_email?: string, support_phone?: string, support_url?: null|string, url?: string}, business_type?: string, capabilities?: array{acss_debit_payments?: array{requested?: bool}, affirm_payments?: array{requested?: bool}, afterpay_clearpay_payments?: array{requested?: bool}, alma_payments?: array{requested?: bool}, amazon_pay_payments?: array{requested?: bool}, app_distribution?: array{requested?: bool}, au_becs_debit_payments?: array{requested?: bool}, automatic_indirect_tax?: array{requested?: bool}, bacs_debit_payments?: array{requested?: bool}, bancontact_payments?: array{requested?: bool}, bank_transfer_payments?: array{requested?: bool}, billie_payments?: array{requested?: bool}, bizum_payments?: array{requested?: bool}, blik_payments?: array{requested?: bool}, blik_recurring_payments?: array{requested?: bool}, boleto_payments?: array{requested?: bool}, card_issuing?: array{requested?: bool}, card_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}, cartes_bancaires_payments?: array{requested?: bool}, cashapp_payments?: array{requested?: bool}, crypto_payments?: array{requested?: bool}, eps_payments?: array{requested?: bool}, fpx_payments?: array{requested?: bool}, gb_bank_transfer_payments?: array{requested?: bool}, giropay_payments?: array{requested?: bool}, gopay_payments?: array{requested?: bool}, grabpay_payments?: array{requested?: bool}, id_bank_transfer_payments?: array{requested?: bool}, id_bank_transfer_payments_bca?: array{requested?: bool}, ideal_payments?: array{requested?: bool}, india_international_payments?: array{requested?: bool}, jcb_payments?: array{requested?: bool}, jp_bank_transfer_payments?: array{requested?: bool}, kakao_pay_payments?: array{requested?: bool}, klarna_payments?: array{requested?: bool}, konbini_payments?: array{requested?: bool}, kr_card_payments?: array{requested?: bool}, legacy_payments?: array{requested?: bool}, link_payments?: array{requested?: bool}, mb_way_payments?: array{requested?: bool}, mobilepay_payments?: array{requested?: bool}, multibanco_payments?: array{requested?: bool}, mx_bank_transfer_payments?: array{requested?: bool}, naver_pay_payments?: array{requested?: bool}, nz_bank_account_becs_debit_payments?: array{requested?: bool}, oxxo_payments?: array{requested?: bool}, p24_payments?: array{requested?: bool}, pay_by_bank_payments?: array{requested?: bool}, payco_payments?: array{requested?: bool}, paynow_payments?: array{requested?: bool}, paypal_payments?: array{requested?: bool}, paypay_payments?: array{requested?: bool}, payto_payments?: array{requested?: bool}, pix_payments?: array{requested?: bool}, promptpay_payments?: array{requested?: bool}, qris_payments?: array{requested?: bool}, rechnung_payments?: array{requested?: bool}, revolut_pay_payments?: array{requested?: bool}, samsung_pay_payments?: array{requested?: bool}, satispay_payments?: array{requested?: bool}, scalapay_payments?: array{requested?: bool}, sepa_bank_transfer_payments?: array{requested?: bool}, sepa_debit_payments?: array{requested?: bool}, sequra_payments?: array{requested?: bool}, shopeepay_payments?: array{requested?: bool}, sofort_payments?: array{requested?: bool}, stripe_balance_payments?: array{requested?: bool}, sunbit_payments?: array{requested?: bool}, swish_payments?: array{requested?: bool}, tax_reporting_us_1099_k?: array{requested?: bool}, tax_reporting_us_1099_misc?: array{requested?: bool}, transfers?: array{requested?: bool}, treasury?: array{requested?: bool}, treasury_evolve?: array{requested?: bool}, treasury_fifth_third?: array{requested?: bool}, treasury_goldman_sachs?: array{requested?: bool}, twint_payments?: array{requested?: bool}, upi_payments?: array{requested?: bool}, us_bank_account_ach_payments?: array{requested?: bool}, us_bank_transfer_payments?: array{requested?: bool}, zip_payments?: array{requested?: bool}}, company?: array{address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, address_kana?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}, address_kanji?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}, administrative_address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, directors_provided?: bool, directorship_declaration?: array{date?: int, ip?: string, user_agent?: string}, executives_provided?: bool, export_license_id?: string, export_purpose_code?: string, name?: string, name_kana?: string, name_kanji?: string, owners_provided?: bool, ownership_declaration?: array{date?: int, ip?: string, user_agent?: string}, ownership_exemption_reason?: null|string, phone?: string, principal_place_of_business?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, registration_date?: null|array{day: int, month: int, year: int}, registration_number?: string, representative_declaration?: array{date?: int, ip?: string, user_agent?: string}, structure?: null|string, tax_id?: string, tax_id_registrar?: string, vat_id?: string, verification?: array{document?: array{back?: string, front?: string}}}, controller?: array{application?: array{loss_liable: bool, onboarding_owner?: bool, pricing_controls?: bool}, dashboard?: array{type?: string}, fees?: array{payer?: string}, losses?: array{payments?: string}, requirement_collection?: string, stripe_dashboard?: array{type?: string}}, country?: string, default_currency?: string, documents?: array{bank_account_ownership_verification?: array{files?: string[]}, company_license?: array{files?: string[]}, company_memorandum_of_association?: array{files?: string[]}, company_ministerial_decree?: array{files?: string[]}, company_registration_verification?: array{files?: string[]}, company_tax_id_verification?: array{files?: string[]}, proof_of_address?: array{files?: string[]}, proof_of_ultimate_beneficial_ownership?: array{files?: string[], signer?: array{person?: string}}}, email?: string, expand?: string[], external_account?: array{object: string, account_holder_name?: string, account_holder_type?: string, account_number: string, country: string, currency?: string, routing_number?: string}|array{object: string, address_city?: string, address_country?: string, address_line1?: string, address_line2?: string, address_state?: string, address_zip?: string, currency?: string, cvc?: string, default_for_currency?: bool, exp_month: int, exp_year: int, metadata?: array, name?: string, number: string}|array{object: string, currency?: string, token: string}|string, groups?: array{payments_pricing?: null|string}, individual?: array{address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, address_kana?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}, address_kanji?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}, birth_address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, dob?: null|array{day: int, month: int, year: int}, email?: string, first_name?: string, first_name_kana?: string, first_name_kanji?: string, full_name_aliases?: null|string[], gender?: string, id_number?: string, id_number_secondary?: string, last_name?: string, last_name_kana?: string, last_name_kanji?: string, maiden_name?: string, metadata?: null|array, phone?: string, political_exposure?: string, registered_address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, relationship?: array{director?: bool, executive?: bool, owner?: bool, percent_ownership?: null|float, title?: string}, self_reported_income?: array{amount: int, currency: string}, self_reported_monthly_housing_payment?: array{amount: int, currency: string}, ssn_last_4?: string, verification?: array{additional_document?: array{back?: string, front?: string}, document?: array{back?: string, front?: string}}}, metadata?: null|array, risk_controls?: array{charges?: array{pause_requested?: bool}, payouts?: array{pause_requested?: bool}}, settings?: array{bacs_debit_payments?: array{display_name?: string}, bank_bca_onboarding?: array{account_holder_name?: string, business_account_number?: string}, branding?: array{icon?: string, logo?: string, primary_color?: string, secondary_color?: string}, capital?: array{payout_destination?: array, payout_destination_selector?: array}, card_issuing?: array{tos_acceptance?: array{date?: int, ip?: string, user_agent?: null|string}}, card_payments?: array{decline_on?: array{avs_failure?: bool, cvc_failure?: bool}, statement_descriptor_prefix?: string, statement_descriptor_prefix_kana?: null|string, statement_descriptor_prefix_kanji?: null|string}, invoices?: array{hosted_payment_method_save?: string}, payments?: array{email_customers_on_successful_payment?: bool, statement_descriptor?: string, statement_descriptor_kana?: string, statement_descriptor_kanji?: string}, payouts?: array{debit_negative_balances?: bool, schedule?: array{delay_days?: int|string, interval?: string, monthly_anchor?: int, monthly_payout_days?: int[], weekly_anchor?: string, weekly_payout_days?: string[]}, statement_descriptor?: string}, paypay_payments?: array{additional_files?: string[], goods_type?: string, site?: array{accessible?: array{}, in_development?: array{password: string, username?: string}, restricted?: array{payment_flow_file?: string}, type?: string}}, sepa_debit_payments?: array{creditor_id?: string}, smart_disputes?: array{auto_respond?: array{preference?: string}}, tax_forms?: array{consented_to_paperless_delivery?: bool}, treasury?: array{tos_acceptance?: array{date?: int, ip?: string, user_agent?: null|string}}, wechat_pay_payments?: array{mobile_web_domains?: null|string[]}}, tos_acceptance?: array{date?: int, ip?: string, service_agreement?: string, user_agent?: string}, type?: string} $params + * @param null|array{account_token?: string, business_profile?: array{annual_revenue?: array{amount: int, currency: string, fiscal_year_end: string}, estimated_worker_count?: int, mcc?: string, minority_owned_business_designation?: string[], monthly_estimated_revenue?: array{amount: int, currency: string}, name?: string, product_description?: string, specified_commercial_transactions_act_url?: null|string, support_address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, support_email?: string, support_phone?: string, support_url?: null|string, url?: string}, business_type?: string, capabilities?: array{acss_debit_payments?: array{requested?: bool}, affirm_payments?: array{requested?: bool}, afterpay_clearpay_payments?: array{requested?: bool}, alma_payments?: array{requested?: bool}, amazon_pay_payments?: array{requested?: bool}, app_distribution?: array{requested?: bool}, au_becs_debit_payments?: array{requested?: bool}, automatic_indirect_tax?: array{requested?: bool}, bacs_debit_payments?: array{requested?: bool}, bancontact_payments?: array{requested?: bool}, bank_transfer_payments?: array{requested?: bool}, billie_payments?: array{requested?: bool}, bizum_payments?: array{requested?: bool}, blik_payments?: array{requested?: bool}, blik_recurring_payments?: array{requested?: bool}, boleto_payments?: array{requested?: bool}, card_issuing?: array{requested?: bool}, card_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}, cartes_bancaires_payments?: array{requested?: bool}, cashapp_payments?: array{requested?: bool}, crypto_payments?: array{requested?: bool}, eps_payments?: array{requested?: bool}, fpx_payments?: array{requested?: bool}, gb_bank_transfer_payments?: array{requested?: bool}, giropay_payments?: array{requested?: bool}, gopay_payments?: array{requested?: bool}, grabpay_payments?: array{requested?: bool}, id_bank_transfer_payments?: array{requested?: bool}, id_bank_transfer_payments_bca?: array{requested?: bool}, ideal_payments?: array{requested?: bool}, india_international_payments?: array{requested?: bool}, jcb_payments?: array{requested?: bool}, jp_bank_transfer_payments?: array{requested?: bool}, kakao_pay_payments?: array{requested?: bool}, klarna_payments?: array{requested?: bool}, konbini_payments?: array{requested?: bool}, kr_card_payments?: array{requested?: bool}, legacy_payments?: array{requested?: bool}, link_payments?: array{requested?: bool}, mb_way_payments?: array{requested?: bool}, mobilepay_payments?: array{requested?: bool}, multibanco_payments?: array{requested?: bool}, mx_bank_transfer_payments?: array{requested?: bool}, naver_pay_payments?: array{requested?: bool}, nz_bank_account_becs_debit_payments?: array{requested?: bool}, oxxo_payments?: array{requested?: bool}, p24_payments?: array{requested?: bool}, pay_by_bank_payments?: array{requested?: bool}, payco_payments?: array{requested?: bool}, paynow_payments?: array{requested?: bool}, paypal_payments?: array{requested?: bool}, paypay_payments?: array{requested?: bool}, payto_payments?: array{requested?: bool}, pix_payments?: array{requested?: bool}, promptpay_payments?: array{requested?: bool}, qris_payments?: array{requested?: bool}, rechnung_payments?: array{requested?: bool}, revolut_pay_payments?: array{requested?: bool}, samsung_pay_payments?: array{requested?: bool}, satispay_payments?: array{requested?: bool}, scalapay_payments?: array{requested?: bool}, sepa_bank_transfer_payments?: array{requested?: bool}, sepa_debit_payments?: array{requested?: bool}, sequra_payments?: array{requested?: bool}, shopeepay_payments?: array{requested?: bool}, sofort_payments?: array{requested?: bool}, stripe_balance_payments?: array{requested?: bool}, sunbit_payments?: array{requested?: bool}, swish_payments?: array{requested?: bool}, tax_reporting_us_1099_k?: array{requested?: bool}, tax_reporting_us_1099_misc?: array{requested?: bool}, transfers?: array{requested?: bool}, treasury?: array{requested?: bool}, treasury_evolve?: array{requested?: bool}, treasury_fifth_third?: array{requested?: bool}, treasury_goldman_sachs?: array{requested?: bool}, twint_payments?: array{requested?: bool}, upi_payments?: array{requested?: bool}, us_bank_account_ach_payments?: array{requested?: bool}, us_bank_transfer_payments?: array{requested?: bool}, zip_payments?: array{requested?: bool}}, company?: array{address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, address_kana?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}, address_kanji?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}, administrative_address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, directors_provided?: bool, directorship_declaration?: array{date?: int, ip?: string, user_agent?: string}, executives_provided?: bool, export_license_id?: string, export_purpose_code?: string, name?: string, name_kana?: string, name_kanji?: string, owners_provided?: bool, ownership_declaration?: array{date?: int, ip?: string, user_agent?: string}, ownership_exemption_reason?: null|string, phone?: string, principal_place_of_business?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, registration_date?: null|array{day: int, month: int, year: int}, registration_number?: string, representative_declaration?: array{date?: int, ip?: string, user_agent?: string}, structure?: null|string, tax_id?: string, tax_id_registrar?: string, vat_id?: string, verification?: array{document?: array{back?: string, front?: string}}}, controller?: array{application?: array{loss_liable: bool, onboarding_owner?: bool, pricing_controls?: bool}, dashboard?: array{type?: string}, fees?: array{payer?: string}, losses?: array{payments?: string}, requirement_collection?: string, stripe_dashboard?: array{type?: string}}, country?: string, default_currency?: string, documents?: array{bank_account_ownership_verification?: array{files?: string[]}, company_license?: array{files?: string[]}, company_memorandum_of_association?: array{files?: string[]}, company_ministerial_decree?: array{files?: string[]}, company_registration_verification?: array{files?: string[]}, company_tax_id_verification?: array{files?: string[]}, proof_of_address?: array{files?: string[]}, proof_of_ultimate_beneficial_ownership?: array{files?: string[], signer?: array{person?: string}}}, email?: string, expand?: string[], external_account?: array{object: string, account_holder_name?: string, account_holder_type?: string, account_number: string, country: string, currency?: string, routing_number?: string}|array{object: string, address_city?: string, address_country?: string, address_line1?: string, address_line2?: string, address_state?: string, address_zip?: string, currency?: string, cvc?: string, default_for_currency?: bool, exp_month: int, exp_year: int, metadata?: array, name?: string, number: string}|array{object: string, currency?: string, token: string}|string, groups?: array{payments_pricing?: null|string}, individual?: array{address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, address_kana?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}, address_kanji?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}, birth_address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, dob?: null|array{day: int, month: int, year: int}, email?: string, first_name?: string, first_name_kana?: string, first_name_kanji?: string, full_name_aliases?: null|string[], gender?: string, id_number?: string, id_number_secondary?: string, last_name?: string, last_name_kana?: string, last_name_kanji?: string, maiden_name?: string, metadata?: null|array, phone?: string, political_exposure?: string, registered_address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, relationship?: array{director?: bool, executive?: bool, owner?: bool, percent_ownership?: null|float, title?: string}, self_reported_income?: array{amount: int, currency: string}, self_reported_monthly_housing_payment?: array{amount: int, currency: string}, ssn_last_4?: string, verification?: array{additional_document?: array{back?: string, front?: string}, document?: array{back?: string, front?: string}}}, metadata?: null|array, risk_controls?: array{charges?: array{pause_requested?: bool}, payouts?: array{pause_requested?: bool}}, settings?: array{bacs_debit_payments?: array{display_name?: string}, bank_bca_onboarding?: array{account_holder_name?: string, business_account_number?: string}, branding?: array{icon?: string, logo?: string, primary_color?: string, secondary_color?: string}, capital?: array{payout_destination?: array, payout_destination_selector?: array}, card_issuing?: array{tos_acceptance?: array{date?: int, ip?: string, user_agent?: null|string}}, card_payments?: array{decline_on?: array{avs_failure?: bool, cvc_failure?: bool}, statement_descriptor_prefix?: string, statement_descriptor_prefix_kana?: null|string, statement_descriptor_prefix_kanji?: null|string}, invoices?: array{hosted_payment_method_save?: string}, payments?: array{email_customers_on_successful_payment?: bool, statement_descriptor?: string, statement_descriptor_kana?: string, statement_descriptor_kanji?: string}, payouts?: array{debit_negative_balances?: bool, schedule?: array{delay_days?: int|string, interval?: string, monthly_anchor?: int, monthly_payout_days?: int[], weekly_anchor?: string, weekly_payout_days?: string[]}, statement_descriptor?: string}, paypay_payments?: array{additional_files?: string[], goods_type?: string, site?: array{accessible?: array{}, in_development?: array{password: string, username?: string}, restricted?: array{payment_flow_file?: string}, type?: string}}, sepa_debit_payments?: array{creditor_id?: string}, smart_disputes?: array{auto_respond?: array{preference?: string}}, tax_forms?: array{consented_to_paperless_delivery?: bool}, treasury?: array{tos_acceptance?: array{date?: int, ip?: string, user_agent?: null|string}}, wechat_pay_mobile_web_payments?: array{domains?: null|string[]}}, tos_acceptance?: array{date?: int, ip?: string, service_agreement?: string, user_agent?: string}, type?: string} $params * @param null|array|string $options * * @return Account the created resource @@ -166,7 +166,7 @@ public static function all($params = null, $opts = null) * more about updating accounts. * * @param string $id the ID of the resource to update - * @param null|array{account_token?: string, business_profile?: array{annual_revenue?: array{amount: int, currency: string, fiscal_year_end: string}, estimated_worker_count?: int, mcc?: string, minority_owned_business_designation?: string[], monthly_estimated_revenue?: array{amount: int, currency: string}, name?: string, product_description?: string, specified_commercial_transactions_act_url?: null|string, support_address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, support_email?: string, support_phone?: string, support_url?: null|string, url?: string}, business_type?: string, capabilities?: array{acss_debit_payments?: array{requested?: bool}, affirm_payments?: array{requested?: bool}, afterpay_clearpay_payments?: array{requested?: bool}, alma_payments?: array{requested?: bool}, amazon_pay_payments?: array{requested?: bool}, app_distribution?: array{requested?: bool}, au_becs_debit_payments?: array{requested?: bool}, automatic_indirect_tax?: array{requested?: bool}, bacs_debit_payments?: array{requested?: bool}, bancontact_payments?: array{requested?: bool}, bank_transfer_payments?: array{requested?: bool}, billie_payments?: array{requested?: bool}, bizum_payments?: array{requested?: bool}, blik_payments?: array{requested?: bool}, blik_recurring_payments?: array{requested?: bool}, boleto_payments?: array{requested?: bool}, card_issuing?: array{requested?: bool}, card_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}, cartes_bancaires_payments?: array{requested?: bool}, cashapp_payments?: array{requested?: bool}, crypto_payments?: array{requested?: bool}, eps_payments?: array{requested?: bool}, fpx_payments?: array{requested?: bool}, gb_bank_transfer_payments?: array{requested?: bool}, giropay_payments?: array{requested?: bool}, gopay_payments?: array{requested?: bool}, grabpay_payments?: array{requested?: bool}, id_bank_transfer_payments?: array{requested?: bool}, id_bank_transfer_payments_bca?: array{requested?: bool}, ideal_payments?: array{requested?: bool}, india_international_payments?: array{requested?: bool}, jcb_payments?: array{requested?: bool}, jp_bank_transfer_payments?: array{requested?: bool}, kakao_pay_payments?: array{requested?: bool}, klarna_payments?: array{requested?: bool}, konbini_payments?: array{requested?: bool}, kr_card_payments?: array{requested?: bool}, legacy_payments?: array{requested?: bool}, link_payments?: array{requested?: bool}, mb_way_payments?: array{requested?: bool}, mobilepay_payments?: array{requested?: bool}, multibanco_payments?: array{requested?: bool}, mx_bank_transfer_payments?: array{requested?: bool}, naver_pay_payments?: array{requested?: bool}, nz_bank_account_becs_debit_payments?: array{requested?: bool}, oxxo_payments?: array{requested?: bool}, p24_payments?: array{requested?: bool}, pay_by_bank_payments?: array{requested?: bool}, payco_payments?: array{requested?: bool}, paynow_payments?: array{requested?: bool}, paypal_payments?: array{requested?: bool}, paypay_payments?: array{requested?: bool}, payto_payments?: array{requested?: bool}, pix_payments?: array{requested?: bool}, promptpay_payments?: array{requested?: bool}, qris_payments?: array{requested?: bool}, rechnung_payments?: array{requested?: bool}, revolut_pay_payments?: array{requested?: bool}, samsung_pay_payments?: array{requested?: bool}, satispay_payments?: array{requested?: bool}, scalapay_payments?: array{requested?: bool}, sepa_bank_transfer_payments?: array{requested?: bool}, sepa_debit_payments?: array{requested?: bool}, sequra_payments?: array{requested?: bool}, shopeepay_payments?: array{requested?: bool}, sofort_payments?: array{requested?: bool}, stripe_balance_payments?: array{requested?: bool}, sunbit_payments?: array{requested?: bool}, swish_payments?: array{requested?: bool}, tax_reporting_us_1099_k?: array{requested?: bool}, tax_reporting_us_1099_misc?: array{requested?: bool}, transfers?: array{requested?: bool}, treasury?: array{requested?: bool}, treasury_evolve?: array{requested?: bool}, treasury_fifth_third?: array{requested?: bool}, treasury_goldman_sachs?: array{requested?: bool}, twint_payments?: array{requested?: bool}, upi_payments?: array{requested?: bool}, us_bank_account_ach_payments?: array{requested?: bool}, us_bank_transfer_payments?: array{requested?: bool}, zip_payments?: array{requested?: bool}}, company?: array{address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, address_kana?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}, address_kanji?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}, administrative_address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, directors_provided?: bool, directorship_declaration?: array{date?: int, ip?: string, user_agent?: string}, executives_provided?: bool, export_license_id?: string, export_purpose_code?: string, name?: string, name_kana?: string, name_kanji?: string, owners_provided?: bool, ownership_declaration?: array{date?: int, ip?: string, user_agent?: string}, ownership_exemption_reason?: null|string, phone?: string, principal_place_of_business?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, registration_date?: null|array{day: int, month: int, year: int}, registration_number?: string, representative_declaration?: array{date?: int, ip?: string, user_agent?: string}, structure?: null|string, tax_id?: string, tax_id_registrar?: string, vat_id?: string, verification?: array{document?: array{back?: string, front?: string}}}, default_currency?: string, documents?: array{bank_account_ownership_verification?: array{files?: string[]}, company_license?: array{files?: string[]}, company_memorandum_of_association?: array{files?: string[]}, company_ministerial_decree?: array{files?: string[]}, company_registration_verification?: array{files?: string[]}, company_tax_id_verification?: array{files?: string[]}, proof_of_address?: array{files?: string[]}, proof_of_registration?: array{files?: string[], signer?: array{person?: string}}, proof_of_ultimate_beneficial_ownership?: array{files?: string[], signer?: array{person?: string}}}, email?: string, expand?: string[], external_account?: null|array{object: string, account_holder_name?: string, account_holder_type?: string, account_number: string, country: string, currency?: string, routing_number?: string}|array{object: string, address_city?: string, address_country?: string, address_line1?: string, address_line2?: string, address_state?: string, address_zip?: string, currency?: string, cvc?: string, default_for_currency?: bool, exp_month: int, exp_year: int, metadata?: array, name?: string, number: string}|array{object: string, currency?: string, token: string}|string, groups?: array{payments_pricing?: null|string}, individual?: array{address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, address_kana?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}, address_kanji?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}, birth_address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, dob?: null|array{day: int, month: int, year: int}, email?: string, first_name?: string, first_name_kana?: string, first_name_kanji?: string, full_name_aliases?: null|string[], gender?: string, id_number?: string, id_number_secondary?: string, last_name?: string, last_name_kana?: string, last_name_kanji?: string, maiden_name?: string, metadata?: null|array, phone?: string, political_exposure?: string, registered_address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, relationship?: array{director?: bool, executive?: bool, owner?: bool, percent_ownership?: null|float, title?: string}, self_reported_income?: array{amount: int, currency: string}, self_reported_monthly_housing_payment?: array{amount: int, currency: string}, ssn_last_4?: string, verification?: array{additional_document?: array{back?: string, front?: string}, document?: array{back?: string, front?: string}}}, metadata?: null|array, risk_controls?: array{charges?: array{pause_requested?: bool}, payouts?: array{pause_requested?: bool}}, settings?: array{bacs_debit_payments?: array{display_name?: string}, bank_bca_onboarding?: array{account_holder_name?: string, business_account_number?: string}, branding?: array{icon?: string, logo?: string, primary_color?: string, secondary_color?: string}, capital?: array{excluded_payout_destinations?: null|string[], payout_destination?: array, payout_destination_selector?: array}, card_issuing?: array{tos_acceptance?: array{date?: int, ip?: string, user_agent?: null|string}}, card_payments?: array{decline_on?: array{avs_failure?: bool, cvc_failure?: bool}, statement_descriptor_prefix?: string, statement_descriptor_prefix_kana?: null|string, statement_descriptor_prefix_kanji?: null|string}, invoices?: array{default_account_tax_ids?: null|string[], hosted_payment_method_save?: string}, payments?: array{email_customers_on_successful_payment?: bool, statement_descriptor?: string, statement_descriptor_kana?: string, statement_descriptor_kanji?: string}, payouts?: array{debit_negative_balances?: bool, schedule?: array{delay_days?: int|string, interval?: string, monthly_anchor?: int, monthly_payout_days?: int[], weekly_anchor?: string, weekly_payout_days?: string[]}, statement_descriptor?: string}, paypay_payments?: array{additional_files?: string[], goods_type?: string, site?: array{accessible?: array{}, in_development?: array{password: string, username?: string}, restricted?: array{payment_flow_file?: string}, type?: string}}, sepa_debit_payments?: array{creditor_id?: string}, smart_disputes?: array{auto_respond?: array{preference?: string}}, tax_forms?: array{consented_to_paperless_delivery?: bool}, treasury?: array{tos_acceptance?: array{date?: int, ip?: string, user_agent?: null|string}}, wechat_pay_payments?: array{mobile_web_domains?: null|string[]}}, tos_acceptance?: array{date?: int, ip?: string, service_agreement?: string, user_agent?: string}} $params + * @param null|array{account_token?: string, business_profile?: array{annual_revenue?: array{amount: int, currency: string, fiscal_year_end: string}, estimated_worker_count?: int, mcc?: string, minority_owned_business_designation?: string[], monthly_estimated_revenue?: array{amount: int, currency: string}, name?: string, product_description?: string, specified_commercial_transactions_act_url?: null|string, support_address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, support_email?: string, support_phone?: string, support_url?: null|string, url?: string}, business_type?: string, capabilities?: array{acss_debit_payments?: array{requested?: bool}, affirm_payments?: array{requested?: bool}, afterpay_clearpay_payments?: array{requested?: bool}, alma_payments?: array{requested?: bool}, amazon_pay_payments?: array{requested?: bool}, app_distribution?: array{requested?: bool}, au_becs_debit_payments?: array{requested?: bool}, automatic_indirect_tax?: array{requested?: bool}, bacs_debit_payments?: array{requested?: bool}, bancontact_payments?: array{requested?: bool}, bank_transfer_payments?: array{requested?: bool}, billie_payments?: array{requested?: bool}, bizum_payments?: array{requested?: bool}, blik_payments?: array{requested?: bool}, blik_recurring_payments?: array{requested?: bool}, boleto_payments?: array{requested?: bool}, card_issuing?: array{requested?: bool}, card_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}, cartes_bancaires_payments?: array{requested?: bool}, cashapp_payments?: array{requested?: bool}, crypto_payments?: array{requested?: bool}, eps_payments?: array{requested?: bool}, fpx_payments?: array{requested?: bool}, gb_bank_transfer_payments?: array{requested?: bool}, giropay_payments?: array{requested?: bool}, gopay_payments?: array{requested?: bool}, grabpay_payments?: array{requested?: bool}, id_bank_transfer_payments?: array{requested?: bool}, id_bank_transfer_payments_bca?: array{requested?: bool}, ideal_payments?: array{requested?: bool}, india_international_payments?: array{requested?: bool}, jcb_payments?: array{requested?: bool}, jp_bank_transfer_payments?: array{requested?: bool}, kakao_pay_payments?: array{requested?: bool}, klarna_payments?: array{requested?: bool}, konbini_payments?: array{requested?: bool}, kr_card_payments?: array{requested?: bool}, legacy_payments?: array{requested?: bool}, link_payments?: array{requested?: bool}, mb_way_payments?: array{requested?: bool}, mobilepay_payments?: array{requested?: bool}, multibanco_payments?: array{requested?: bool}, mx_bank_transfer_payments?: array{requested?: bool}, naver_pay_payments?: array{requested?: bool}, nz_bank_account_becs_debit_payments?: array{requested?: bool}, oxxo_payments?: array{requested?: bool}, p24_payments?: array{requested?: bool}, pay_by_bank_payments?: array{requested?: bool}, payco_payments?: array{requested?: bool}, paynow_payments?: array{requested?: bool}, paypal_payments?: array{requested?: bool}, paypay_payments?: array{requested?: bool}, payto_payments?: array{requested?: bool}, pix_payments?: array{requested?: bool}, promptpay_payments?: array{requested?: bool}, qris_payments?: array{requested?: bool}, rechnung_payments?: array{requested?: bool}, revolut_pay_payments?: array{requested?: bool}, samsung_pay_payments?: array{requested?: bool}, satispay_payments?: array{requested?: bool}, scalapay_payments?: array{requested?: bool}, sepa_bank_transfer_payments?: array{requested?: bool}, sepa_debit_payments?: array{requested?: bool}, sequra_payments?: array{requested?: bool}, shopeepay_payments?: array{requested?: bool}, sofort_payments?: array{requested?: bool}, stripe_balance_payments?: array{requested?: bool}, sunbit_payments?: array{requested?: bool}, swish_payments?: array{requested?: bool}, tax_reporting_us_1099_k?: array{requested?: bool}, tax_reporting_us_1099_misc?: array{requested?: bool}, transfers?: array{requested?: bool}, treasury?: array{requested?: bool}, treasury_evolve?: array{requested?: bool}, treasury_fifth_third?: array{requested?: bool}, treasury_goldman_sachs?: array{requested?: bool}, twint_payments?: array{requested?: bool}, upi_payments?: array{requested?: bool}, us_bank_account_ach_payments?: array{requested?: bool}, us_bank_transfer_payments?: array{requested?: bool}, zip_payments?: array{requested?: bool}}, company?: array{address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, address_kana?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}, address_kanji?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}, administrative_address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, directors_provided?: bool, directorship_declaration?: array{date?: int, ip?: string, user_agent?: string}, executives_provided?: bool, export_license_id?: string, export_purpose_code?: string, name?: string, name_kana?: string, name_kanji?: string, owners_provided?: bool, ownership_declaration?: array{date?: int, ip?: string, user_agent?: string}, ownership_exemption_reason?: null|string, phone?: string, principal_place_of_business?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, registration_date?: null|array{day: int, month: int, year: int}, registration_number?: string, representative_declaration?: array{date?: int, ip?: string, user_agent?: string}, structure?: null|string, tax_id?: string, tax_id_registrar?: string, vat_id?: string, verification?: array{document?: array{back?: string, front?: string}}}, default_currency?: string, documents?: array{bank_account_ownership_verification?: array{files?: string[]}, company_license?: array{files?: string[]}, company_memorandum_of_association?: array{files?: string[]}, company_ministerial_decree?: array{files?: string[]}, company_registration_verification?: array{files?: string[]}, company_tax_id_verification?: array{files?: string[]}, proof_of_address?: array{files?: string[]}, proof_of_registration?: array{files?: string[], signer?: array{person?: string}}, proof_of_ultimate_beneficial_ownership?: array{files?: string[], signer?: array{person?: string}}}, email?: string, expand?: string[], external_account?: null|array{object: string, account_holder_name?: string, account_holder_type?: string, account_number: string, country: string, currency?: string, routing_number?: string}|array{object: string, address_city?: string, address_country?: string, address_line1?: string, address_line2?: string, address_state?: string, address_zip?: string, currency?: string, cvc?: string, default_for_currency?: bool, exp_month: int, exp_year: int, metadata?: array, name?: string, number: string}|array{object: string, currency?: string, token: string}|string, groups?: array{payments_pricing?: null|string}, individual?: array{address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, address_kana?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}, address_kanji?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}, birth_address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, dob?: null|array{day: int, month: int, year: int}, email?: string, first_name?: string, first_name_kana?: string, first_name_kanji?: string, full_name_aliases?: null|string[], gender?: string, id_number?: string, id_number_secondary?: string, last_name?: string, last_name_kana?: string, last_name_kanji?: string, maiden_name?: string, metadata?: null|array, phone?: string, political_exposure?: string, registered_address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, relationship?: array{director?: bool, executive?: bool, owner?: bool, percent_ownership?: null|float, title?: string}, self_reported_income?: array{amount: int, currency: string}, self_reported_monthly_housing_payment?: array{amount: int, currency: string}, ssn_last_4?: string, verification?: array{additional_document?: array{back?: string, front?: string}, document?: array{back?: string, front?: string}}}, metadata?: null|array, risk_controls?: array{charges?: array{pause_requested?: bool}, payouts?: array{pause_requested?: bool}}, settings?: array{bacs_debit_payments?: array{display_name?: string}, bank_bca_onboarding?: array{account_holder_name?: string, business_account_number?: string}, branding?: array{icon?: string, logo?: string, primary_color?: string, secondary_color?: string}, capital?: array{excluded_payout_destinations?: null|string[], payout_destination?: array, payout_destination_selector?: array}, card_issuing?: array{tos_acceptance?: array{date?: int, ip?: string, user_agent?: null|string}}, card_payments?: array{decline_on?: array{avs_failure?: bool, cvc_failure?: bool}, statement_descriptor_prefix?: string, statement_descriptor_prefix_kana?: null|string, statement_descriptor_prefix_kanji?: null|string}, invoices?: array{default_account_tax_ids?: null|string[], hosted_payment_method_save?: string}, payments?: array{email_customers_on_successful_payment?: bool, statement_descriptor?: string, statement_descriptor_kana?: string, statement_descriptor_kanji?: string}, payouts?: array{debit_negative_balances?: bool, schedule?: array{delay_days?: int|string, interval?: string, monthly_anchor?: int, monthly_payout_days?: int[], weekly_anchor?: string, weekly_payout_days?: string[]}, statement_descriptor?: string}, paypay_payments?: array{additional_files?: string[], goods_type?: string, site?: array{accessible?: array{}, in_development?: array{password: string, username?: string}, restricted?: array{payment_flow_file?: string}, type?: string}}, sepa_debit_payments?: array{creditor_id?: string}, smart_disputes?: array{auto_respond?: array{preference?: string}}, tax_forms?: array{consented_to_paperless_delivery?: bool}, treasury?: array{tos_acceptance?: array{date?: int, ip?: string, user_agent?: null|string}}, wechat_pay_mobile_web_payments?: array{domains?: null|string[]}}, tos_acceptance?: array{date?: int, ip?: string, service_agreement?: string, user_agent?: string}} $params * @param null|array|string $opts * * @return Account the updated resource diff --git a/lib/ApiRequestor.php b/lib/ApiRequestor.php index 47ab2bd106..a751f735e0 100644 --- a/lib/ApiRequestor.php +++ b/lib/ApiRequestor.php @@ -958,7 +958,7 @@ private function _requestRaw($method, $url, $params, $headers, $apiMode, $usage, * @param string[] $usage * @param callable $readBodyChunkCallable * @param 'v1'|'v2' $apiMode - * @param int $maxNetworkRetries + * @param null|int $maxNetworkRetries * * @return array * @@ -978,6 +978,7 @@ private function _requestRawStreaming($method, $url, $params, $headers, $apiMode $params, $hasFile, $readBodyChunkCallable, + $apiMode, $maxNetworkRetries ); diff --git a/lib/Balance.php b/lib/Balance.php index 5ef40cd864..7f242cf814 100644 --- a/lib/Balance.php +++ b/lib/Balance.php @@ -21,6 +21,7 @@ * @property (object{amount: int, currency: string, source_types?: (object{bank_account?: int, card?: int, fpx?: int}&StripeObject)}&StripeObject)[] $pending Funds that aren't available in the balance yet. You can find the pending balance for each currency and each payment type in the source_types property. * @property null|(object{available: (object{amount: int, currency: string, source_types?: (object{bank_account?: int, card?: int, fpx?: int}&StripeObject)}&StripeObject)[], pending: (object{amount: int, currency: string, source_types?: (object{bank_account?: int, card?: int, fpx?: int}&StripeObject)}&StripeObject)[]}&StripeObject) $refund_and_dispute_prefunding * @property null|(object{available: (object{amount: int, currency: string, source_types?: (object{bank_account?: int, card?: int, fpx?: int}&StripeObject)}&StripeObject)[], pending: (object{amount: int, currency: string, source_types?: (object{bank_account?: int, card?: int, fpx?: int}&StripeObject)}&StripeObject)[]}&StripeObject) $risk_reserved + * @property null|(object{available: (object{amount: int, currency: string, source_types?: (object{bank_account?: int, card?: int, fpx?: int}&StripeObject)}&StripeObject)[], pending: (object{amount: int, currency: string, source_types?: (object{bank_account?: int, card?: int, fpx?: int}&StripeObject)}&StripeObject)[]}&StripeObject) $settlement_reserved * @property null|(object{available: (object{amount: int, currency: string, source_types?: (object{bank_account?: int, card?: int, fpx?: int}&StripeObject)}&StripeObject)[], pending: (object{amount: int, currency: string, source_types?: (object{bank_account?: int, card?: int, fpx?: int}&StripeObject)}&StripeObject)[]}&StripeObject) $transit_balances_total */ class Balance extends SingletonApiResource diff --git a/lib/BalanceSettings.php b/lib/BalanceSettings.php index 0a76386664..ded6d867ff 100644 --- a/lib/BalanceSettings.php +++ b/lib/BalanceSettings.php @@ -8,7 +8,7 @@ * Options for customizing account balances and payout settings for a Stripe platform’s connected accounts. * * @property string $object String representing the object's type. Objects of the same type share the same value. - * @property (object{debit_negative_balances: null|bool, default_settlement_currency?: null|string, payouts: null|(object{automatic_transfer_rules_by_currency: null|StripeObject, minimum_balance_by_currency: null|StripeObject, schedule: null|(object{interval: null|string, monthly_payout_days?: int[], weekly_payout_days?: string[]}&StripeObject), statement_descriptor: null|string, status: string}&StripeObject), settlement_currencies?: null|StripeObject, settlement_timing: (object{delay_days: int, delay_days_override?: int, start_of_day: null|(object{hour: int, minutes: int, timezone: string}&StripeObject)}&StripeObject)}&StripeObject) $payments + * @property (object{debit_negative_balances: null|bool, default_settlement_currency?: string, payouts: null|(object{automatic_transfer_rules_by_currency: null|StripeObject, minimum_balance_by_currency: null|StripeObject, schedule: null|(object{interval: null|string, monthly_payout_days?: int[], weekly_payout_days?: string[]}&StripeObject), statement_descriptor: null|string, status: string}&StripeObject), settlement_currencies?: null|StripeObject, settlement_timing: (object{delay_days: int, delay_days_override?: int, start_of_day: null|(object{hour: int, minutes: int, timezone: string}&StripeObject)}&StripeObject)}&StripeObject) $payments */ class BalanceSettings extends SingletonApiResource { diff --git a/lib/BalanceTransaction.php b/lib/BalanceTransaction.php index da73e55785..c81ad4d80b 100644 --- a/lib/BalanceTransaction.php +++ b/lib/BalanceTransaction.php @@ -36,6 +36,7 @@ class BalanceTransaction extends ApiResource const BALANCE_TYPE_PAYMENTS = 'payments'; const BALANCE_TYPE_REFUND_AND_DISPUTE_PREFUNDING = 'refund_and_dispute_prefunding'; const BALANCE_TYPE_RISK_RESERVED = 'risk_reserved'; + const BALANCE_TYPE_SETTLEMENT_RESERVED = 'settlement_reserved'; const BALANCE_TYPE_TRANSIT = 'transit'; const TYPE_ADJUSTMENT = 'adjustment'; diff --git a/lib/BaseStripeClient.php b/lib/BaseStripeClient.php index 02673d3cef..3d35d3919a 100644 --- a/lib/BaseStripeClient.php +++ b/lib/BaseStripeClient.php @@ -323,7 +323,7 @@ public function requestStream($method, $path, $readBodyChunkCallable, $params, $ $baseUrl = $opts->apiBase ?: $this->getApiBase(); $requestor = new ApiRequestor($this->apiKeyForRequest($opts), $baseUrl, $this->getAppInfo()); $apiMode = Util::getApiMode($path); - list($response, $opts->apiKey) = $requestor->requestStream($method, $path, $readBodyChunkCallable, $params, $opts->headers, $apiMode, ['stripe_client']); + list($response, $opts->apiKey) = $requestor->requestStream($method, $path, $readBodyChunkCallable, $params, $opts->headers, $apiMode, ['stripe_client'], $opts->maxNetworkRetries); } /** diff --git a/lib/Card.php b/lib/Card.php index ab2ccfe8c4..1512d59596 100644 --- a/lib/Card.php +++ b/lib/Card.php @@ -13,7 +13,7 @@ * * @property string $id Unique identifier for the object. * @property string $object String representing the object's type. Objects of the same type share the same value. - * @property null|Account|string $account + * @property null|Account|string $account The account this card belongs to. Only applicable on Accounts (not customers or recipients) This property is only available when returned as an External Account where controller.is_controller is true. * @property null|string $address_city City/District/Suburb/Town/Village. * @property null|string $address_country Billing address country, if provided when creating card. * @property null|string $address_line1 Address line 1 (Street address/PO Box/Company name). diff --git a/lib/Charge.php b/lib/Charge.php index 30cb87ebd9..3dec68e2ee 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{buyer_id: null|string, 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, card_account_update?: null|string, 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, electronic_commerce_indicator: 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|Mandate|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, setup_credential_usage?: string, stored_credential_usage?: 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), transaction_link_id: null|string, wallet: null|(object{amex_express_checkout?: (object{}&StripeObject), apple_pay?: (object{}&StripeObject), dynamic_last4: null|string, google_pay?: (object{}&StripeObject), link?: (object{funding_source_group: null|string}&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), retrieval_reference_number?: string, wallet?: (object{type: string}&StripeObject)}&StripeObject), cashapp?: (object{buyer_id: null|string, cashtag: null|string, transaction_id: null|string}&StripeObject), crypto?: (object{amount_received?: int, amount_requested?: int, 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, fingerprint: null|string, 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, funding_source_group?: 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, fingerprint?: 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), sequra?: (object{transaction_id: null|string}&StripeObject), shared_payment_granted_token?: string, 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, location?: string, payment_reference: null|string, reader?: 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{buyer_id: null|string, 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, card_account_update?: null|string, 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, electronic_commerce_indicator: 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|Mandate|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, setup_credential_usage?: string, stored_credential_usage?: 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), transaction_link_id: null|string, wallet: null|(object{amex_express_checkout?: (object{}&StripeObject), apple_pay?: (object{}&StripeObject), dynamic_last4: null|string, google_pay?: (object{}&StripeObject), link?: (object{funding_source_group: null|string}&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), retrieval_reference_number?: string, wallet?: (object{type: string}&StripeObject)}&StripeObject), carecredit?: (object{}&StripeObject), cashapp?: (object{buyer_id: null|string, cashtag: null|string, transaction_id: null|string}&StripeObject), crypto?: (object{amount_received?: int, amount_requested?: int, 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), getflex?: (object{}&StripeObject), gift_card?: (object{balance: (object{amount: int, currency: string}&StripeObject), brand: string, exp_month: null|int, exp_year: null|int, fingerprint: null|string, 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, funding_source_group?: 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, fingerprint?: null|string, mandate?: string}&StripeObject), promptpay?: (object{reference: null|string}&StripeObject), qris?: (object{}&StripeObject), rakuten_pay?: (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), sequra?: (object{transaction_id: null|string}&StripeObject), sezzle?: (object{}&StripeObject), shared_payment_granted_token?: string, 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, location?: string, payment_reference: null|string, reader?: 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 93a77cf6b2..18a963a395 100644 --- a/lib/Checkout/Session.php +++ b/lib/Checkout/Session.php @@ -58,7 +58,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, subscription?: (object{backdate_start_date?: null|int, description: null|string, items: ((object{current_trial: null|(object{trial_offer: string}&\Stripe\StripeObject), price: string|\Stripe\Price, quantity: null|int}&\Stripe\StripeObject))[], metadata: null|\Stripe\StripeObject, pending_invoice_item_interval: null|(object{interval: string, interval_count: int}&\Stripe\StripeObject), proration_behavior: null|string, subscription: null|string|\Stripe\Subscription, trial_end: null|int, trial_period_days: null|int, trial_settings: null|(object{end_behavior: (object{billing_cycle_anchor?: null|string, missing_payment_method: string}&\Stripe\StripeObject)}&\Stripe\StripeObject)}&\Stripe\StripeObject), type: string}&\Stripe\StripeObject))[] $items The items to be purchased by the customer. + * @property null|((object{key: string, subscription?: (object{backdate_start_date: null|int, description: null|string, items: ((object{current_trial: null|(object{trial_offer: string}&\Stripe\StripeObject), price: string|\Stripe\Price, quantity: null|int}&\Stripe\StripeObject))[], metadata: null|\Stripe\StripeObject, pending_invoice_item_interval: null|(object{interval: string, interval_count: int}&\Stripe\StripeObject), proration_behavior: null|string, subscription: null|string|\Stripe\Subscription, trial_end: null|int, trial_period_days: null|int, trial_settings: null|(object{end_behavior: (object{billing_cycle_anchor?: null|string, missing_payment_method: string}&\Stripe\StripeObject)}&\Stripe\StripeObject)}&\Stripe\StripeObject), 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. @@ -125,6 +125,7 @@ class Session extends \Stripe\ApiResource const ORIGIN_CONTEXT_WEB = 'web'; const PAYMENT_METHOD_COLLECTION_ALWAYS = 'always'; + const PAYMENT_METHOD_COLLECTION_AUTO = 'auto'; const PAYMENT_METHOD_COLLECTION_IF_REQUIRED = 'if_required'; const PAYMENT_STATUS_NO_PAYMENT_REQUIRED = 'no_payment_required'; @@ -153,7 +154,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, allowed_payment_method_types?: string[], approval_method?: string, automatic_surcharge?: array{calculation_basis?: string, enabled: bool, tax_behavior?: string}, automatic_tax?: array{address_collection_precision?: string, 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{backdate_start_date?: int, 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{current_trial?: array{trial_offer: string}, 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{billing_cycle_anchor?: string, missing_payment_method: string}}}, type: string})[], line_items?: (array{adjustable_quantity?: array{enabled: bool, maximum?: int, minimum?: int}, 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}}, on_behalf_of?: string, 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, verification_method?: string}, bancontact?: array{setup_future_usage?: string}, billie?: array{capture_method?: string}, bizum?: array{mandate_options?: array{}}, blik?: array{mandate_options?: array{expires_at?: 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[], funding_types_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, setup_future_usage?: 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, setup_future_usage?: 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}, sequra?: array{capture_method?: string}, sofort?: array{setup_future_usage?: string}, sunbit?: array{capture_method?: string, 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_settings?: array{application_fee_data?: array{initial_amount?: int, percentage_decimal?: string}, capture_method?: string, description?: string, metadata?: array, setup_future_usage?: string, statement_descriptor?: string, transfer_data?: array{destination: string, transfer_amount?: array{initial_amount?: int, percentage_decimal?: string}}, transfer_group?: 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_preselect?: 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}, tax_rates?: string[]}[], submit_type?: string, subscription_data?: array{application_fee_percent?: float, billing_cycle_anchor?: int, 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}, 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{billing_cycle_anchor?: string, 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, allowed_payment_method_types?: string[], approval_method?: string, automatic_surcharge?: array{calculation_basis?: string, enabled: bool, tax_behavior?: string}, automatic_tax?: array{address_collection_precision?: string, 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{backdate_start_date?: int, 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{current_trial?: array{trial_offer: string}, 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{billing_cycle_anchor?: string, missing_payment_method: string}}}, type: string})[], line_items?: (array{adjustable_quantity?: array{enabled: bool, maximum?: int, minimum?: int}, 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}}, on_behalf_of?: string, 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, verification_method?: string}, bancontact?: array{setup_future_usage?: string}, billie?: array{capture_method?: string}, bizum?: array{mandate_options?: array{}}, blik?: array{mandate_options?: array{expires_at?: 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}, mandate_options?: array{amount?: int, amount_type?: string, currency?: string, description?: string, end_date?: int, interval?: string, interval_count?: int, reference?: string, start_date?: int, supported_types?: string[]}, 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[], funding_types_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, setup_future_usage?: 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, setup_future_usage?: 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}, sequra?: array{capture_method?: string}, sofort?: array{setup_future_usage?: string}, sunbit?: array{capture_method?: string, 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_settings?: array{application_fee_data?: array{initial_amount?: int, percentage_decimal?: string}, capture_method?: string, description?: string, metadata?: array, setup_future_usage?: string, statement_descriptor?: string, transfer_data?: array{destination: string, transfer_amount?: array{initial_amount?: int, percentage_decimal?: string}}, transfer_group?: 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_preselect?: 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}, tax_rates?: string[]}[], submit_type?: string, subscription_data?: array{application_fee_percent?: float, billing_cycle_anchor?: int, 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}, 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{billing_cycle_anchor?: string, 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/ConfirmationToken.php b/lib/ConfirmationToken.php index 44150b75f2..82f745e62f 100644 --- a/lib/ConfirmationToken.php +++ b/lib/ConfirmationToken.php @@ -22,7 +22,7 @@ * @property null|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 $payment_intent ID of the PaymentIntent that this ConfirmationToken was used to confirm, or null if this ConfirmationToken has not yet been used. * @property null|(object{card: null|(object{cvc_token: null|string, installments?: (object{plan?: (object{count: null|int, interval: null|string, type: string}&StripeObject)}&StripeObject)}&StripeObject)}&StripeObject) $payment_method_options Payment-method-specific configuration for this ConfirmationToken. - * @property null|(object{acss_debit?: (object{account_number?: null|string, bank_name: null|string, fingerprint: null|string, institution_number: null|string, last4: null|string, transit_number: null|string}&StripeObject), affirm?: (object{}&StripeObject), afterpay_clearpay?: (object{}&StripeObject), alipay?: (object{}&StripeObject), allow_redisplay?: string, alma?: (object{}&StripeObject), amazon_pay?: (object{}&StripeObject), au_becs_debit?: (object{bsb_number: null|string, fingerprint: null|string, last4: null|string}&StripeObject), bacs_debit?: (object{fingerprint: null|string, last4: null|string, sort_code: null|string}&StripeObject), bancontact?: (object{}&StripeObject), billie?: (object{}&StripeObject), billing_details: (object{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, phone: null|string, tax_id: null|string}&StripeObject), bizum?: (object{buyer_id?: null|string}&StripeObject), blik?: (object{buyer_id?: null|string}&StripeObject), boleto?: (object{tax_id: string}&StripeObject), card?: (object{benefits?: (object{issuer: null|string, programs: null|string[]}&StripeObject), brand: string, 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, display_brand: null|string, exp_month: int, exp_year: int, fingerprint?: null|string, funding: string, generated_from: null|(object{charge: null|string, payment_method_details: null|(object{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), retrieval_reference_number?: string, wallet?: (object{type: string}&StripeObject)}&StripeObject), type: string}&StripeObject), setup_attempt: null|SetupAttempt|string}&StripeObject), iin?: null|string, issuer?: null|string, last4: string, networks: null|(object{available: string[], preferred: null|string}&StripeObject), regulated_status: null|string, three_d_secure_usage: null|(object{supported: bool}&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{brand: null|string, brand_product: null|string, cardholder_name: null|string, country: null|string, description?: null|string, exp_month: int, exp_year: int, fingerprint: null|string, funding: null|string, iin?: null|string, issuer?: null|string, last4: null|string, networks: null|(object{available: string[], preferred: null|string}&StripeObject), offline: null|(object{stored_at: null|int, type: null|string}&StripeObject), preferred_locales: null|string[], read_method: null|string, wallet?: (object{type: string}&StripeObject)}&StripeObject), cashapp?: (object{buyer_id: null|string, cashtag: null|string}&StripeObject), crypto?: (object{}&StripeObject), customer: null|Customer|string, customer_account: null|string, customer_balance?: (object{}&StripeObject), eps?: (object{bank: null|string}&StripeObject), fpx?: (object{account_holder_type: null|string, bank: string}&StripeObject), gift_card?: (object{brand: string, exp_month: null|int, exp_year: null|int, fingerprint?: string, last4: null|string}&StripeObject), giropay?: (object{}&StripeObject), gopay?: (object{}&StripeObject), grabpay?: (object{}&StripeObject), id_bank_transfer?: (object{bank: null|string, bank_code: null|string, bank_name: null|string, display_name: null|string}&StripeObject), ideal?: (object{bank: null|string, bic: null|string}&StripeObject), interac_present?: (object{brand: null|string, cardholder_name: null|string, country: null|string, description?: null|string, exp_month: int, exp_year: int, fingerprint: null|string, funding: null|string, iin?: null|string, issuer?: null|string, last4: null|string, networks: null|(object{available: string[], preferred: null|string}&StripeObject), preferred_locales: null|string[], read_method: null|string}&StripeObject), kakao_pay?: (object{}&StripeObject), klarna?: (object{dob?: null|(object{day: null|int, month: null|int, year: null|int}&StripeObject)}&StripeObject), konbini?: (object{}&StripeObject), kr_card?: (object{brand: null|string, last4: null|string}&StripeObject), link?: (object{email: null|string, persistent_token?: string}&StripeObject), mb_way?: (object{}&StripeObject), mobilepay?: (object{}&StripeObject), multibanco?: (object{}&StripeObject), naver_pay?: (object{buyer_id: null|string, funding: string}&StripeObject), nz_bank_account?: (object{account_holder_name: null|string, bank_code: string, bank_name: string, branch_code: string, last4: string, suffix: null|string}&StripeObject), oxxo?: (object{}&StripeObject), p24?: (object{bank: null|string}&StripeObject), pay_by_bank?: (object{}&StripeObject), payco?: (object{}&StripeObject), paynow?: (object{}&StripeObject), paypal?: (object{country: null|string, fingerprint?: null|string, payer_email: null|string, payer_id: null|string, verified_email?: null|string}&StripeObject), paypay?: (object{}&StripeObject), payto?: (object{bsb_number: null|string, last4: null|string, pay_id: null|string}&StripeObject), pix?: (object{fingerprint?: null|string}&StripeObject), promptpay?: (object{}&StripeObject), qris?: (object{}&StripeObject), rechnung?: (object{dob?: (object{day: int, month: int, year: int}&StripeObject)}&StripeObject), revolut_pay?: (object{}&StripeObject), samsung_pay?: (object{}&StripeObject), satispay?: (object{}&StripeObject), scalapay?: (object{}&StripeObject), sepa_debit?: (object{bank_code: null|string, branch_code: null|string, country: null|string, fingerprint: null|string, generated_from: null|(object{charge: null|Charge|string, payment_method?: null|PaymentMethod|string, setup_attempt: null|SetupAttempt|string}&StripeObject), last4: null|string}&StripeObject), sequra?: (object{}&StripeObject), shopeepay?: (object{}&StripeObject), sofort?: (object{country: null|string}&StripeObject), stripe_balance?: (object{account?: null|string}&StripeObject), sunbit?: (object{}&StripeObject), swish?: (object{}&StripeObject), tamara?: (object{}&StripeObject), twint?: (object{}&StripeObject), type: string, upi?: (object{vpa: null|string}&StripeObject), us_bank_account?: (object{account_holder_type: null|string, account_number?: null|string, account_type: null|string, bank_name: null|string, financial_connections_account: null|string, fingerprint: null|string, last4: null|string, networks: null|(object{preferred: null|string, supported: string[]}&StripeObject), routing_number: null|string, status_details: null|(object{blocked?: (object{network_code: null|string, reason: null|string}&StripeObject)}&StripeObject)}&StripeObject), vipps?: (object{}&StripeObject), wechat_pay?: (object{}&StripeObject), zip?: (object{}&StripeObject)}&StripeObject) $payment_method_preview Payment details collected by the Payment Element, used to create a PaymentMethod when a PaymentIntent or SetupIntent is confirmed with this ConfirmationToken. + * @property null|(object{acss_debit?: (object{account_number?: null|string, bank_name: null|string, fingerprint: null|string, institution_number: null|string, last4: null|string, transit_number: null|string}&StripeObject), affirm?: (object{}&StripeObject), afterpay_clearpay?: (object{}&StripeObject), alipay?: (object{}&StripeObject), allow_redisplay?: string, alma?: (object{}&StripeObject), amazon_pay?: (object{}&StripeObject), au_becs_debit?: (object{bsb_number: null|string, fingerprint: null|string, last4: null|string}&StripeObject), bacs_debit?: (object{fingerprint: null|string, last4: null|string, sort_code: null|string}&StripeObject), bancontact?: (object{}&StripeObject), billie?: (object{}&StripeObject), billing_details: (object{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, phone: null|string, tax_id: null|string}&StripeObject), bizum?: (object{buyer_id?: null|string}&StripeObject), blik?: (object{buyer_id?: null|string}&StripeObject), boleto?: (object{tax_id: string}&StripeObject), card?: (object{benefits?: (object{issuer: null|string, programs: null|string[]}&StripeObject), brand: string, 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, display_brand: null|string, exp_month: int, exp_year: int, fingerprint?: null|string, funding: string, generated_from: null|(object{charge: null|string, payment_method_details: null|(object{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), retrieval_reference_number?: string, wallet?: (object{type: string}&StripeObject)}&StripeObject), type: string}&StripeObject), setup_attempt: null|SetupAttempt|string}&StripeObject), iin?: null|string, issuer?: null|string, last4: string, networks: null|(object{available: string[], preferred: null|string}&StripeObject), regulated_status: null|string, three_d_secure_usage: null|(object{supported: bool}&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{brand: null|string, brand_product: null|string, cardholder_name: null|string, country: null|string, description?: null|string, exp_month: int, exp_year: int, fingerprint: null|string, funding: null|string, iin?: null|string, issuer?: null|string, last4: null|string, networks: null|(object{available: string[], preferred: null|string}&StripeObject), offline: null|(object{stored_at: null|int, type: null|string}&StripeObject), preferred_locales: null|string[], read_method: null|string, wallet?: (object{type: string}&StripeObject)}&StripeObject), carecredit?: (object{}&StripeObject), cashapp?: (object{buyer_id: null|string, cashtag: null|string}&StripeObject), crypto?: (object{}&StripeObject), customer: null|Customer|string, customer_account: null|string, customer_balance?: (object{}&StripeObject), eps?: (object{bank: null|string}&StripeObject), fpx?: (object{account_holder_type: null|string, bank: string}&StripeObject), getflex?: (object{}&StripeObject), gift_card?: (object{brand: string, exp_month: null|int, exp_year: null|int, fingerprint?: string, last4: null|string}&StripeObject), giropay?: (object{}&StripeObject), gopay?: (object{}&StripeObject), grabpay?: (object{}&StripeObject), id_bank_transfer?: (object{bank: null|string, bank_code: null|string, bank_name: null|string, display_name: null|string}&StripeObject), ideal?: (object{bank: null|string, bic: null|string}&StripeObject), interac_present?: (object{brand: null|string, cardholder_name: null|string, country: null|string, description?: null|string, exp_month: int, exp_year: int, fingerprint: null|string, funding: null|string, iin?: null|string, issuer?: null|string, last4: null|string, networks: null|(object{available: string[], preferred: null|string}&StripeObject), preferred_locales: null|string[], read_method: null|string}&StripeObject), kakao_pay?: (object{}&StripeObject), klarna?: (object{dob?: null|(object{day: null|int, month: null|int, year: null|int}&StripeObject)}&StripeObject), konbini?: (object{}&StripeObject), kr_card?: (object{brand: null|string, last4: null|string}&StripeObject), link?: (object{email: null|string, persistent_token?: string}&StripeObject), mb_way?: (object{}&StripeObject), mobilepay?: (object{}&StripeObject), multibanco?: (object{}&StripeObject), naver_pay?: (object{buyer_id: null|string, funding: string}&StripeObject), nz_bank_account?: (object{account_holder_name: null|string, bank_code: string, bank_name: string, branch_code: string, last4: string, suffix: null|string}&StripeObject), oxxo?: (object{}&StripeObject), p24?: (object{bank: null|string}&StripeObject), pay_by_bank?: (object{}&StripeObject), payco?: (object{}&StripeObject), paynow?: (object{}&StripeObject), paypal?: (object{country: null|string, fingerprint?: null|string, payer_email: null|string, payer_id: null|string, verified_email?: null|string}&StripeObject), paypay?: (object{}&StripeObject), payto?: (object{bsb_number: null|string, last4: null|string, pay_id: null|string}&StripeObject), pix?: (object{fingerprint?: null|string}&StripeObject), promptpay?: (object{}&StripeObject), qris?: (object{}&StripeObject), rakuten_pay?: (object{}&StripeObject), rechnung?: (object{dob?: (object{day: int, month: int, year: int}&StripeObject)}&StripeObject), revolut_pay?: (object{}&StripeObject), samsung_pay?: (object{}&StripeObject), satispay?: (object{}&StripeObject), scalapay?: (object{}&StripeObject), sepa_debit?: (object{bank_code: null|string, branch_code: null|string, country: null|string, fingerprint: null|string, generated_from: null|(object{charge: null|Charge|string, payment_method?: null|PaymentMethod|string, setup_attempt: null|SetupAttempt|string}&StripeObject), last4: null|string}&StripeObject), sequra?: (object{}&StripeObject), sezzle?: (object{}&StripeObject), shopeepay?: (object{}&StripeObject), sofort?: (object{country: null|string}&StripeObject), stripe_balance?: (object{account?: null|string}&StripeObject), sunbit?: (object{}&StripeObject), swish?: (object{}&StripeObject), tamara?: (object{}&StripeObject), twint?: (object{}&StripeObject), type: string, upi?: (object{vpa: null|string}&StripeObject), us_bank_account?: (object{account_holder_type: null|string, account_number?: null|string, account_type: null|string, bank_name: null|string, financial_connections_account: null|string, fingerprint: null|string, last4: null|string, networks: null|(object{preferred: null|string, supported: string[]}&StripeObject), routing_number: null|string, status_details: null|(object{blocked?: (object{network_code: null|string, reason: null|string}&StripeObject)}&StripeObject)}&StripeObject), vipps?: (object{}&StripeObject), wechat_pay?: (object{}&StripeObject), zip?: (object{}&StripeObject)}&StripeObject) $payment_method_preview Payment details collected by the Payment Element, used to create a PaymentMethod when a PaymentIntent or SetupIntent is confirmed with this ConfirmationToken. * @property null|string $return_url Return URL used to confirm the Intent. * @property null|string $setup_future_usage

Indicates that you intend to make future payments with this ConfirmationToken's payment method.

The presence of this property will attach the payment method to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any required actions from the user are complete.

* @property null|string $setup_intent ID of the SetupIntent that this ConfirmationToken was used to confirm, or null if this ConfirmationToken has not yet been used. diff --git a/lib/Event.php b/lib/Event.php index 006e10353e..27a9ea95e7 100644 --- a/lib/Event.php +++ b/lib/Event.php @@ -319,6 +319,13 @@ class Event extends ApiResource const TEST_HELPERS_TEST_CLOCK_DELETED = 'test_helpers.test_clock.deleted'; const TEST_HELPERS_TEST_CLOCK_INTERNAL_FAILURE = 'test_helpers.test_clock.internal_failure'; const TEST_HELPERS_TEST_CLOCK_READY = 'test_helpers.test_clock.ready'; + const THREE_D_SECURE_AUTHENTICATION_CANCELED = 'three_d_secure.authentication.canceled'; + const THREE_D_SECURE_AUTHENTICATION_CHALLENGE_STARTED = 'three_d_secure.authentication.challenge_started'; + const THREE_D_SECURE_AUTHENTICATION_ERRORED = 'three_d_secure.authentication.errored'; + const THREE_D_SECURE_AUTHENTICATION_FAILED = 'three_d_secure.authentication.failed'; + const THREE_D_SECURE_AUTHENTICATION_REQUIRES_CHALLENGE = 'three_d_secure.authentication.requires_challenge'; + const THREE_D_SECURE_AUTHENTICATION_REQUIRES_SUBMISSION = 'three_d_secure.authentication.requires_submission'; + const THREE_D_SECURE_AUTHENTICATION_SUCCEEDED = 'three_d_secure.authentication.succeeded'; const TOPUP_CANCELED = 'topup.canceled'; const TOPUP_CREATED = 'topup.created'; const TOPUP_FAILED = 'topup.failed'; @@ -635,6 +642,13 @@ class Event extends ApiResource const TYPE_TEST_HELPERS_TEST_CLOCK_DELETED = 'test_helpers.test_clock.deleted'; const TYPE_TEST_HELPERS_TEST_CLOCK_INTERNAL_FAILURE = 'test_helpers.test_clock.internal_failure'; const TYPE_TEST_HELPERS_TEST_CLOCK_READY = 'test_helpers.test_clock.ready'; + const TYPE_THREE_D_SECURE_AUTHENTICATION_CANCELED = 'three_d_secure.authentication.canceled'; + const TYPE_THREE_D_SECURE_AUTHENTICATION_CHALLENGE_STARTED = 'three_d_secure.authentication.challenge_started'; + const TYPE_THREE_D_SECURE_AUTHENTICATION_ERRORED = 'three_d_secure.authentication.errored'; + const TYPE_THREE_D_SECURE_AUTHENTICATION_FAILED = 'three_d_secure.authentication.failed'; + const TYPE_THREE_D_SECURE_AUTHENTICATION_REQUIRES_CHALLENGE = 'three_d_secure.authentication.requires_challenge'; + const TYPE_THREE_D_SECURE_AUTHENTICATION_REQUIRES_SUBMISSION = 'three_d_secure.authentication.requires_submission'; + const TYPE_THREE_D_SECURE_AUTHENTICATION_SUCCEEDED = 'three_d_secure.authentication.succeeded'; const TYPE_TOPUP_CANCELED = 'topup.canceled'; const TYPE_TOPUP_CREATED = 'topup.created'; const TYPE_TOPUP_FAILED = 'topup.failed'; diff --git a/lib/Events/V2PaymentsOffSessionPaymentRequiresCaptureEvent.php b/lib/Events/V2PaymentsOffSessionPaymentRequiresCaptureEvent.php deleted file mode 100644 index f7665eacfe..0000000000 --- a/lib/Events/V2PaymentsOffSessionPaymentRequiresCaptureEvent.php +++ /dev/null @@ -1,31 +0,0 @@ -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/V2PaymentsOffSessionPaymentRequiresCaptureEventNotification.php b/lib/Events/V2PaymentsOffSessionPaymentRequiresCaptureEventNotification.php deleted file mode 100644 index 59a7d28270..0000000000 --- a/lib/Events/V2PaymentsOffSessionPaymentRequiresCaptureEventNotification.php +++ /dev/null @@ -1,38 +0,0 @@ - 0) { + if ('post' === $method && $this->getMaxNetworkRetries($maxNetworkRetries) > 0) { $headers[] = 'Idempotency-Key: ' . $this->randomGenerator->uuid(); } } @@ -332,14 +339,15 @@ private function constructCurlOptions($method, $absUrl, $headers, $body, $opts, * @param array $params * @param bool $hasFile * @param 'v1'|'v2' $apiMode + * @param null|int $maxNetworkRetries */ - private function constructRequest($method, $absUrl, $headers, $params, $hasFile, $apiMode) + private function constructRequest($method, $absUrl, $headers, $params, $hasFile, $apiMode, $maxNetworkRetries) { $method = \strtolower($method); $opts = $this->calculateDefaultOptions($method, $absUrl, $headers, $params, $hasFile); list($absUrl, $body) = $this->constructUrlAndBody($method, $absUrl, $params, $hasFile, $apiMode); - $opts = $this->constructCurlOptions($method, $absUrl, $headers, $body, $opts, $apiMode); + $opts = $this->constructCurlOptions($method, $absUrl, $headers, $body, $opts, $apiMode, $maxNetworkRetries); return [$opts, $absUrl]; } @@ -355,7 +363,7 @@ private function constructRequest($method, $absUrl, $headers, $params, $hasFile, */ public function request($method, $absUrl, $headers, $params, $hasFile, $apiMode = 'v1', $maxNetworkRetries = null) { - list($opts, $absUrl) = $this->constructRequest($method, $absUrl, $headers, $params, $hasFile, $apiMode); + list($opts, $absUrl) = $this->constructRequest($method, $absUrl, $headers, $params, $hasFile, $apiMode, $maxNetworkRetries); list($rbody, $rcode, $rheaders) = $this->executeRequestWithRetries($opts, $absUrl, $maxNetworkRetries); return [$rbody, $rcode, $rheaders]; @@ -373,7 +381,7 @@ public function request($method, $absUrl, $headers, $params, $hasFile, $apiMode */ public function requestStream($method, $absUrl, $headers, $params, $hasFile, $readBodyChunk, $apiMode = 'v1', $maxNetworkRetries = null) { - list($opts, $absUrl) = $this->constructRequest($method, $absUrl, $headers, $params, $hasFile, $apiMode); + list($opts, $absUrl) = $this->constructRequest($method, $absUrl, $headers, $params, $hasFile, $apiMode, $maxNetworkRetries); $opts[\CURLOPT_RETURNTRANSFER] = false; list($rbody, $rcode, $rheaders) = $this->executeStreamingRequestWithRetries($opts, $absUrl, $readBodyChunk, $maxNetworkRetries); @@ -666,12 +674,7 @@ private function handleCurlError($url, $errno, $message, $numRetries) */ private function shouldRetry($errno, $rcode, $rheaders, $numRetries, $maxNetworkRetries) { - if (null === $maxNetworkRetries) { - // all calls from a StripeClient have a number here, so we only see `null` (and use the global configuration) if coming from a non-client call. - $maxNetworkRetries = Stripe::getMaxNetworkRetries(); - } - - if ($numRetries >= $maxNetworkRetries) { + if ($numRetries >= $this->getMaxNetworkRetries($maxNetworkRetries)) { return false; } diff --git a/lib/HttpClient/StreamingClientInterface.php b/lib/HttpClient/StreamingClientInterface.php index d01d6e6d1b..a440181242 100644 --- a/lib/HttpClient/StreamingClientInterface.php +++ b/lib/HttpClient/StreamingClientInterface.php @@ -12,6 +12,7 @@ interface StreamingClientInterface * @param bool $hasFile Whether or not $params references a file (via an @ prefix or * CURLFile) * @param callable $readBodyChunkCallable a function that will be called with chunks of bytes from the body if the request is successful + * @param 'v1'|'v2' $apiMode Specifies if this is a v1 or v2 request * @param null|int $maxNetworkRetries * * @return array an array whose first element is raw request body, second @@ -20,5 +21,5 @@ interface StreamingClientInterface * @throws \Stripe\Exception\ApiConnectionException * @throws \Stripe\Exception\UnexpectedValueException */ - public function requestStream($method, $absUrl, $headers, $params, $hasFile, $readBodyChunkCallable, $maxNetworkRetries = null); + public function requestStream($method, $absUrl, $headers, $params, $hasFile, $readBodyChunkCallable, $apiMode = 'v1', $maxNetworkRetries = null); } diff --git a/lib/Identity/VerificationReport.php b/lib/Identity/VerificationReport.php index 11d1207b85..caf920b46a 100644 --- a/lib/Identity/VerificationReport.php +++ b/lib/Identity/VerificationReport.php @@ -28,7 +28,7 @@ * @property null|(object{document?: (object{allowed_types?: string[], require_id_number?: bool, require_live_capture?: bool, require_matching_selfie?: bool}&\Stripe\StripeObject), id_number?: (object{}&\Stripe\StripeObject)}&\Stripe\StripeObject) $options * @property null|(object{address_match_confidence?: string, carrier?: string, error: null|(object{code: null|string, reason: null|string}&\Stripe\StripeObject), line_type?: string, name_match_confidence?: string, observed_phone_tenure_days?: float, phone: null|string, status: string}&\Stripe\StripeObject) $phone Result from a phone check * @property null|(object{blocked_by_entry?: null|BlocklistEntry|string, document: null|string, error: null|(object{code: null|string, reason: null|string}&\Stripe\StripeObject), selfie: null|string, status: string}&\Stripe\StripeObject) $selfie Result from a selfie check - * @property null|(object{fraudulent_email?: (object{indicators: (object{explanation: string, impact: string, indicator: string}&\Stripe\StripeObject)[], risk_level: string}&\Stripe\StripeObject), fraudulent_person?: (object{indicators: (object{explanation: string, impact: string, indicator: string}&\Stripe\StripeObject)[], risk_level: string}&\Stripe\StripeObject), fraudulent_phone?: (object{indicators: (object{explanation: string, impact: string, indicator: string}&\Stripe\StripeObject)[], risk_level: string}&\Stripe\StripeObject)}&\Stripe\StripeObject) $signals + * @property null|(object{fraudulent_document?: (object{indicators: (object{explanation: string, impact: string, indicator: string}&\Stripe\StripeObject)[], risk_level: string}&\Stripe\StripeObject), fraudulent_email?: (object{indicators: (object{explanation: string, impact: string, indicator: string}&\Stripe\StripeObject)[], risk_level: string}&\Stripe\StripeObject), fraudulent_person?: (object{indicators: (object{explanation: string, impact: string, indicator: string}&\Stripe\StripeObject)[], risk_level: string}&\Stripe\StripeObject), fraudulent_phone?: (object{indicators: (object{explanation: string, impact: string, indicator: string}&\Stripe\StripeObject)[], risk_level: string}&\Stripe\StripeObject)}&\Stripe\StripeObject) $signals * @property string $type Type of report. * @property null|string $verification_flow The configuration token of a verification flow from the dashboard. * @property null|string $verification_session ID of the VerificationSession that created this report. diff --git a/lib/PaymentAttemptRecord.php b/lib/PaymentAttemptRecord.php index 2701c5df75..3a61092f90 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{buyer_id: null|string, 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, 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), link?: (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), retrieval_reference_number?: string, wallet?: (object{type: string}&StripeObject)}&StripeObject), cashapp?: (object{buyer_id: null|string, cashtag: null|string, transaction_id: null|string}&StripeObject), crypto?: (object{amount_received?: int, amount_requested?: int, 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, fingerprint: null|string, 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, funding_source_group?: 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), momo?: (object{fingerprint: null|string, mandate?: string}&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), sequra?: (object{transaction_id: 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, location?: string, payment_reference: null|string, reader?: 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, return_code?: 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{buyer_id: null|string, 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, 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), link?: (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), retrieval_reference_number?: string, wallet?: (object{type: string}&StripeObject)}&StripeObject), carecredit?: (object{}&StripeObject), cashapp?: (object{buyer_id: null|string, cashtag: null|string, transaction_id: null|string}&StripeObject), crypto?: (object{amount_received?: int, amount_requested?: int, 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), getflex?: (object{}&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, fingerprint: null|string, 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, funding_source_group?: 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), momo?: (object{fingerprint: null|string, mandate?: string}&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), rakuten_pay?: (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), sequra?: (object{transaction_id: null|string}&StripeObject), sezzle?: (object{}&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, location?: string, payment_reference: null|string, reader?: 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, return_code?: 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. diff --git a/lib/PaymentIntent.php b/lib/PaymentIntent.php index a03e7438ff..5e3e800e40 100644 --- a/lib/PaymentIntent.php +++ b/lib/PaymentIntent.php @@ -55,7 +55,7 @@ * @property null|(object{benefit?: (object{fr_meal_voucher?: (object{enabled?: string, siret?: string}&StripeObject)}&StripeObject), car_rental?: (object{affiliate?: (object{name?: string}&StripeObject), booking_number: string, car_class_code?: string, car_make?: string, car_model?: string, company?: string, customer_service_phone_number?: string, days_rented: int, delivery?: (object{mode?: string, recipient?: (object{email?: string, name?: string, phone?: string}&StripeObject)}&StripeObject), distance?: (object{amount?: int, unit?: string}&StripeObject), drivers?: (object{driver_identification_number?: string, driver_tax_number?: string, name?: string}&StripeObject)[], extra_charges?: string[], no_show?: bool, pickup_address?: (object{city: null|string, country: null|string, line1: null|string, line2: null|string, postal_code: null|string, state: null|string}&StripeObject), pickup_at: int, pickup_location_name?: string, rate_amount?: int, rate_interval?: string, renter_name?: string, return_address?: (object{city: null|string, country: null|string, line1: null|string, line2: null|string, postal_code: null|string, state: null|string}&StripeObject), return_at: int, return_location_name?: string, tax_exempt?: bool, vehicle_identification_number?: string}&StripeObject), car_rental_data?: ((object{affiliate?: (object{code?: string, name?: string}&StripeObject), booking_number?: string, carrier_name?: string, customer_service_phone_number?: string, days_rented?: int, distance?: (object{amount?: int, unit?: string}&StripeObject), drivers?: (object{date_of_birth?: (object{day?: int, month?: int, year?: int}&StripeObject), driver_identification_number?: string, driver_tax_number?: string, name?: string}&StripeObject)[], drop_off?: (object{address?: (object{city: null|string, country: null|string, line1: null|string, line2: null|string, postal_code: null|string, state: null|string}&StripeObject), location_name?: string, time?: int}&StripeObject), insurances?: (object{amount?: int, currency?: string, insurance_company_name?: string, insurance_type?: string}&StripeObject)[], no_show_indicator?: bool, pickup?: (object{address?: (object{city: null|string, country: null|string, line1: null|string, line2: null|string, postal_code: null|string, state: null|string}&StripeObject), location_name?: string, time?: int}&StripeObject), renter_name?: string, total?: (object{amount?: int, currency?: string, discounts?: (object{corporate_client_code?: string, coupon?: string, maximum_free_miles_or_kilometers?: int}&StripeObject), extra_charges?: (object{amount?: int, type?: string}&StripeObject)[], rate_per_unit?: int, rate_unit?: string, tax?: (object{tax_exempt_indicator?: bool, tax_items?: (object{amount?: int, rate?: int, type?: string}&StripeObject)[]}&StripeObject)}&StripeObject), vehicle?: (object{make?: string, model?: string, odometer?: int, type?: string, vehicle_class?: string, vehicle_identification_number?: string}&StripeObject)}&StripeObject))[], customer_reference: null|string, event_details?: (object{access_controlled_venue?: bool, address?: (object{city: null|string, country: null|string, line1: null|string, line2: null|string, postal_code: null|string, state: null|string}&StripeObject), affiliate?: (object{name?: string}&StripeObject), company?: string, delivery?: (object{mode?: string, recipient?: (object{email?: string, name?: string, phone?: string}&StripeObject)}&StripeObject), ends_at?: int, genre?: string, name?: string, starts_at?: int}&StripeObject), fleet_data?: ((object{primary_fuel_fields?: (object{brand?: string}&StripeObject), station?: (object{additional_contact_info?: string, customer_service_phone_number?: string, partner_id_code?: string, phone_number?: string, service_location?: (object{city: null|string, country: null|string, line1: null|string, line2: null|string, postal_code: null|string, state: null|string}&StripeObject), url?: string}&StripeObject), vat?: (object{iob_indicator?: string}&StripeObject)}&StripeObject))[], flight_data?: (object{affiliate?: (object{code?: string, name?: string, travel_authorization_code?: string}&StripeObject), booking_number?: string, computerized_reservation_system?: string, endorsements_and_restrictions?: string, insurances?: (object{amount?: int, currency?: string, insurance_company_name?: string, insurance_type?: string}&StripeObject)[], passengers?: (object{name?: string}&StripeObject)[], segments?: (object{amount?: int, arrival?: (object{airport?: string, arrives_at?: int, city?: string, country?: string}&StripeObject), carrier_code?: string, carrier_name?: string, currency?: string, departure?: (object{airport?: string, city?: string, country?: string, departs_at?: int}&StripeObject), 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}&StripeObject)[], ticket_electronically_issued_indicator?: bool, total?: (object{amount?: int, credit_reason?: string, currency?: string, discounts?: (object{corporate_client_code?: string}&StripeObject), extra_charges?: (object{amount?: int, type?: string}&StripeObject)[], tax?: (object{tax_items?: (object{amount?: int, rate?: int, type?: string}&StripeObject)[]}&StripeObject)}&StripeObject), transaction_type?: string}&StripeObject)[], location?: string, lodging_data?: ((object{accommodation?: (object{accommodation_type: null|string, bed_type?: string, daily_rate_amount?: int, nights?: int, number_of_rooms?: int, rate_type?: string, smoking_indicator?: bool}&StripeObject), affiliate?: (object{code?: string, name?: string}&StripeObject), booking_number?: string, checkin_at?: int, checkout_at?: int, customer_service_phone_number?: string, fire_safety_act_compliance_indicator?: bool, guests?: (object{name?: string}&StripeObject)[], host?: (object{address?: (object{city: null|string, country: null|string, line1: null|string, line2: null|string, postal_code: null|string, state: null|string}&StripeObject), country_of_domicile?: string, host_reference?: string, host_type?: string, name?: string, number_of_reservations?: int, property_phone_number?: string, registered_at?: int}&StripeObject), insurances?: (object{amount?: int, currency?: string, insurance_company_name?: string, insurance_type?: string}&StripeObject)[], no_show_indicator?: bool, renter_id_number?: string, renter_name?: string, total?: (object{amount?: int, cash_advances?: int, currency?: string, discounts?: (object{corporate_client_code?: string, coupon?: string}&StripeObject), extra_charges?: (object{amount?: int, type?: string}&StripeObject)[], prepaid_amount?: int, tax?: (object{tax_exempt_indicator?: bool, tax_items?: (object{amount?: int, rate?: int, type?: string}&StripeObject)[]}&StripeObject)}&StripeObject)}&StripeObject))[], money_services?: (object{account_funding?: (object{sender_account?: string, sender_details?: (object{address?: (object{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}&StripeObject), date_of_birth?: (object{day: int, month: int, year: int}&StripeObject), email?: string, given_name?: string, phone?: string, surname?: string}&StripeObject)}&StripeObject), beneficiary_account?: string, beneficiary_details?: (object{address?: (object{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}&StripeObject), date_of_birth?: (object{day: int, month: int, year: int}&StripeObject), email?: string, given_name?: string, phone?: string, surname?: string}&StripeObject), transaction_type?: string}&StripeObject), order_reference: null|string, subscription?: (object{affiliate?: (object{name?: string}&StripeObject), auto_renewal?: bool, billing_interval?: (object{count?: int, interval?: string}&StripeObject), ends_at?: int, name?: string, starts_at?: int}&StripeObject)}&StripeObject) $payment_details * @property null|PaymentMethod|string $payment_method ID of the payment method used in this PaymentIntent. * @property null|(object{id: string, parent: null|string}&StripeObject) $payment_method_configuration_details Information about the payment method configuration used for this PaymentIntent. - * @property null|(object{acss_debit?: (object{mandate_options?: (object{custom_mandate_url?: string, interval_description: null|string, payment_schedule: null|string, transaction_type: null|string}&StripeObject), setup_future_usage?: string, target_date?: string, verification_method?: string}&StripeObject), affirm?: (object{capture_method?: string, preferred_locale?: string, setup_future_usage?: string}&StripeObject), afterpay_clearpay?: (object{capture_method?: string, reference: null|string, setup_future_usage?: string}&StripeObject), alipay?: (object{setup_future_usage?: string}&StripeObject), alma?: (object{capture_method?: string}&StripeObject), amazon_pay?: (object{capture_method?: string, setup_future_usage?: string}&StripeObject), au_becs_debit?: (object{setup_future_usage?: string, target_date?: string}&StripeObject), bacs_debit?: (object{mandate_options?: (object{reference_prefix?: string}&StripeObject), setup_future_usage?: string, target_date?: string, verification_method?: string}&StripeObject), bancontact?: (object{preferred_language: string, setup_future_usage?: string}&StripeObject), billie?: (object{capture_method?: string, company_details?: (object{registered_address?: (object{city: null|string, country: null|string, line1: null|string, line2: null|string, postal_code: null|string, state: null|string}&StripeObject), registered_name: null|string, registration_number: null|string, registration_type?: string, vat: null|string}&StripeObject), reference?: null|string}&StripeObject), bizum?: (object{}&StripeObject), blik?: (object{mandate_options?: (object{expires_at: null|int, type: null|string}&StripeObject), setup_future_usage?: string}&StripeObject), boleto?: (object{expires_after_days: int, setup_future_usage?: string}&StripeObject), card?: (object{capture_by?: string, capture_delay?: (object{days?: int, hours?: int}&StripeObject), capture_method?: string, installments: null|(object{available_plans: null|((object{count: null|int, interval: null|string, type: string}&StripeObject))[], enabled: bool, plan: null|(object{count: null|int, interval: null|string, type: string}&StripeObject)}&StripeObject), mandate_options: null|(object{amount: int, amount_type: string, description: null|string, end_date: null|int, interval: string, interval_count: null|int, reference: string, start_date: int, supported_types: null|string[]}&StripeObject), network: null|string, request_card_account_update?: 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?: null|string, request_three_d_secure: null|string, require_cvc_recollection?: bool, setup_credential_usage?: string, setup_future_usage?: string, statement_descriptor_suffix_kana?: string, statement_descriptor_suffix_kanji?: string, statement_details?: (object{address?: (object{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}&StripeObject), phone?: string}&StripeObject), stored_credential_usage?: string}&StripeObject), card_present?: (object{aade_data?: (object{mark_data?: string, mode: string, provider_id?: int, signed_mark?: string, unbound_pos?: string}&StripeObject), capture_by?: string, capture_delay?: (object{days?: int, hours?: int}&StripeObject), capture_method?: string, fleet?: null|(object{transaction_data: (object{prompt: string, receipt_behavior: string, value: string}&StripeObject)[]}&StripeObject), request_extended_authorization: null|bool, request_incremental_authorization_support: null|bool, request_multicapture?: string, request_reauthorization?: null|string, routing?: (object{requested_priority: null|string}&StripeObject)}&StripeObject), cashapp?: (object{capture_method?: string, setup_future_usage?: string}&StripeObject), crypto?: (object{amount_reconciliation?: (object{type?: string}&StripeObject), deposit_options?: (object{networks?: string[], static_address?: bool}&StripeObject), mode?: string, setup_future_usage?: string, transaction_verification_options?: (object{network?: string, transaction_hash?: string}&StripeObject)}&StripeObject), customer_balance?: (object{bank_transfer?: (object{eu_bank_transfer?: (object{country: string}&StripeObject), requested_address_types?: string[], type: null|string}&StripeObject), funding_type: null|string, setup_future_usage?: string}&StripeObject), eps?: (object{setup_future_usage?: string}&StripeObject), fpx?: (object{setup_future_usage?: string}&StripeObject), gift_card?: (object{ignore_application_fee: null|string, ignore_transfer_data: null|string, request_partial_authorization: null|string}&StripeObject), giropay?: (object{setup_future_usage?: string}&StripeObject), gopay?: (object{setup_future_usage?: string}&StripeObject), grabpay?: (object{setup_future_usage?: string}&StripeObject), id_bank_transfer?: (object{expires_after?: null|int, expires_at: null|int, setup_future_usage?: string}&StripeObject), ideal?: (object{setup_future_usage?: string}&StripeObject), interac_present?: (object{}&StripeObject), kakao_pay?: (object{capture_method?: string, setup_future_usage?: string}&StripeObject), klarna?: (object{capture_method?: string, preferred_locale: null|string, setup_future_usage?: string}&StripeObject), konbini?: (object{confirmation_number: null|string, expires_after_days: null|int, expires_at: null|int, product_description: null|string, setup_future_usage?: string}&StripeObject), kr_card?: (object{capture_method?: string, setup_future_usage?: string}&StripeObject), link?: (object{capture_method?: string, persistent_token: null|string, setup_future_usage?: string}&StripeObject), mb_way?: (object{setup_future_usage?: string}&StripeObject), mobilepay?: (object{capture_method?: string, setup_future_usage?: string}&StripeObject), multibanco?: (object{setup_future_usage?: string}&StripeObject), naver_pay?: (object{capture_method?: string, setup_future_usage?: string}&StripeObject), nz_bank_account?: (object{setup_future_usage?: string, target_date?: string}&StripeObject), oxxo?: (object{expires_after_days: int, setup_future_usage?: string}&StripeObject), p24?: (object{setup_future_usage?: string}&StripeObject), pay_by_bank?: (object{}&StripeObject), payco?: (object{capture_method?: string, setup_future_usage?: string}&StripeObject), paynow?: (object{setup_future_usage?: string}&StripeObject), paypal?: (object{capture_method?: string, line_items?: (object{category?: string, description?: string, name: string, quantity: int, sku?: string, sold_by?: string, tax?: (object{amount: int, behavior: string}&StripeObject), unit_amount: int}&StripeObject)[], preferred_locale: null|string, reference: null|string, reference_id?: null|string, setup_future_usage?: string, subsellers?: string[]}&StripeObject), paypay?: (object{setup_future_usage?: string, subscription_reference?: null|string}&StripeObject), payto?: (object{mandate_options?: (object{amount: null|int, amount_type: null|string, end_date: null|string, payment_schedule: null|string, payments_per_period: null|int, purpose: null|string}&StripeObject), setup_future_usage?: string}&StripeObject), pix?: (object{amount_includes_iof?: string, expires_after_seconds: null|int, expires_at: null|int, mandate_options?: (object{amount?: int, amount_includes_iof?: string, amount_type?: string, currency?: string, end_date?: string, payment_schedule?: string, reference?: string, start_date?: string}&StripeObject), setup_future_usage?: string}&StripeObject), promptpay?: (object{setup_future_usage?: string}&StripeObject), qris?: (object{setup_future_usage?: string}&StripeObject), rechnung?: (object{}&StripeObject), revolut_pay?: (object{capture_method?: string, setup_future_usage?: string}&StripeObject), samsung_pay?: (object{capture_method?: string, setup_future_usage?: string}&StripeObject), satispay?: (object{capture_method?: string, setup_future_usage?: string}&StripeObject), scalapay?: (object{capture_method?: string}&StripeObject), sepa_debit?: (object{mandate_options?: (object{reference_prefix?: string}&StripeObject), setup_future_usage?: string, target_date?: string}&StripeObject), sequra?: (object{capture_method?: string, setup_future_usage?: string}&StripeObject), shopeepay?: (object{setup_future_usage?: string}&StripeObject), sofort?: (object{preferred_language: null|string, setup_future_usage?: string}&StripeObject), stripe_balance?: (object{mandate_options?: (object{stripe_balance_debit_agreement?: string}&StripeObject), setup_future_usage?: string}&StripeObject), sunbit?: (object{capture_method?: string, setup_future_usage?: string}&StripeObject), swish?: (object{reference: null|string, setup_future_usage?: string}&StripeObject), twint?: (object{setup_future_usage?: string}&StripeObject), upi?: (object{setup_future_usage?: string}&StripeObject), us_bank_account?: (object{financial_connections?: (object{filters?: (object{account_subcategories?: string[], institution?: string}&StripeObject), manual_entry?: (object{mode?: string}&StripeObject), permissions?: string[], prefetch: null|string[], return_url?: string}&StripeObject), mandate_options?: (object{collection_method?: string}&StripeObject), setup_future_usage?: string, target_date?: string, transaction_purpose?: string, verification_method?: string}&StripeObject), vipps?: (object{capture_method?: string, payment_details?: (object{money_services?: (object{account_funding?: (object{digital_asset_category?: string}&StripeObject)}&StripeObject)}&StripeObject), setup_future_usage?: string}&StripeObject), wechat_pay?: (object{app_id: null|string, buyer_id?: string, client: null|string, setup_future_usage?: string}&StripeObject), zip?: (object{setup_future_usage?: string}&StripeObject)}&StripeObject) $payment_method_options Payment-method-specific configuration for this PaymentIntent. + * @property null|(object{acss_debit?: (object{mandate_options?: (object{custom_mandate_url?: string, interval_description: null|string, payment_schedule: null|string, transaction_type: null|string}&StripeObject), setup_future_usage?: string, target_date?: string, verification_method?: string}&StripeObject), affirm?: (object{capture_method?: string, preferred_locale?: string, setup_future_usage?: string}&StripeObject), afterpay_clearpay?: (object{capture_method?: string, reference: null|string, setup_future_usage?: string}&StripeObject), alipay?: (object{setup_future_usage?: string}&StripeObject), alma?: (object{capture_method?: string}&StripeObject), amazon_pay?: (object{capture_method?: string, setup_future_usage?: string}&StripeObject), au_becs_debit?: (object{setup_future_usage?: string, target_date?: string}&StripeObject), bacs_debit?: (object{mandate_options?: (object{reference_prefix?: string}&StripeObject), setup_future_usage?: string, target_date?: string, verification_method?: string}&StripeObject), bancontact?: (object{preferred_language: string, setup_future_usage?: string}&StripeObject), billie?: (object{capture_method?: string, company_details?: (object{registered_address?: (object{city: null|string, country: null|string, line1: null|string, line2: null|string, postal_code: null|string, state: null|string}&StripeObject), registered_name: null|string, registration_number: null|string, registration_type?: string, vat: null|string}&StripeObject), reference?: null|string}&StripeObject), bizum?: (object{}&StripeObject), blik?: (object{mandate_options?: (object{expires_at: null|int, type: null|string}&StripeObject), setup_future_usage?: string}&StripeObject), boleto?: (object{expires_after_days: int, setup_future_usage?: string}&StripeObject), card?: (object{capture_by?: string, capture_delay?: (object{days?: int, hours?: int}&StripeObject), capture_method?: string, installments: null|(object{available_plans: null|((object{count: null|int, interval: null|string, type: string}&StripeObject))[], enabled: bool, plan: null|(object{count: null|int, interval: null|string, type: string}&StripeObject)}&StripeObject), mandate_options: null|(object{amount: int, amount_type: string, description: null|string, end_date: null|int, interval: string, interval_count: null|int, reference: string, start_date: int, supported_types: null|string[]}&StripeObject), network: null|string, request_card_account_update?: 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?: null|string, request_three_d_secure: null|string, require_cvc_recollection?: bool, setup_credential_usage?: string, setup_future_usage?: string, statement_descriptor_suffix_kana?: string, statement_descriptor_suffix_kanji?: string, statement_details?: (object{address?: (object{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}&StripeObject), phone?: string}&StripeObject), stored_credential_usage?: string}&StripeObject), card_present?: (object{aade_data?: (object{mark_data?: string, mode: string, provider_id?: int, signed_mark?: string, unbound_pos?: string}&StripeObject), capture_by?: string, capture_delay?: (object{days?: int, hours?: int}&StripeObject), capture_method?: string, fleet?: null|(object{transaction_data: (object{prompt: string, receipt_behavior: string, value: string}&StripeObject)[]}&StripeObject), request_extended_authorization: null|bool, request_incremental_authorization_support: null|bool, request_multicapture?: string, request_reauthorization?: null|string, routing?: (object{requested_priority: null|string}&StripeObject)}&StripeObject), carecredit?: (object{capture_method?: string, setup_future_usage?: string}&StripeObject), cashapp?: (object{capture_method?: string, setup_future_usage?: string}&StripeObject), crypto?: (object{amount_reconciliation?: (object{type?: string}&StripeObject), deposit_options?: (object{networks?: string[], static_address?: bool}&StripeObject), mode?: string, setup_future_usage?: string, transaction_verification_options?: (object{network?: string, transaction_hash?: string}&StripeObject)}&StripeObject), customer_balance?: (object{bank_transfer?: (object{eu_bank_transfer?: (object{country: string}&StripeObject), requested_address_types?: string[], type: null|string}&StripeObject), funding_type: null|string, setup_future_usage?: string}&StripeObject), eps?: (object{setup_future_usage?: string}&StripeObject), fpx?: (object{setup_future_usage?: string}&StripeObject), getflex?: (object{capture_method?: string, setup_future_usage?: string}&StripeObject), gift_card?: (object{ignore_application_fee: null|string, ignore_transfer_data: null|string, request_partial_authorization: null|string}&StripeObject), giropay?: (object{setup_future_usage?: string}&StripeObject), gopay?: (object{setup_future_usage?: string}&StripeObject), grabpay?: (object{setup_future_usage?: string}&StripeObject), id_bank_transfer?: (object{expires_after?: null|int, expires_at: null|int, setup_future_usage?: string}&StripeObject), ideal?: (object{setup_future_usage?: string}&StripeObject), interac_present?: (object{}&StripeObject), kakao_pay?: (object{capture_method?: string, setup_future_usage?: string}&StripeObject), klarna?: (object{capture_method?: string, preferred_locale: null|string, setup_future_usage?: string}&StripeObject), konbini?: (object{confirmation_number: null|string, expires_after_days: null|int, expires_at: null|int, product_description: null|string, setup_future_usage?: string}&StripeObject), kr_card?: (object{capture_method?: string, setup_future_usage?: string}&StripeObject), link?: (object{capture_method?: string, persistent_token: null|string, setup_future_usage?: string}&StripeObject), mb_way?: (object{setup_future_usage?: string}&StripeObject), mobilepay?: (object{capture_method?: string, setup_future_usage?: string}&StripeObject), multibanco?: (object{setup_future_usage?: string}&StripeObject), naver_pay?: (object{capture_method?: string, setup_future_usage?: string}&StripeObject), nz_bank_account?: (object{setup_future_usage?: string, target_date?: string}&StripeObject), oxxo?: (object{expires_after_days: int, setup_future_usage?: string}&StripeObject), p24?: (object{setup_future_usage?: string}&StripeObject), pay_by_bank?: (object{}&StripeObject), payco?: (object{capture_method?: string, setup_future_usage?: string}&StripeObject), paynow?: (object{setup_future_usage?: string}&StripeObject), paypal?: (object{capture_method?: string, line_items?: (object{category?: string, description?: string, name: string, quantity: int, sku?: string, sold_by?: string, tax?: (object{amount: int, behavior: string}&StripeObject), unit_amount: int}&StripeObject)[], preferred_locale: null|string, reference: null|string, reference_id?: null|string, setup_future_usage?: string, subsellers?: string[]}&StripeObject), paypay?: (object{setup_future_usage?: string, subscription_reference?: null|string}&StripeObject), payto?: (object{mandate_options?: (object{amount: null|int, amount_type: null|string, end_date: null|string, payment_schedule: null|string, payments_per_period: null|int, purpose: null|string}&StripeObject), setup_future_usage?: string}&StripeObject), pix?: (object{amount_includes_iof?: string, expires_after_seconds: null|int, expires_at: null|int, mandate_options?: (object{amount?: int, amount_includes_iof?: string, amount_type?: string, currency?: string, end_date?: string, payment_schedule?: string, reference?: string, start_date?: string}&StripeObject), setup_future_usage?: string}&StripeObject), promptpay?: (object{setup_future_usage?: string}&StripeObject), qris?: (object{setup_future_usage?: string}&StripeObject), rechnung?: (object{}&StripeObject), revolut_pay?: (object{capture_method?: string, setup_future_usage?: string}&StripeObject), samsung_pay?: (object{capture_method?: string, setup_future_usage?: string}&StripeObject), satispay?: (object{capture_method?: string, setup_future_usage?: string}&StripeObject), scalapay?: (object{capture_method?: string}&StripeObject), sepa_debit?: (object{mandate_options?: (object{reference_prefix?: string}&StripeObject), setup_future_usage?: string, target_date?: string}&StripeObject), sequra?: (object{capture_method?: string, setup_future_usage?: string}&StripeObject), sezzle?: (object{capture_method?: string, setup_future_usage?: string}&StripeObject), shopeepay?: (object{setup_future_usage?: string}&StripeObject), sofort?: (object{preferred_language: null|string, setup_future_usage?: string}&StripeObject), stripe_balance?: (object{mandate_options?: (object{stripe_balance_debit_agreement?: string}&StripeObject), setup_future_usage?: string}&StripeObject), sunbit?: (object{capture_method?: string, setup_future_usage?: string}&StripeObject), swish?: (object{reference: null|string, setup_future_usage?: string}&StripeObject), twint?: (object{setup_future_usage?: string}&StripeObject), upi?: (object{setup_future_usage?: string}&StripeObject), us_bank_account?: (object{financial_connections?: (object{filters?: (object{account_subcategories?: string[], institution?: string}&StripeObject), manual_entry?: (object{mode?: string}&StripeObject), permissions?: string[], prefetch: null|string[], return_url?: string}&StripeObject), mandate_options?: (object{collection_method?: string}&StripeObject), setup_future_usage?: string, target_date?: string, transaction_purpose?: string, verification_method?: string}&StripeObject), vipps?: (object{capture_method?: string, payment_details?: (object{money_services?: (object{account_funding?: (object{digital_asset_category?: string}&StripeObject)}&StripeObject)}&StripeObject), setup_future_usage?: string}&StripeObject), wechat_pay?: (object{app_id: null|string, buyer_id?: string, client: null|string, setup_future_usage?: string}&StripeObject), zip?: (object{setup_future_usage?: string}&StripeObject)}&StripeObject) $payment_method_options Payment-method-specific configuration for this PaymentIntent. * @property string[] $payment_method_types The list of payment method types (e.g. card) that this PaymentIntent is allowed to use. A comprehensive list of valid payment method types can be found here. * @property null|PaymentRecord|string $payment_record ID of the Payment Record object created by this PaymentIntent. * @property null|(object{enabled: bool}&StripeObject) $payments_orchestration When you enable this parameter, this PaymentIntent will route your payment to processors that you configure in the dashboard. @@ -126,7 +126,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, ev_charging?: array{carbon_footprint_avoided_grams_co2?: int, charging_ended_at: int, charging_power_output_capacity_kw: int, charging_started_at: int, connector_type: string, estimated_range_added?: int, estimated_range_left?: int, maximum_power_dispensed_kw: int}, 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_cost_precision?: 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?: 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, tax_items?: 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{tax_items?: 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, tax_items?: 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}, sequra?: array{}, 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}, vipps?: array{}, 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, verification_method?: string}, bancontact?: null|array{preferred_language?: string, setup_future_usage?: null|string}, billie?: null|array{capture_method?: null|string, company_details?: null|array{registered_address?: null|array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, registered_name?: string, registration_number?: string, registration_type?: null|string, vat?: string}, reference?: string}, bizum?: null|array{}, blik?: null|array{code?: string, mandate_options?: array{expires_at?: int}, 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_card_account_update?: 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_credential_usage?: string, 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}, stored_credential_usage?: 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{aade_data?: array{mark_data?: string, mode: string, provider_id?: int, signed_mark?: string, unbound_pos?: string}, capture_by?: string, capture_delay?: array{days?: int, hours?: int}, capture_method?: string, fleet?: null|array{transaction_data?: null|(array{prompt: string, receipt_behavior?: string, value: null|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{amount_reconciliation?: array{type: string}, 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, setup_future_usage?: 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{setup_future_usage?: null|string, subscription_reference?: 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, setup_future_usage?: string}, satispay?: null|array{capture_method?: null|string, setup_future_usage?: 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}, sequra?: null|array{capture_method?: null|string, setup_future_usage?: 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}, sunbit?: null|array{capture_method?: null|string, setup_future_usage?: 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}, vipps?: null|array{capture_method?: null|string, payment_details?: array{money_services?: array{account_funding?: array{digital_asset_category?: string}}}, setup_future_usage?: string}, wechat_pay?: null|array{app_id?: string, buyer_id?: string, client?: string, setup_future_usage?: string}, zip?: null|array{setup_future_usage?: string}}, payments_orchestration?: array{enabled: bool, payment_reference?: string}, radar_options?: array{referrer?: null|string, 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, ev_charging?: array{carbon_footprint_avoided_grams_co2?: int, charging_ended_at: int, charging_power_output_capacity_kw: int, charging_started_at: int, connector_type: string, estimated_range_added?: int, estimated_range_left?: int, maximum_power_dispensed_kw: int}, 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_cost_precision?: 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?: 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, tax_items?: 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{tax_items?: 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, tax_items?: 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}, carecredit?: array{}, cashapp?: array{}, crypto?: array{}, customer_balance?: array{}, eps?: array{bank?: string}, fpx?: array{account_holder_type?: string, bank: string}, getflex?: array{}, 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}, rakuten_pay?: array{}, 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}, sequra?: array{}, sezzle?: array{}, 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}, vipps?: array{}, 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, verification_method?: string}, bancontact?: null|array{preferred_language?: string, setup_future_usage?: null|string}, billie?: null|array{capture_method?: null|string, company_details?: null|array{registered_address?: null|array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, registered_name?: string, registration_number?: string, registration_type?: null|string, vat?: string}, reference?: string}, bizum?: null|array{}, blik?: null|array{code?: string, mandate_options?: array{expires_at?: int}, 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_card_account_update?: 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_credential_usage?: string, 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}, stored_credential_usage?: 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{aade_data?: array{mark_data?: string, mode: string, provider_id?: int, signed_mark?: string, unbound_pos?: string}, capture_by?: string, capture_delay?: array{days?: int, hours?: int}, capture_method?: string, fleet?: null|array{transaction_data?: null|(array{prompt: string, receipt_behavior?: string, value: null|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}}, carecredit?: null|array{capture_method?: null|string, setup_future_usage?: null|string}, cashapp?: null|array{capture_method?: null|string, setup_future_usage?: null|string}, crypto?: null|array{amount_reconciliation?: array{type: string}, 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}, getflex?: null|array{capture_method?: null|string, setup_future_usage?: null|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, setup_future_usage?: 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{setup_future_usage?: null|string, subscription_reference?: 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, setup_future_usage?: string}, satispay?: null|array{capture_method?: null|string, setup_future_usage?: 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}, sequra?: null|array{capture_method?: null|string, setup_future_usage?: string}, sezzle?: null|array{capture_method?: null|string, setup_future_usage?: 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}, sunbit?: null|array{capture_method?: null|string, setup_future_usage?: 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}, vipps?: null|array{capture_method?: null|string, payment_details?: array{money_services?: array{account_funding?: array{digital_asset_category?: string}}}, setup_future_usage?: string}, wechat_pay?: null|array{app_id?: string, buyer_id?: string, client?: string, setup_future_usage?: string}, zip?: null|array{setup_future_usage?: string}}, payments_orchestration?: array{enabled: bool, payment_reference?: string}, radar_options?: array{referrer?: null|string, 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 @@ -198,7 +198,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, ev_charging?: array{carbon_footprint_avoided_grams_co2?: int, charging_ended_at: int, charging_power_output_capacity_kw: int, charging_started_at: int, connector_type: string, estimated_range_added?: int, estimated_range_left?: int, maximum_power_dispensed_kw: int}, 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_cost_precision?: 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, tax_items?: 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{tax_items?: 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, tax_items?: 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}, sequra?: array{}, 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}, vipps?: array{}, 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, verification_method?: string}, bancontact?: null|array{preferred_language?: string, setup_future_usage?: null|string}, billie?: null|array{capture_method?: null|string, company_details?: null|array{registered_address?: null|array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, registered_name?: string, registration_number?: string, registration_type?: null|string, vat?: string}, reference?: string}, bizum?: null|array{}, blik?: null|array{code?: string, mandate_options?: array{expires_at?: int}, 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_card_account_update?: 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_credential_usage?: string, 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}, stored_credential_usage?: 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{aade_data?: array{mark_data?: string, mode: string, provider_id?: int, signed_mark?: string, unbound_pos?: string}, capture_by?: string, capture_delay?: array{days?: int, hours?: int}, capture_method?: string, fleet?: null|array{transaction_data?: null|(array{prompt: string, receipt_behavior?: string, value: null|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{amount_reconciliation?: array{type: string}, 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, setup_future_usage?: 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{setup_future_usage?: null|string, subscription_reference?: 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, setup_future_usage?: string}, satispay?: null|array{capture_method?: null|string, setup_future_usage?: 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}, sequra?: null|array{capture_method?: null|string, setup_future_usage?: 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}, sunbit?: null|array{capture_method?: null|string, setup_future_usage?: 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}, vipps?: null|array{capture_method?: null|string, payment_details?: array{money_services?: array{account_funding?: array{digital_asset_category?: string}}}, setup_future_usage?: string}, wechat_pay?: null|array{app_id?: string, buyer_id?: string, client?: string, setup_future_usage?: string}, zip?: null|array{setup_future_usage?: 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, ev_charging?: array{carbon_footprint_avoided_grams_co2?: int, charging_ended_at: int, charging_power_output_capacity_kw: int, charging_started_at: int, connector_type: string, estimated_range_added?: int, estimated_range_left?: int, maximum_power_dispensed_kw: int}, 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_cost_precision?: 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, tax_items?: 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{tax_items?: 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, tax_items?: 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}, carecredit?: array{}, cashapp?: array{}, crypto?: array{}, customer_balance?: array{}, eps?: array{bank?: string}, fpx?: array{account_holder_type?: string, bank: string}, getflex?: array{}, 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}, rakuten_pay?: array{}, 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}, sequra?: array{}, sezzle?: array{}, 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}, vipps?: array{}, 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, verification_method?: string}, bancontact?: null|array{preferred_language?: string, setup_future_usage?: null|string}, billie?: null|array{capture_method?: null|string, company_details?: null|array{registered_address?: null|array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, registered_name?: string, registration_number?: string, registration_type?: null|string, vat?: string}, reference?: string}, bizum?: null|array{}, blik?: null|array{code?: string, mandate_options?: array{expires_at?: int}, 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_card_account_update?: 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_credential_usage?: string, 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}, stored_credential_usage?: 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{aade_data?: array{mark_data?: string, mode: string, provider_id?: int, signed_mark?: string, unbound_pos?: string}, capture_by?: string, capture_delay?: array{days?: int, hours?: int}, capture_method?: string, fleet?: null|array{transaction_data?: null|(array{prompt: string, receipt_behavior?: string, value: null|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}}, carecredit?: null|array{capture_method?: null|string, setup_future_usage?: null|string}, cashapp?: null|array{capture_method?: null|string, setup_future_usage?: null|string}, crypto?: null|array{amount_reconciliation?: array{type: string}, 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}, getflex?: null|array{capture_method?: null|string, setup_future_usage?: null|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, setup_future_usage?: 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{setup_future_usage?: null|string, subscription_reference?: 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, setup_future_usage?: string}, satispay?: null|array{capture_method?: null|string, setup_future_usage?: 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}, sequra?: null|array{capture_method?: null|string, setup_future_usage?: string}, sezzle?: null|array{capture_method?: null|string, setup_future_usage?: 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}, sunbit?: null|array{capture_method?: null|string, setup_future_usage?: 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}, vipps?: null|array{capture_method?: null|string, payment_details?: array{money_services?: array{account_funding?: array{digital_asset_category?: string}}}, setup_future_usage?: string}, wechat_pay?: null|array{app_id?: string, buyer_id?: string, client?: string, setup_future_usage?: string}, zip?: null|array{setup_future_usage?: 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/PaymentMethod.php b/lib/PaymentMethod.php index 679f5a717a..cc31237b72 100644 --- a/lib/PaymentMethod.php +++ b/lib/PaymentMethod.php @@ -30,6 +30,7 @@ * @property null|(object{tax_id: string}&StripeObject) $boleto * @property null|(object{benefits?: (object{issuer: null|string, programs: null|string[]}&StripeObject), brand: string, 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, display_brand: null|string, exp_month: int, exp_year: int, fingerprint?: null|string, funding: string, generated_from: null|(object{charge: null|string, payment_method_details: null|(object{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), retrieval_reference_number?: string, wallet?: (object{type: string}&StripeObject)}&StripeObject), type: string}&StripeObject), setup_attempt: null|SetupAttempt|string}&StripeObject), iin?: null|string, issuer?: null|string, last4: string, networks: null|(object{available: string[], preferred: null|string}&StripeObject), regulated_status: null|string, three_d_secure_usage: null|(object{supported: bool}&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 * @property null|(object{brand: null|string, brand_product: null|string, cardholder_name: null|string, country: null|string, description?: null|string, exp_month: int, exp_year: int, fingerprint: null|string, funding: null|string, iin?: null|string, issuer?: null|string, last4: null|string, networks: null|(object{available: string[], preferred: null|string}&StripeObject), offline: null|(object{stored_at: null|int, type: null|string}&StripeObject), preferred_locales: null|string[], read_method: null|string, wallet?: (object{type: string}&StripeObject)}&StripeObject) $card_present + * @property null|(object{}&StripeObject) $carecredit * @property null|(object{buyer_id: null|string, cashtag: null|string}&StripeObject) $cashapp * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch. * @property null|(object{}&StripeObject) $crypto @@ -39,6 +40,7 @@ * @property null|(object{}&StripeObject) $customer_balance * @property null|(object{bank: null|string}&StripeObject) $eps * @property null|(object{account_holder_type: null|string, bank: string}&StripeObject) $fpx + * @property null|(object{}&StripeObject) $getflex * @property null|(object{brand: string, exp_month: null|int, exp_year: null|int, fingerprint?: string, last4: null|string}&StripeObject) $gift_card * @property null|(object{}&StripeObject) $giropay * @property null|(object{}&StripeObject) $gopay @@ -71,6 +73,7 @@ * @property null|(object{}&StripeObject) $promptpay * @property null|(object{}&StripeObject) $qris * @property null|(object{session?: string}&StripeObject) $radar_options Options to configure Radar. See Radar Session for more information. + * @property null|(object{}&StripeObject) $rakuten_pay * @property null|(object{dob?: (object{day: int, month: int, year: int}&StripeObject)}&StripeObject) $rechnung * @property null|(object{status: string}&StripeObject) $redaction Redaction status of this PaymentMethod. If the PaymentMethod is not redacted, this field will be null. * @property null|(object{}&StripeObject) $revolut_pay @@ -79,6 +82,7 @@ * @property null|(object{}&StripeObject) $scalapay * @property null|(object{bank_code: null|string, branch_code: null|string, country: null|string, fingerprint: null|string, generated_from: null|(object{charge: null|Charge|string, payment_method?: null|PaymentMethod|string, setup_attempt: null|SetupAttempt|string}&StripeObject), last4: null|string}&StripeObject) $sepa_debit * @property null|(object{}&StripeObject) $sequra + * @property null|(object{}&StripeObject) $sezzle * @property null|string $shared_payment_granted_token ID of the shared payment granted token used in the creation of this PaymentMethod. * @property null|(object{}&StripeObject) $shopeepay * @property null|(object{country: null|string}&StripeObject) $sofort @@ -119,12 +123,14 @@ class PaymentMethod extends ApiResource const TYPE_BOLETO = 'boleto'; const TYPE_CARD = 'card'; const TYPE_CARD_PRESENT = 'card_present'; + const TYPE_CARECREDIT = 'carecredit'; const TYPE_CASHAPP = 'cashapp'; const TYPE_CRYPTO = 'crypto'; const TYPE_CUSTOM = 'custom'; const TYPE_CUSTOMER_BALANCE = 'customer_balance'; const TYPE_EPS = 'eps'; const TYPE_FPX = 'fpx'; + const TYPE_GETFLEX = 'getflex'; const TYPE_GIFT_CARD = 'gift_card'; const TYPE_GIROPAY = 'giropay'; const TYPE_GOPAY = 'gopay'; @@ -153,6 +159,7 @@ class PaymentMethod extends ApiResource const TYPE_PIX = 'pix'; const TYPE_PROMPTPAY = 'promptpay'; const TYPE_QRIS = 'qris'; + const TYPE_RAKUTEN_PAY = 'rakuten_pay'; const TYPE_RECHNUNG = 'rechnung'; const TYPE_REVOLUT_PAY = 'revolut_pay'; const TYPE_SAMSUNG_PAY = 'samsung_pay'; @@ -160,6 +167,7 @@ class PaymentMethod extends ApiResource const TYPE_SCALAPAY = 'scalapay'; const TYPE_SEPA_DEBIT = 'sepa_debit'; const TYPE_SEQURA = 'sequra'; + const TYPE_SEZZLE = 'sezzle'; const TYPE_SHOPEEPAY = 'shopeepay'; const TYPE_SOFORT = 'sofort'; const TYPE_STRIPE_BALANCE = 'stripe_balance'; @@ -184,7 +192,7 @@ class PaymentMethod extends ApiResource * href="/docs/payments/save-and-reuse">SetupIntent API to collect payment * method details ahead of a future payment. * - * @param null|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}, card?: array{cvc?: string, exp_month?: int, exp_year?: int, networks?: array{preferred?: string}, number?: string, token?: string}, cashapp?: array{}, crypto?: array{}, custom?: array{type: string}, customer?: string, customer_balance?: array{}, eps?: array{bank?: string}, expand?: 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{}, payment_method?: string, 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}, sequra?: array{}, 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}, vipps?: array{}, wechat_pay?: array{}, zip?: array{}} $params + * @param null|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}, card?: array{cvc?: string, exp_month?: int, exp_year?: int, networks?: array{preferred?: string}, number?: string, token?: string}, carecredit?: array{}, cashapp?: array{}, crypto?: array{}, custom?: array{type: string}, customer?: string, customer_balance?: array{}, eps?: array{bank?: string}, expand?: string[], fpx?: array{account_holder_type?: string, bank: string}, getflex?: array{}, 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{}, payment_method?: string, 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}, rakuten_pay?: array{}, 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}, sequra?: array{}, sezzle?: array{}, 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}, vipps?: array{}, wechat_pay?: array{}, zip?: array{}} $params * @param null|array|string $options * * @return PaymentMethod the created resource diff --git a/lib/PaymentRecord.php b/lib/PaymentRecord.php index 8348f9c8a3..587c9e1657 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{buyer_id: null|string, 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, 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), link?: (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), retrieval_reference_number?: string, wallet?: (object{type: string}&StripeObject)}&StripeObject), cashapp?: (object{buyer_id: null|string, cashtag: null|string, transaction_id: null|string}&StripeObject), crypto?: (object{amount_received?: int, amount_requested?: int, 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, fingerprint: null|string, 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, funding_source_group?: 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), momo?: (object{fingerprint: null|string, mandate?: string}&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), sequra?: (object{transaction_id: 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, location?: string, payment_reference: null|string, reader?: 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, return_code?: 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{buyer_id: null|string, 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, 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), link?: (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), retrieval_reference_number?: string, wallet?: (object{type: string}&StripeObject)}&StripeObject), carecredit?: (object{}&StripeObject), cashapp?: (object{buyer_id: null|string, cashtag: null|string, transaction_id: null|string}&StripeObject), crypto?: (object{amount_received?: int, amount_requested?: int, 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), getflex?: (object{}&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, fingerprint: null|string, 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, funding_source_group?: 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), momo?: (object{fingerprint: null|string, mandate?: string}&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), rakuten_pay?: (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), sequra?: (object{transaction_id: null|string}&StripeObject), sezzle?: (object{}&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, location?: string, payment_reference: null|string, reader?: 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, return_code?: 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. diff --git a/lib/Service/AccountService.php b/lib/Service/AccountService.php index 9540772b59..dab9c8731f 100644 --- a/lib/Service/AccountService.php +++ b/lib/Service/AccountService.php @@ -91,7 +91,7 @@ public function allPersons($parentId, $params = null, $opts = null) * the prefilled information during account onboarding. You can prefill any * information on the account. * - * @param null|array{account_token?: string, business_profile?: array{annual_revenue?: array{amount: int, currency: string, fiscal_year_end: string}, estimated_worker_count?: int, mcc?: string, minority_owned_business_designation?: string[], monthly_estimated_revenue?: array{amount: int, currency: string}, name?: string, product_description?: string, specified_commercial_transactions_act_url?: null|string, support_address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, support_email?: string, support_phone?: string, support_url?: null|string, url?: string}, business_type?: string, capabilities?: array{acss_debit_payments?: array{requested?: bool}, affirm_payments?: array{requested?: bool}, afterpay_clearpay_payments?: array{requested?: bool}, alma_payments?: array{requested?: bool}, amazon_pay_payments?: array{requested?: bool}, app_distribution?: array{requested?: bool}, au_becs_debit_payments?: array{requested?: bool}, automatic_indirect_tax?: array{requested?: bool}, bacs_debit_payments?: array{requested?: bool}, bancontact_payments?: array{requested?: bool}, bank_transfer_payments?: array{requested?: bool}, billie_payments?: array{requested?: bool}, bizum_payments?: array{requested?: bool}, blik_payments?: array{requested?: bool}, blik_recurring_payments?: array{requested?: bool}, boleto_payments?: array{requested?: bool}, card_issuing?: array{requested?: bool}, card_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}, cartes_bancaires_payments?: array{requested?: bool}, cashapp_payments?: array{requested?: bool}, crypto_payments?: array{requested?: bool}, eps_payments?: array{requested?: bool}, fpx_payments?: array{requested?: bool}, gb_bank_transfer_payments?: array{requested?: bool}, giropay_payments?: array{requested?: bool}, gopay_payments?: array{requested?: bool}, grabpay_payments?: array{requested?: bool}, id_bank_transfer_payments?: array{requested?: bool}, id_bank_transfer_payments_bca?: array{requested?: bool}, ideal_payments?: array{requested?: bool}, india_international_payments?: array{requested?: bool}, jcb_payments?: array{requested?: bool}, jp_bank_transfer_payments?: array{requested?: bool}, kakao_pay_payments?: array{requested?: bool}, klarna_payments?: array{requested?: bool}, konbini_payments?: array{requested?: bool}, kr_card_payments?: array{requested?: bool}, legacy_payments?: array{requested?: bool}, link_payments?: array{requested?: bool}, mb_way_payments?: array{requested?: bool}, mobilepay_payments?: array{requested?: bool}, multibanco_payments?: array{requested?: bool}, mx_bank_transfer_payments?: array{requested?: bool}, naver_pay_payments?: array{requested?: bool}, nz_bank_account_becs_debit_payments?: array{requested?: bool}, oxxo_payments?: array{requested?: bool}, p24_payments?: array{requested?: bool}, pay_by_bank_payments?: array{requested?: bool}, payco_payments?: array{requested?: bool}, paynow_payments?: array{requested?: bool}, paypal_payments?: array{requested?: bool}, paypay_payments?: array{requested?: bool}, payto_payments?: array{requested?: bool}, pix_payments?: array{requested?: bool}, promptpay_payments?: array{requested?: bool}, qris_payments?: array{requested?: bool}, rechnung_payments?: array{requested?: bool}, revolut_pay_payments?: array{requested?: bool}, samsung_pay_payments?: array{requested?: bool}, satispay_payments?: array{requested?: bool}, scalapay_payments?: array{requested?: bool}, sepa_bank_transfer_payments?: array{requested?: bool}, sepa_debit_payments?: array{requested?: bool}, sequra_payments?: array{requested?: bool}, shopeepay_payments?: array{requested?: bool}, sofort_payments?: array{requested?: bool}, stripe_balance_payments?: array{requested?: bool}, sunbit_payments?: array{requested?: bool}, swish_payments?: array{requested?: bool}, tax_reporting_us_1099_k?: array{requested?: bool}, tax_reporting_us_1099_misc?: array{requested?: bool}, transfers?: array{requested?: bool}, treasury?: array{requested?: bool}, treasury_evolve?: array{requested?: bool}, treasury_fifth_third?: array{requested?: bool}, treasury_goldman_sachs?: array{requested?: bool}, twint_payments?: array{requested?: bool}, upi_payments?: array{requested?: bool}, us_bank_account_ach_payments?: array{requested?: bool}, us_bank_transfer_payments?: array{requested?: bool}, zip_payments?: array{requested?: bool}}, company?: array{address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, address_kana?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}, address_kanji?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}, administrative_address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, directors_provided?: bool, directorship_declaration?: array{date?: int, ip?: string, user_agent?: string}, executives_provided?: bool, export_license_id?: string, export_purpose_code?: string, name?: string, name_kana?: string, name_kanji?: string, owners_provided?: bool, ownership_declaration?: array{date?: int, ip?: string, user_agent?: string}, ownership_exemption_reason?: null|string, phone?: string, principal_place_of_business?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, registration_date?: null|array{day: int, month: int, year: int}, registration_number?: string, representative_declaration?: array{date?: int, ip?: string, user_agent?: string}, structure?: null|string, tax_id?: string, tax_id_registrar?: string, vat_id?: string, verification?: array{document?: array{back?: string, front?: string}}}, controller?: array{application?: array{loss_liable: bool, onboarding_owner?: bool, pricing_controls?: bool}, dashboard?: array{type?: string}, fees?: array{payer?: string}, losses?: array{payments?: string}, requirement_collection?: string, stripe_dashboard?: array{type?: string}}, country?: string, default_currency?: string, documents?: array{bank_account_ownership_verification?: array{files?: string[]}, company_license?: array{files?: string[]}, company_memorandum_of_association?: array{files?: string[]}, company_ministerial_decree?: array{files?: string[]}, company_registration_verification?: array{files?: string[]}, company_tax_id_verification?: array{files?: string[]}, proof_of_address?: array{files?: string[]}, proof_of_ultimate_beneficial_ownership?: array{files?: string[], signer?: array{person?: string}}}, email?: string, expand?: string[], external_account?: array{object: string, account_holder_name?: string, account_holder_type?: string, account_number: string, country: string, currency?: string, routing_number?: string}|array{object: string, address_city?: string, address_country?: string, address_line1?: string, address_line2?: string, address_state?: string, address_zip?: string, currency?: string, cvc?: string, default_for_currency?: bool, exp_month: int, exp_year: int, metadata?: array, name?: string, number: string}|array{object: string, currency?: string, token: string}|string, groups?: array{payments_pricing?: null|string}, individual?: array{address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, address_kana?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}, address_kanji?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}, birth_address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, dob?: null|array{day: int, month: int, year: int}, email?: string, first_name?: string, first_name_kana?: string, first_name_kanji?: string, full_name_aliases?: null|string[], gender?: string, id_number?: string, id_number_secondary?: string, last_name?: string, last_name_kana?: string, last_name_kanji?: string, maiden_name?: string, metadata?: null|array, phone?: string, political_exposure?: string, registered_address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, relationship?: array{director?: bool, executive?: bool, owner?: bool, percent_ownership?: null|float, title?: string}, self_reported_income?: array{amount: int, currency: string}, self_reported_monthly_housing_payment?: array{amount: int, currency: string}, ssn_last_4?: string, verification?: array{additional_document?: array{back?: string, front?: string}, document?: array{back?: string, front?: string}}}, metadata?: null|array, risk_controls?: array{charges?: array{pause_requested?: bool}, payouts?: array{pause_requested?: bool}}, settings?: array{bacs_debit_payments?: array{display_name?: string}, bank_bca_onboarding?: array{account_holder_name?: string, business_account_number?: string}, branding?: array{icon?: string, logo?: string, primary_color?: string, secondary_color?: string}, capital?: array{payout_destination?: array, payout_destination_selector?: array}, card_issuing?: array{tos_acceptance?: array{date?: int, ip?: string, user_agent?: null|string}}, card_payments?: array{decline_on?: array{avs_failure?: bool, cvc_failure?: bool}, statement_descriptor_prefix?: string, statement_descriptor_prefix_kana?: null|string, statement_descriptor_prefix_kanji?: null|string}, invoices?: array{hosted_payment_method_save?: string}, payments?: array{email_customers_on_successful_payment?: bool, statement_descriptor?: string, statement_descriptor_kana?: string, statement_descriptor_kanji?: string}, payouts?: array{debit_negative_balances?: bool, schedule?: array{delay_days?: int|string, interval?: string, monthly_anchor?: int, monthly_payout_days?: int[], weekly_anchor?: string, weekly_payout_days?: string[]}, statement_descriptor?: string}, paypay_payments?: array{additional_files?: string[], goods_type?: string, site?: array{accessible?: array{}, in_development?: array{password: string, username?: string}, restricted?: array{payment_flow_file?: string}, type?: string}}, sepa_debit_payments?: array{creditor_id?: string}, smart_disputes?: array{auto_respond?: array{preference?: string}}, tax_forms?: array{consented_to_paperless_delivery?: bool}, treasury?: array{tos_acceptance?: array{date?: int, ip?: string, user_agent?: null|string}}, wechat_pay_payments?: array{mobile_web_domains?: null|string[]}}, tos_acceptance?: array{date?: int, ip?: string, service_agreement?: string, user_agent?: string}, type?: string} $params + * @param null|array{account_token?: string, business_profile?: array{annual_revenue?: array{amount: int, currency: string, fiscal_year_end: string}, estimated_worker_count?: int, mcc?: string, minority_owned_business_designation?: string[], monthly_estimated_revenue?: array{amount: int, currency: string}, name?: string, product_description?: string, specified_commercial_transactions_act_url?: null|string, support_address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, support_email?: string, support_phone?: string, support_url?: null|string, url?: string}, business_type?: string, capabilities?: array{acss_debit_payments?: array{requested?: bool}, affirm_payments?: array{requested?: bool}, afterpay_clearpay_payments?: array{requested?: bool}, alma_payments?: array{requested?: bool}, amazon_pay_payments?: array{requested?: bool}, app_distribution?: array{requested?: bool}, au_becs_debit_payments?: array{requested?: bool}, automatic_indirect_tax?: array{requested?: bool}, bacs_debit_payments?: array{requested?: bool}, bancontact_payments?: array{requested?: bool}, bank_transfer_payments?: array{requested?: bool}, billie_payments?: array{requested?: bool}, bizum_payments?: array{requested?: bool}, blik_payments?: array{requested?: bool}, blik_recurring_payments?: array{requested?: bool}, boleto_payments?: array{requested?: bool}, card_issuing?: array{requested?: bool}, card_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}, cartes_bancaires_payments?: array{requested?: bool}, cashapp_payments?: array{requested?: bool}, crypto_payments?: array{requested?: bool}, eps_payments?: array{requested?: bool}, fpx_payments?: array{requested?: bool}, gb_bank_transfer_payments?: array{requested?: bool}, giropay_payments?: array{requested?: bool}, gopay_payments?: array{requested?: bool}, grabpay_payments?: array{requested?: bool}, id_bank_transfer_payments?: array{requested?: bool}, id_bank_transfer_payments_bca?: array{requested?: bool}, ideal_payments?: array{requested?: bool}, india_international_payments?: array{requested?: bool}, jcb_payments?: array{requested?: bool}, jp_bank_transfer_payments?: array{requested?: bool}, kakao_pay_payments?: array{requested?: bool}, klarna_payments?: array{requested?: bool}, konbini_payments?: array{requested?: bool}, kr_card_payments?: array{requested?: bool}, legacy_payments?: array{requested?: bool}, link_payments?: array{requested?: bool}, mb_way_payments?: array{requested?: bool}, mobilepay_payments?: array{requested?: bool}, multibanco_payments?: array{requested?: bool}, mx_bank_transfer_payments?: array{requested?: bool}, naver_pay_payments?: array{requested?: bool}, nz_bank_account_becs_debit_payments?: array{requested?: bool}, oxxo_payments?: array{requested?: bool}, p24_payments?: array{requested?: bool}, pay_by_bank_payments?: array{requested?: bool}, payco_payments?: array{requested?: bool}, paynow_payments?: array{requested?: bool}, paypal_payments?: array{requested?: bool}, paypay_payments?: array{requested?: bool}, payto_payments?: array{requested?: bool}, pix_payments?: array{requested?: bool}, promptpay_payments?: array{requested?: bool}, qris_payments?: array{requested?: bool}, rechnung_payments?: array{requested?: bool}, revolut_pay_payments?: array{requested?: bool}, samsung_pay_payments?: array{requested?: bool}, satispay_payments?: array{requested?: bool}, scalapay_payments?: array{requested?: bool}, sepa_bank_transfer_payments?: array{requested?: bool}, sepa_debit_payments?: array{requested?: bool}, sequra_payments?: array{requested?: bool}, shopeepay_payments?: array{requested?: bool}, sofort_payments?: array{requested?: bool}, stripe_balance_payments?: array{requested?: bool}, sunbit_payments?: array{requested?: bool}, swish_payments?: array{requested?: bool}, tax_reporting_us_1099_k?: array{requested?: bool}, tax_reporting_us_1099_misc?: array{requested?: bool}, transfers?: array{requested?: bool}, treasury?: array{requested?: bool}, treasury_evolve?: array{requested?: bool}, treasury_fifth_third?: array{requested?: bool}, treasury_goldman_sachs?: array{requested?: bool}, twint_payments?: array{requested?: bool}, upi_payments?: array{requested?: bool}, us_bank_account_ach_payments?: array{requested?: bool}, us_bank_transfer_payments?: array{requested?: bool}, zip_payments?: array{requested?: bool}}, company?: array{address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, address_kana?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}, address_kanji?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}, administrative_address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, directors_provided?: bool, directorship_declaration?: array{date?: int, ip?: string, user_agent?: string}, executives_provided?: bool, export_license_id?: string, export_purpose_code?: string, name?: string, name_kana?: string, name_kanji?: string, owners_provided?: bool, ownership_declaration?: array{date?: int, ip?: string, user_agent?: string}, ownership_exemption_reason?: null|string, phone?: string, principal_place_of_business?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, registration_date?: null|array{day: int, month: int, year: int}, registration_number?: string, representative_declaration?: array{date?: int, ip?: string, user_agent?: string}, structure?: null|string, tax_id?: string, tax_id_registrar?: string, vat_id?: string, verification?: array{document?: array{back?: string, front?: string}}}, controller?: array{application?: array{loss_liable: bool, onboarding_owner?: bool, pricing_controls?: bool}, dashboard?: array{type?: string}, fees?: array{payer?: string}, losses?: array{payments?: string}, requirement_collection?: string, stripe_dashboard?: array{type?: string}}, country?: string, default_currency?: string, documents?: array{bank_account_ownership_verification?: array{files?: string[]}, company_license?: array{files?: string[]}, company_memorandum_of_association?: array{files?: string[]}, company_ministerial_decree?: array{files?: string[]}, company_registration_verification?: array{files?: string[]}, company_tax_id_verification?: array{files?: string[]}, proof_of_address?: array{files?: string[]}, proof_of_ultimate_beneficial_ownership?: array{files?: string[], signer?: array{person?: string}}}, email?: string, expand?: string[], external_account?: array{object: string, account_holder_name?: string, account_holder_type?: string, account_number: string, country: string, currency?: string, routing_number?: string}|array{object: string, address_city?: string, address_country?: string, address_line1?: string, address_line2?: string, address_state?: string, address_zip?: string, currency?: string, cvc?: string, default_for_currency?: bool, exp_month: int, exp_year: int, metadata?: array, name?: string, number: string}|array{object: string, currency?: string, token: string}|string, groups?: array{payments_pricing?: null|string}, individual?: array{address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, address_kana?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}, address_kanji?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}, birth_address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, dob?: null|array{day: int, month: int, year: int}, email?: string, first_name?: string, first_name_kana?: string, first_name_kanji?: string, full_name_aliases?: null|string[], gender?: string, id_number?: string, id_number_secondary?: string, last_name?: string, last_name_kana?: string, last_name_kanji?: string, maiden_name?: string, metadata?: null|array, phone?: string, political_exposure?: string, registered_address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, relationship?: array{director?: bool, executive?: bool, owner?: bool, percent_ownership?: null|float, title?: string}, self_reported_income?: array{amount: int, currency: string}, self_reported_monthly_housing_payment?: array{amount: int, currency: string}, ssn_last_4?: string, verification?: array{additional_document?: array{back?: string, front?: string}, document?: array{back?: string, front?: string}}}, metadata?: null|array, risk_controls?: array{charges?: array{pause_requested?: bool}, payouts?: array{pause_requested?: bool}}, settings?: array{bacs_debit_payments?: array{display_name?: string}, bank_bca_onboarding?: array{account_holder_name?: string, business_account_number?: string}, branding?: array{icon?: string, logo?: string, primary_color?: string, secondary_color?: string}, capital?: array{payout_destination?: array, payout_destination_selector?: array}, card_issuing?: array{tos_acceptance?: array{date?: int, ip?: string, user_agent?: null|string}}, card_payments?: array{decline_on?: array{avs_failure?: bool, cvc_failure?: bool}, statement_descriptor_prefix?: string, statement_descriptor_prefix_kana?: null|string, statement_descriptor_prefix_kanji?: null|string}, invoices?: array{hosted_payment_method_save?: string}, payments?: array{email_customers_on_successful_payment?: bool, statement_descriptor?: string, statement_descriptor_kana?: string, statement_descriptor_kanji?: string}, payouts?: array{debit_negative_balances?: bool, schedule?: array{delay_days?: int|string, interval?: string, monthly_anchor?: int, monthly_payout_days?: int[], weekly_anchor?: string, weekly_payout_days?: string[]}, statement_descriptor?: string}, paypay_payments?: array{additional_files?: string[], goods_type?: string, site?: array{accessible?: array{}, in_development?: array{password: string, username?: string}, restricted?: array{payment_flow_file?: string}, type?: string}}, sepa_debit_payments?: array{creditor_id?: string}, smart_disputes?: array{auto_respond?: array{preference?: string}}, tax_forms?: array{consented_to_paperless_delivery?: bool}, treasury?: array{tos_acceptance?: array{date?: int, ip?: string, user_agent?: null|string}}, wechat_pay_mobile_web_payments?: array{domains?: null|string[]}}, tos_acceptance?: array{date?: int, ip?: string, service_agreement?: string, user_agent?: string}, type?: string} $params * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @return \Stripe\Account @@ -353,7 +353,7 @@ public function unreject($id, $params = null, $opts = null) * more about updating accounts. * * @param string $id - * @param null|array{account_token?: string, business_profile?: array{annual_revenue?: array{amount: int, currency: string, fiscal_year_end: string}, estimated_worker_count?: int, mcc?: string, minority_owned_business_designation?: string[], monthly_estimated_revenue?: array{amount: int, currency: string}, name?: string, product_description?: string, specified_commercial_transactions_act_url?: null|string, support_address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, support_email?: string, support_phone?: string, support_url?: null|string, url?: string}, business_type?: string, capabilities?: array{acss_debit_payments?: array{requested?: bool}, affirm_payments?: array{requested?: bool}, afterpay_clearpay_payments?: array{requested?: bool}, alma_payments?: array{requested?: bool}, amazon_pay_payments?: array{requested?: bool}, app_distribution?: array{requested?: bool}, au_becs_debit_payments?: array{requested?: bool}, automatic_indirect_tax?: array{requested?: bool}, bacs_debit_payments?: array{requested?: bool}, bancontact_payments?: array{requested?: bool}, bank_transfer_payments?: array{requested?: bool}, billie_payments?: array{requested?: bool}, bizum_payments?: array{requested?: bool}, blik_payments?: array{requested?: bool}, blik_recurring_payments?: array{requested?: bool}, boleto_payments?: array{requested?: bool}, card_issuing?: array{requested?: bool}, card_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}, cartes_bancaires_payments?: array{requested?: bool}, cashapp_payments?: array{requested?: bool}, crypto_payments?: array{requested?: bool}, eps_payments?: array{requested?: bool}, fpx_payments?: array{requested?: bool}, gb_bank_transfer_payments?: array{requested?: bool}, giropay_payments?: array{requested?: bool}, gopay_payments?: array{requested?: bool}, grabpay_payments?: array{requested?: bool}, id_bank_transfer_payments?: array{requested?: bool}, id_bank_transfer_payments_bca?: array{requested?: bool}, ideal_payments?: array{requested?: bool}, india_international_payments?: array{requested?: bool}, jcb_payments?: array{requested?: bool}, jp_bank_transfer_payments?: array{requested?: bool}, kakao_pay_payments?: array{requested?: bool}, klarna_payments?: array{requested?: bool}, konbini_payments?: array{requested?: bool}, kr_card_payments?: array{requested?: bool}, legacy_payments?: array{requested?: bool}, link_payments?: array{requested?: bool}, mb_way_payments?: array{requested?: bool}, mobilepay_payments?: array{requested?: bool}, multibanco_payments?: array{requested?: bool}, mx_bank_transfer_payments?: array{requested?: bool}, naver_pay_payments?: array{requested?: bool}, nz_bank_account_becs_debit_payments?: array{requested?: bool}, oxxo_payments?: array{requested?: bool}, p24_payments?: array{requested?: bool}, pay_by_bank_payments?: array{requested?: bool}, payco_payments?: array{requested?: bool}, paynow_payments?: array{requested?: bool}, paypal_payments?: array{requested?: bool}, paypay_payments?: array{requested?: bool}, payto_payments?: array{requested?: bool}, pix_payments?: array{requested?: bool}, promptpay_payments?: array{requested?: bool}, qris_payments?: array{requested?: bool}, rechnung_payments?: array{requested?: bool}, revolut_pay_payments?: array{requested?: bool}, samsung_pay_payments?: array{requested?: bool}, satispay_payments?: array{requested?: bool}, scalapay_payments?: array{requested?: bool}, sepa_bank_transfer_payments?: array{requested?: bool}, sepa_debit_payments?: array{requested?: bool}, sequra_payments?: array{requested?: bool}, shopeepay_payments?: array{requested?: bool}, sofort_payments?: array{requested?: bool}, stripe_balance_payments?: array{requested?: bool}, sunbit_payments?: array{requested?: bool}, swish_payments?: array{requested?: bool}, tax_reporting_us_1099_k?: array{requested?: bool}, tax_reporting_us_1099_misc?: array{requested?: bool}, transfers?: array{requested?: bool}, treasury?: array{requested?: bool}, treasury_evolve?: array{requested?: bool}, treasury_fifth_third?: array{requested?: bool}, treasury_goldman_sachs?: array{requested?: bool}, twint_payments?: array{requested?: bool}, upi_payments?: array{requested?: bool}, us_bank_account_ach_payments?: array{requested?: bool}, us_bank_transfer_payments?: array{requested?: bool}, zip_payments?: array{requested?: bool}}, company?: array{address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, address_kana?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}, address_kanji?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}, administrative_address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, directors_provided?: bool, directorship_declaration?: array{date?: int, ip?: string, user_agent?: string}, executives_provided?: bool, export_license_id?: string, export_purpose_code?: string, name?: string, name_kana?: string, name_kanji?: string, owners_provided?: bool, ownership_declaration?: array{date?: int, ip?: string, user_agent?: string}, ownership_exemption_reason?: null|string, phone?: string, principal_place_of_business?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, registration_date?: null|array{day: int, month: int, year: int}, registration_number?: string, representative_declaration?: array{date?: int, ip?: string, user_agent?: string}, structure?: null|string, tax_id?: string, tax_id_registrar?: string, vat_id?: string, verification?: array{document?: array{back?: string, front?: string}}}, default_currency?: string, documents?: array{bank_account_ownership_verification?: array{files?: string[]}, company_license?: array{files?: string[]}, company_memorandum_of_association?: array{files?: string[]}, company_ministerial_decree?: array{files?: string[]}, company_registration_verification?: array{files?: string[]}, company_tax_id_verification?: array{files?: string[]}, proof_of_address?: array{files?: string[]}, proof_of_registration?: array{files?: string[], signer?: array{person?: string}}, proof_of_ultimate_beneficial_ownership?: array{files?: string[], signer?: array{person?: string}}}, email?: string, expand?: string[], external_account?: null|array{object: string, account_holder_name?: string, account_holder_type?: string, account_number: string, country: string, currency?: string, routing_number?: string}|array{object: string, address_city?: string, address_country?: string, address_line1?: string, address_line2?: string, address_state?: string, address_zip?: string, currency?: string, cvc?: string, default_for_currency?: bool, exp_month: int, exp_year: int, metadata?: array, name?: string, number: string}|array{object: string, currency?: string, token: string}|string, groups?: array{payments_pricing?: null|string}, individual?: array{address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, address_kana?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}, address_kanji?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}, birth_address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, dob?: null|array{day: int, month: int, year: int}, email?: string, first_name?: string, first_name_kana?: string, first_name_kanji?: string, full_name_aliases?: null|string[], gender?: string, id_number?: string, id_number_secondary?: string, last_name?: string, last_name_kana?: string, last_name_kanji?: string, maiden_name?: string, metadata?: null|array, phone?: string, political_exposure?: string, registered_address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, relationship?: array{director?: bool, executive?: bool, owner?: bool, percent_ownership?: null|float, title?: string}, self_reported_income?: array{amount: int, currency: string}, self_reported_monthly_housing_payment?: array{amount: int, currency: string}, ssn_last_4?: string, verification?: array{additional_document?: array{back?: string, front?: string}, document?: array{back?: string, front?: string}}}, metadata?: null|array, risk_controls?: array{charges?: array{pause_requested?: bool}, payouts?: array{pause_requested?: bool}}, settings?: array{bacs_debit_payments?: array{display_name?: string}, bank_bca_onboarding?: array{account_holder_name?: string, business_account_number?: string}, branding?: array{icon?: string, logo?: string, primary_color?: string, secondary_color?: string}, capital?: array{excluded_payout_destinations?: null|string[], payout_destination?: array, payout_destination_selector?: array}, card_issuing?: array{tos_acceptance?: array{date?: int, ip?: string, user_agent?: null|string}}, card_payments?: array{decline_on?: array{avs_failure?: bool, cvc_failure?: bool}, statement_descriptor_prefix?: string, statement_descriptor_prefix_kana?: null|string, statement_descriptor_prefix_kanji?: null|string}, invoices?: array{default_account_tax_ids?: null|string[], hosted_payment_method_save?: string}, payments?: array{email_customers_on_successful_payment?: bool, statement_descriptor?: string, statement_descriptor_kana?: string, statement_descriptor_kanji?: string}, payouts?: array{debit_negative_balances?: bool, schedule?: array{delay_days?: int|string, interval?: string, monthly_anchor?: int, monthly_payout_days?: int[], weekly_anchor?: string, weekly_payout_days?: string[]}, statement_descriptor?: string}, paypay_payments?: array{additional_files?: string[], goods_type?: string, site?: array{accessible?: array{}, in_development?: array{password: string, username?: string}, restricted?: array{payment_flow_file?: string}, type?: string}}, sepa_debit_payments?: array{creditor_id?: string}, smart_disputes?: array{auto_respond?: array{preference?: string}}, tax_forms?: array{consented_to_paperless_delivery?: bool}, treasury?: array{tos_acceptance?: array{date?: int, ip?: string, user_agent?: null|string}}, wechat_pay_payments?: array{mobile_web_domains?: null|string[]}}, tos_acceptance?: array{date?: int, ip?: string, service_agreement?: string, user_agent?: string}} $params + * @param null|array{account_token?: string, business_profile?: array{annual_revenue?: array{amount: int, currency: string, fiscal_year_end: string}, estimated_worker_count?: int, mcc?: string, minority_owned_business_designation?: string[], monthly_estimated_revenue?: array{amount: int, currency: string}, name?: string, product_description?: string, specified_commercial_transactions_act_url?: null|string, support_address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, support_email?: string, support_phone?: string, support_url?: null|string, url?: string}, business_type?: string, capabilities?: array{acss_debit_payments?: array{requested?: bool}, affirm_payments?: array{requested?: bool}, afterpay_clearpay_payments?: array{requested?: bool}, alma_payments?: array{requested?: bool}, amazon_pay_payments?: array{requested?: bool}, app_distribution?: array{requested?: bool}, au_becs_debit_payments?: array{requested?: bool}, automatic_indirect_tax?: array{requested?: bool}, bacs_debit_payments?: array{requested?: bool}, bancontact_payments?: array{requested?: bool}, bank_transfer_payments?: array{requested?: bool}, billie_payments?: array{requested?: bool}, bizum_payments?: array{requested?: bool}, blik_payments?: array{requested?: bool}, blik_recurring_payments?: array{requested?: bool}, boleto_payments?: array{requested?: bool}, card_issuing?: array{requested?: bool}, card_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}, cartes_bancaires_payments?: array{requested?: bool}, cashapp_payments?: array{requested?: bool}, crypto_payments?: array{requested?: bool}, eps_payments?: array{requested?: bool}, fpx_payments?: array{requested?: bool}, gb_bank_transfer_payments?: array{requested?: bool}, giropay_payments?: array{requested?: bool}, gopay_payments?: array{requested?: bool}, grabpay_payments?: array{requested?: bool}, id_bank_transfer_payments?: array{requested?: bool}, id_bank_transfer_payments_bca?: array{requested?: bool}, ideal_payments?: array{requested?: bool}, india_international_payments?: array{requested?: bool}, jcb_payments?: array{requested?: bool}, jp_bank_transfer_payments?: array{requested?: bool}, kakao_pay_payments?: array{requested?: bool}, klarna_payments?: array{requested?: bool}, konbini_payments?: array{requested?: bool}, kr_card_payments?: array{requested?: bool}, legacy_payments?: array{requested?: bool}, link_payments?: array{requested?: bool}, mb_way_payments?: array{requested?: bool}, mobilepay_payments?: array{requested?: bool}, multibanco_payments?: array{requested?: bool}, mx_bank_transfer_payments?: array{requested?: bool}, naver_pay_payments?: array{requested?: bool}, nz_bank_account_becs_debit_payments?: array{requested?: bool}, oxxo_payments?: array{requested?: bool}, p24_payments?: array{requested?: bool}, pay_by_bank_payments?: array{requested?: bool}, payco_payments?: array{requested?: bool}, paynow_payments?: array{requested?: bool}, paypal_payments?: array{requested?: bool}, paypay_payments?: array{requested?: bool}, payto_payments?: array{requested?: bool}, pix_payments?: array{requested?: bool}, promptpay_payments?: array{requested?: bool}, qris_payments?: array{requested?: bool}, rechnung_payments?: array{requested?: bool}, revolut_pay_payments?: array{requested?: bool}, samsung_pay_payments?: array{requested?: bool}, satispay_payments?: array{requested?: bool}, scalapay_payments?: array{requested?: bool}, sepa_bank_transfer_payments?: array{requested?: bool}, sepa_debit_payments?: array{requested?: bool}, sequra_payments?: array{requested?: bool}, shopeepay_payments?: array{requested?: bool}, sofort_payments?: array{requested?: bool}, stripe_balance_payments?: array{requested?: bool}, sunbit_payments?: array{requested?: bool}, swish_payments?: array{requested?: bool}, tax_reporting_us_1099_k?: array{requested?: bool}, tax_reporting_us_1099_misc?: array{requested?: bool}, transfers?: array{requested?: bool}, treasury?: array{requested?: bool}, treasury_evolve?: array{requested?: bool}, treasury_fifth_third?: array{requested?: bool}, treasury_goldman_sachs?: array{requested?: bool}, twint_payments?: array{requested?: bool}, upi_payments?: array{requested?: bool}, us_bank_account_ach_payments?: array{requested?: bool}, us_bank_transfer_payments?: array{requested?: bool}, zip_payments?: array{requested?: bool}}, company?: array{address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, address_kana?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}, address_kanji?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}, administrative_address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, directors_provided?: bool, directorship_declaration?: array{date?: int, ip?: string, user_agent?: string}, executives_provided?: bool, export_license_id?: string, export_purpose_code?: string, name?: string, name_kana?: string, name_kanji?: string, owners_provided?: bool, ownership_declaration?: array{date?: int, ip?: string, user_agent?: string}, ownership_exemption_reason?: null|string, phone?: string, principal_place_of_business?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, registration_date?: null|array{day: int, month: int, year: int}, registration_number?: string, representative_declaration?: array{date?: int, ip?: string, user_agent?: string}, structure?: null|string, tax_id?: string, tax_id_registrar?: string, vat_id?: string, verification?: array{document?: array{back?: string, front?: string}}}, default_currency?: string, documents?: array{bank_account_ownership_verification?: array{files?: string[]}, company_license?: array{files?: string[]}, company_memorandum_of_association?: array{files?: string[]}, company_ministerial_decree?: array{files?: string[]}, company_registration_verification?: array{files?: string[]}, company_tax_id_verification?: array{files?: string[]}, proof_of_address?: array{files?: string[]}, proof_of_registration?: array{files?: string[], signer?: array{person?: string}}, proof_of_ultimate_beneficial_ownership?: array{files?: string[], signer?: array{person?: string}}}, email?: string, expand?: string[], external_account?: null|array{object: string, account_holder_name?: string, account_holder_type?: string, account_number: string, country: string, currency?: string, routing_number?: string}|array{object: string, address_city?: string, address_country?: string, address_line1?: string, address_line2?: string, address_state?: string, address_zip?: string, currency?: string, cvc?: string, default_for_currency?: bool, exp_month: int, exp_year: int, metadata?: array, name?: string, number: string}|array{object: string, currency?: string, token: string}|string, groups?: array{payments_pricing?: null|string}, individual?: array{address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, address_kana?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}, address_kanji?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}, birth_address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, dob?: null|array{day: int, month: int, year: int}, email?: string, first_name?: string, first_name_kana?: string, first_name_kanji?: string, full_name_aliases?: null|string[], gender?: string, id_number?: string, id_number_secondary?: string, last_name?: string, last_name_kana?: string, last_name_kanji?: string, maiden_name?: string, metadata?: null|array, phone?: string, political_exposure?: string, registered_address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, relationship?: array{director?: bool, executive?: bool, owner?: bool, percent_ownership?: null|float, title?: string}, self_reported_income?: array{amount: int, currency: string}, self_reported_monthly_housing_payment?: array{amount: int, currency: string}, ssn_last_4?: string, verification?: array{additional_document?: array{back?: string, front?: string}, document?: array{back?: string, front?: string}}}, metadata?: null|array, risk_controls?: array{charges?: array{pause_requested?: bool}, payouts?: array{pause_requested?: bool}}, settings?: array{bacs_debit_payments?: array{display_name?: string}, bank_bca_onboarding?: array{account_holder_name?: string, business_account_number?: string}, branding?: array{icon?: string, logo?: string, primary_color?: string, secondary_color?: string}, capital?: array{excluded_payout_destinations?: null|string[], payout_destination?: array, payout_destination_selector?: array}, card_issuing?: array{tos_acceptance?: array{date?: int, ip?: string, user_agent?: null|string}}, card_payments?: array{decline_on?: array{avs_failure?: bool, cvc_failure?: bool}, statement_descriptor_prefix?: string, statement_descriptor_prefix_kana?: null|string, statement_descriptor_prefix_kanji?: null|string}, invoices?: array{default_account_tax_ids?: null|string[], hosted_payment_method_save?: string}, payments?: array{email_customers_on_successful_payment?: bool, statement_descriptor?: string, statement_descriptor_kana?: string, statement_descriptor_kanji?: string}, payouts?: array{debit_negative_balances?: bool, schedule?: array{delay_days?: int|string, interval?: string, monthly_anchor?: int, monthly_payout_days?: int[], weekly_anchor?: string, weekly_payout_days?: string[]}, statement_descriptor?: string}, paypay_payments?: array{additional_files?: string[], goods_type?: string, site?: array{accessible?: array{}, in_development?: array{password: string, username?: string}, restricted?: array{payment_flow_file?: string}, type?: string}}, sepa_debit_payments?: array{creditor_id?: string}, smart_disputes?: array{auto_respond?: array{preference?: string}}, tax_forms?: array{consented_to_paperless_delivery?: bool}, treasury?: array{tos_acceptance?: array{date?: int, ip?: string, user_agent?: null|string}}, wechat_pay_mobile_web_payments?: array{domains?: null|string[]}}, tos_acceptance?: array{date?: int, ip?: string, service_agreement?: string, user_agent?: string}} $params * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @return \Stripe\Account @@ -430,7 +430,7 @@ public function updatePerson($parentId, $id, $params = null, $opts = null) /** * Serializes an Account create request into a batch job JSONL line. * - * @param null|array{account_token?: string, business_profile?: array{annual_revenue?: array{amount: int, currency: string, fiscal_year_end: string}, estimated_worker_count?: int, mcc?: string, minority_owned_business_designation?: string[], monthly_estimated_revenue?: array{amount: int, currency: string}, name?: string, product_description?: string, specified_commercial_transactions_act_url?: null|string, support_address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, support_email?: string, support_phone?: string, support_url?: null|string, url?: string}, business_type?: string, capabilities?: array{acss_debit_payments?: array{requested?: bool}, affirm_payments?: array{requested?: bool}, afterpay_clearpay_payments?: array{requested?: bool}, alma_payments?: array{requested?: bool}, amazon_pay_payments?: array{requested?: bool}, app_distribution?: array{requested?: bool}, au_becs_debit_payments?: array{requested?: bool}, automatic_indirect_tax?: array{requested?: bool}, bacs_debit_payments?: array{requested?: bool}, bancontact_payments?: array{requested?: bool}, bank_transfer_payments?: array{requested?: bool}, billie_payments?: array{requested?: bool}, bizum_payments?: array{requested?: bool}, blik_payments?: array{requested?: bool}, blik_recurring_payments?: array{requested?: bool}, boleto_payments?: array{requested?: bool}, card_issuing?: array{requested?: bool}, card_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}, cartes_bancaires_payments?: array{requested?: bool}, cashapp_payments?: array{requested?: bool}, crypto_payments?: array{requested?: bool}, eps_payments?: array{requested?: bool}, fpx_payments?: array{requested?: bool}, gb_bank_transfer_payments?: array{requested?: bool}, giropay_payments?: array{requested?: bool}, gopay_payments?: array{requested?: bool}, grabpay_payments?: array{requested?: bool}, id_bank_transfer_payments?: array{requested?: bool}, id_bank_transfer_payments_bca?: array{requested?: bool}, ideal_payments?: array{requested?: bool}, india_international_payments?: array{requested?: bool}, jcb_payments?: array{requested?: bool}, jp_bank_transfer_payments?: array{requested?: bool}, kakao_pay_payments?: array{requested?: bool}, klarna_payments?: array{requested?: bool}, konbini_payments?: array{requested?: bool}, kr_card_payments?: array{requested?: bool}, legacy_payments?: array{requested?: bool}, link_payments?: array{requested?: bool}, mb_way_payments?: array{requested?: bool}, mobilepay_payments?: array{requested?: bool}, multibanco_payments?: array{requested?: bool}, mx_bank_transfer_payments?: array{requested?: bool}, naver_pay_payments?: array{requested?: bool}, nz_bank_account_becs_debit_payments?: array{requested?: bool}, oxxo_payments?: array{requested?: bool}, p24_payments?: array{requested?: bool}, pay_by_bank_payments?: array{requested?: bool}, payco_payments?: array{requested?: bool}, paynow_payments?: array{requested?: bool}, paypal_payments?: array{requested?: bool}, paypay_payments?: array{requested?: bool}, payto_payments?: array{requested?: bool}, pix_payments?: array{requested?: bool}, promptpay_payments?: array{requested?: bool}, qris_payments?: array{requested?: bool}, rechnung_payments?: array{requested?: bool}, revolut_pay_payments?: array{requested?: bool}, samsung_pay_payments?: array{requested?: bool}, satispay_payments?: array{requested?: bool}, scalapay_payments?: array{requested?: bool}, sepa_bank_transfer_payments?: array{requested?: bool}, sepa_debit_payments?: array{requested?: bool}, sequra_payments?: array{requested?: bool}, shopeepay_payments?: array{requested?: bool}, sofort_payments?: array{requested?: bool}, stripe_balance_payments?: array{requested?: bool}, sunbit_payments?: array{requested?: bool}, swish_payments?: array{requested?: bool}, tax_reporting_us_1099_k?: array{requested?: bool}, tax_reporting_us_1099_misc?: array{requested?: bool}, transfers?: array{requested?: bool}, treasury?: array{requested?: bool}, treasury_evolve?: array{requested?: bool}, treasury_fifth_third?: array{requested?: bool}, treasury_goldman_sachs?: array{requested?: bool}, twint_payments?: array{requested?: bool}, upi_payments?: array{requested?: bool}, us_bank_account_ach_payments?: array{requested?: bool}, us_bank_transfer_payments?: array{requested?: bool}, zip_payments?: array{requested?: bool}}, company?: array{address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, address_kana?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}, address_kanji?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}, administrative_address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, directors_provided?: bool, directorship_declaration?: array{date?: int, ip?: string, user_agent?: string}, executives_provided?: bool, export_license_id?: string, export_purpose_code?: string, name?: string, name_kana?: string, name_kanji?: string, owners_provided?: bool, ownership_declaration?: array{date?: int, ip?: string, user_agent?: string}, ownership_exemption_reason?: null|string, phone?: string, principal_place_of_business?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, registration_date?: null|array{day: int, month: int, year: int}, registration_number?: string, representative_declaration?: array{date?: int, ip?: string, user_agent?: string}, structure?: null|string, tax_id?: string, tax_id_registrar?: string, vat_id?: string, verification?: array{document?: array{back?: string, front?: string}}}, controller?: array{application?: array{loss_liable: bool, onboarding_owner?: bool, pricing_controls?: bool}, dashboard?: array{type?: string}, fees?: array{payer?: string}, losses?: array{payments?: string}, requirement_collection?: string, stripe_dashboard?: array{type?: string}}, country?: string, default_currency?: string, documents?: array{bank_account_ownership_verification?: array{files?: string[]}, company_license?: array{files?: string[]}, company_memorandum_of_association?: array{files?: string[]}, company_ministerial_decree?: array{files?: string[]}, company_registration_verification?: array{files?: string[]}, company_tax_id_verification?: array{files?: string[]}, proof_of_address?: array{files?: string[]}, proof_of_ultimate_beneficial_ownership?: array{files?: string[], signer?: array{person?: string}}}, email?: string, expand?: string[], external_account?: array{object: string, account_holder_name?: string, account_holder_type?: string, account_number: string, country: string, currency?: string, routing_number?: string}|array{object: string, address_city?: string, address_country?: string, address_line1?: string, address_line2?: string, address_state?: string, address_zip?: string, currency?: string, cvc?: string, default_for_currency?: bool, exp_month: int, exp_year: int, metadata?: array, name?: string, number: string}|array{object: string, currency?: string, token: string}|string, groups?: array{payments_pricing?: null|string}, individual?: array{address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, address_kana?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}, address_kanji?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}, birth_address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, dob?: null|array{day: int, month: int, year: int}, email?: string, first_name?: string, first_name_kana?: string, first_name_kanji?: string, full_name_aliases?: null|string[], gender?: string, id_number?: string, id_number_secondary?: string, last_name?: string, last_name_kana?: string, last_name_kanji?: string, maiden_name?: string, metadata?: null|array, phone?: string, political_exposure?: string, registered_address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, relationship?: array{director?: bool, executive?: bool, owner?: bool, percent_ownership?: null|float, title?: string}, self_reported_income?: array{amount: int, currency: string}, self_reported_monthly_housing_payment?: array{amount: int, currency: string}, ssn_last_4?: string, verification?: array{additional_document?: array{back?: string, front?: string}, document?: array{back?: string, front?: string}}}, metadata?: null|array, risk_controls?: array{charges?: array{pause_requested?: bool}, payouts?: array{pause_requested?: bool}}, settings?: array{bacs_debit_payments?: array{display_name?: string}, bank_bca_onboarding?: array{account_holder_name?: string, business_account_number?: string}, branding?: array{icon?: string, logo?: string, primary_color?: string, secondary_color?: string}, capital?: array{payout_destination?: array, payout_destination_selector?: array}, card_issuing?: array{tos_acceptance?: array{date?: int, ip?: string, user_agent?: null|string}}, card_payments?: array{decline_on?: array{avs_failure?: bool, cvc_failure?: bool}, statement_descriptor_prefix?: string, statement_descriptor_prefix_kana?: null|string, statement_descriptor_prefix_kanji?: null|string}, invoices?: array{hosted_payment_method_save?: string}, payments?: array{email_customers_on_successful_payment?: bool, statement_descriptor?: string, statement_descriptor_kana?: string, statement_descriptor_kanji?: string}, payouts?: array{debit_negative_balances?: bool, schedule?: array{delay_days?: int|string, interval?: string, monthly_anchor?: int, monthly_payout_days?: int[], weekly_anchor?: string, weekly_payout_days?: string[]}, statement_descriptor?: string}, paypay_payments?: array{additional_files?: string[], goods_type?: string, site?: array{accessible?: array{}, in_development?: array{password: string, username?: string}, restricted?: array{payment_flow_file?: string}, type?: string}}, sepa_debit_payments?: array{creditor_id?: string}, smart_disputes?: array{auto_respond?: array{preference?: string}}, tax_forms?: array{consented_to_paperless_delivery?: bool}, treasury?: array{tos_acceptance?: array{date?: int, ip?: string, user_agent?: null|string}}, wechat_pay_payments?: array{mobile_web_domains?: null|string[]}}, tos_acceptance?: array{date?: int, ip?: string, service_agreement?: string, user_agent?: string}, type?: string} $params + * @param null|array{account_token?: string, business_profile?: array{annual_revenue?: array{amount: int, currency: string, fiscal_year_end: string}, estimated_worker_count?: int, mcc?: string, minority_owned_business_designation?: string[], monthly_estimated_revenue?: array{amount: int, currency: string}, name?: string, product_description?: string, specified_commercial_transactions_act_url?: null|string, support_address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, support_email?: string, support_phone?: string, support_url?: null|string, url?: string}, business_type?: string, capabilities?: array{acss_debit_payments?: array{requested?: bool}, affirm_payments?: array{requested?: bool}, afterpay_clearpay_payments?: array{requested?: bool}, alma_payments?: array{requested?: bool}, amazon_pay_payments?: array{requested?: bool}, app_distribution?: array{requested?: bool}, au_becs_debit_payments?: array{requested?: bool}, automatic_indirect_tax?: array{requested?: bool}, bacs_debit_payments?: array{requested?: bool}, bancontact_payments?: array{requested?: bool}, bank_transfer_payments?: array{requested?: bool}, billie_payments?: array{requested?: bool}, bizum_payments?: array{requested?: bool}, blik_payments?: array{requested?: bool}, blik_recurring_payments?: array{requested?: bool}, boleto_payments?: array{requested?: bool}, card_issuing?: array{requested?: bool}, card_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}, cartes_bancaires_payments?: array{requested?: bool}, cashapp_payments?: array{requested?: bool}, crypto_payments?: array{requested?: bool}, eps_payments?: array{requested?: bool}, fpx_payments?: array{requested?: bool}, gb_bank_transfer_payments?: array{requested?: bool}, giropay_payments?: array{requested?: bool}, gopay_payments?: array{requested?: bool}, grabpay_payments?: array{requested?: bool}, id_bank_transfer_payments?: array{requested?: bool}, id_bank_transfer_payments_bca?: array{requested?: bool}, ideal_payments?: array{requested?: bool}, india_international_payments?: array{requested?: bool}, jcb_payments?: array{requested?: bool}, jp_bank_transfer_payments?: array{requested?: bool}, kakao_pay_payments?: array{requested?: bool}, klarna_payments?: array{requested?: bool}, konbini_payments?: array{requested?: bool}, kr_card_payments?: array{requested?: bool}, legacy_payments?: array{requested?: bool}, link_payments?: array{requested?: bool}, mb_way_payments?: array{requested?: bool}, mobilepay_payments?: array{requested?: bool}, multibanco_payments?: array{requested?: bool}, mx_bank_transfer_payments?: array{requested?: bool}, naver_pay_payments?: array{requested?: bool}, nz_bank_account_becs_debit_payments?: array{requested?: bool}, oxxo_payments?: array{requested?: bool}, p24_payments?: array{requested?: bool}, pay_by_bank_payments?: array{requested?: bool}, payco_payments?: array{requested?: bool}, paynow_payments?: array{requested?: bool}, paypal_payments?: array{requested?: bool}, paypay_payments?: array{requested?: bool}, payto_payments?: array{requested?: bool}, pix_payments?: array{requested?: bool}, promptpay_payments?: array{requested?: bool}, qris_payments?: array{requested?: bool}, rechnung_payments?: array{requested?: bool}, revolut_pay_payments?: array{requested?: bool}, samsung_pay_payments?: array{requested?: bool}, satispay_payments?: array{requested?: bool}, scalapay_payments?: array{requested?: bool}, sepa_bank_transfer_payments?: array{requested?: bool}, sepa_debit_payments?: array{requested?: bool}, sequra_payments?: array{requested?: bool}, shopeepay_payments?: array{requested?: bool}, sofort_payments?: array{requested?: bool}, stripe_balance_payments?: array{requested?: bool}, sunbit_payments?: array{requested?: bool}, swish_payments?: array{requested?: bool}, tax_reporting_us_1099_k?: array{requested?: bool}, tax_reporting_us_1099_misc?: array{requested?: bool}, transfers?: array{requested?: bool}, treasury?: array{requested?: bool}, treasury_evolve?: array{requested?: bool}, treasury_fifth_third?: array{requested?: bool}, treasury_goldman_sachs?: array{requested?: bool}, twint_payments?: array{requested?: bool}, upi_payments?: array{requested?: bool}, us_bank_account_ach_payments?: array{requested?: bool}, us_bank_transfer_payments?: array{requested?: bool}, zip_payments?: array{requested?: bool}}, company?: array{address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, address_kana?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}, address_kanji?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}, administrative_address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, directors_provided?: bool, directorship_declaration?: array{date?: int, ip?: string, user_agent?: string}, executives_provided?: bool, export_license_id?: string, export_purpose_code?: string, name?: string, name_kana?: string, name_kanji?: string, owners_provided?: bool, ownership_declaration?: array{date?: int, ip?: string, user_agent?: string}, ownership_exemption_reason?: null|string, phone?: string, principal_place_of_business?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, registration_date?: null|array{day: int, month: int, year: int}, registration_number?: string, representative_declaration?: array{date?: int, ip?: string, user_agent?: string}, structure?: null|string, tax_id?: string, tax_id_registrar?: string, vat_id?: string, verification?: array{document?: array{back?: string, front?: string}}}, controller?: array{application?: array{loss_liable: bool, onboarding_owner?: bool, pricing_controls?: bool}, dashboard?: array{type?: string}, fees?: array{payer?: string}, losses?: array{payments?: string}, requirement_collection?: string, stripe_dashboard?: array{type?: string}}, country?: string, default_currency?: string, documents?: array{bank_account_ownership_verification?: array{files?: string[]}, company_license?: array{files?: string[]}, company_memorandum_of_association?: array{files?: string[]}, company_ministerial_decree?: array{files?: string[]}, company_registration_verification?: array{files?: string[]}, company_tax_id_verification?: array{files?: string[]}, proof_of_address?: array{files?: string[]}, proof_of_ultimate_beneficial_ownership?: array{files?: string[], signer?: array{person?: string}}}, email?: string, expand?: string[], external_account?: array{object: string, account_holder_name?: string, account_holder_type?: string, account_number: string, country: string, currency?: string, routing_number?: string}|array{object: string, address_city?: string, address_country?: string, address_line1?: string, address_line2?: string, address_state?: string, address_zip?: string, currency?: string, cvc?: string, default_for_currency?: bool, exp_month: int, exp_year: int, metadata?: array, name?: string, number: string}|array{object: string, currency?: string, token: string}|string, groups?: array{payments_pricing?: null|string}, individual?: array{address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, address_kana?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}, address_kanji?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}, birth_address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, dob?: null|array{day: int, month: int, year: int}, email?: string, first_name?: string, first_name_kana?: string, first_name_kanji?: string, full_name_aliases?: null|string[], gender?: string, id_number?: string, id_number_secondary?: string, last_name?: string, last_name_kana?: string, last_name_kanji?: string, maiden_name?: string, metadata?: null|array, phone?: string, political_exposure?: string, registered_address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, relationship?: array{director?: bool, executive?: bool, owner?: bool, percent_ownership?: null|float, title?: string}, self_reported_income?: array{amount: int, currency: string}, self_reported_monthly_housing_payment?: array{amount: int, currency: string}, ssn_last_4?: string, verification?: array{additional_document?: array{back?: string, front?: string}, document?: array{back?: string, front?: string}}}, metadata?: null|array, risk_controls?: array{charges?: array{pause_requested?: bool}, payouts?: array{pause_requested?: bool}}, settings?: array{bacs_debit_payments?: array{display_name?: string}, bank_bca_onboarding?: array{account_holder_name?: string, business_account_number?: string}, branding?: array{icon?: string, logo?: string, primary_color?: string, secondary_color?: string}, capital?: array{payout_destination?: array, payout_destination_selector?: array}, card_issuing?: array{tos_acceptance?: array{date?: int, ip?: string, user_agent?: null|string}}, card_payments?: array{decline_on?: array{avs_failure?: bool, cvc_failure?: bool}, statement_descriptor_prefix?: string, statement_descriptor_prefix_kana?: null|string, statement_descriptor_prefix_kanji?: null|string}, invoices?: array{hosted_payment_method_save?: string}, payments?: array{email_customers_on_successful_payment?: bool, statement_descriptor?: string, statement_descriptor_kana?: string, statement_descriptor_kanji?: string}, payouts?: array{debit_negative_balances?: bool, schedule?: array{delay_days?: int|string, interval?: string, monthly_anchor?: int, monthly_payout_days?: int[], weekly_anchor?: string, weekly_payout_days?: string[]}, statement_descriptor?: string}, paypay_payments?: array{additional_files?: string[], goods_type?: string, site?: array{accessible?: array{}, in_development?: array{password: string, username?: string}, restricted?: array{payment_flow_file?: string}, type?: string}}, sepa_debit_payments?: array{creditor_id?: string}, smart_disputes?: array{auto_respond?: array{preference?: string}}, tax_forms?: array{consented_to_paperless_delivery?: bool}, treasury?: array{tos_acceptance?: array{date?: int, ip?: string, user_agent?: null|string}}, wechat_pay_mobile_web_payments?: array{domains?: null|string[]}}, tos_acceptance?: array{date?: int, ip?: string, service_agreement?: string, user_agent?: string}, type?: string} $params * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @return string @@ -487,7 +487,7 @@ public function serializeBatchDelete($account, $params = null, $opts = null) * Serializes an Account update request into a batch job JSONL line. * * @param string $account - * @param null|array{account_token?: string, business_profile?: array{annual_revenue?: array{amount: int, currency: string, fiscal_year_end: string}, estimated_worker_count?: int, mcc?: string, minority_owned_business_designation?: string[], monthly_estimated_revenue?: array{amount: int, currency: string}, name?: string, product_description?: string, specified_commercial_transactions_act_url?: null|string, support_address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, support_email?: string, support_phone?: string, support_url?: null|string, url?: string}, business_type?: string, capabilities?: array{acss_debit_payments?: array{requested?: bool}, affirm_payments?: array{requested?: bool}, afterpay_clearpay_payments?: array{requested?: bool}, alma_payments?: array{requested?: bool}, amazon_pay_payments?: array{requested?: bool}, app_distribution?: array{requested?: bool}, au_becs_debit_payments?: array{requested?: bool}, automatic_indirect_tax?: array{requested?: bool}, bacs_debit_payments?: array{requested?: bool}, bancontact_payments?: array{requested?: bool}, bank_transfer_payments?: array{requested?: bool}, billie_payments?: array{requested?: bool}, bizum_payments?: array{requested?: bool}, blik_payments?: array{requested?: bool}, blik_recurring_payments?: array{requested?: bool}, boleto_payments?: array{requested?: bool}, card_issuing?: array{requested?: bool}, card_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}, cartes_bancaires_payments?: array{requested?: bool}, cashapp_payments?: array{requested?: bool}, crypto_payments?: array{requested?: bool}, eps_payments?: array{requested?: bool}, fpx_payments?: array{requested?: bool}, gb_bank_transfer_payments?: array{requested?: bool}, giropay_payments?: array{requested?: bool}, gopay_payments?: array{requested?: bool}, grabpay_payments?: array{requested?: bool}, id_bank_transfer_payments?: array{requested?: bool}, id_bank_transfer_payments_bca?: array{requested?: bool}, ideal_payments?: array{requested?: bool}, india_international_payments?: array{requested?: bool}, jcb_payments?: array{requested?: bool}, jp_bank_transfer_payments?: array{requested?: bool}, kakao_pay_payments?: array{requested?: bool}, klarna_payments?: array{requested?: bool}, konbini_payments?: array{requested?: bool}, kr_card_payments?: array{requested?: bool}, legacy_payments?: array{requested?: bool}, link_payments?: array{requested?: bool}, mb_way_payments?: array{requested?: bool}, mobilepay_payments?: array{requested?: bool}, multibanco_payments?: array{requested?: bool}, mx_bank_transfer_payments?: array{requested?: bool}, naver_pay_payments?: array{requested?: bool}, nz_bank_account_becs_debit_payments?: array{requested?: bool}, oxxo_payments?: array{requested?: bool}, p24_payments?: array{requested?: bool}, pay_by_bank_payments?: array{requested?: bool}, payco_payments?: array{requested?: bool}, paynow_payments?: array{requested?: bool}, paypal_payments?: array{requested?: bool}, paypay_payments?: array{requested?: bool}, payto_payments?: array{requested?: bool}, pix_payments?: array{requested?: bool}, promptpay_payments?: array{requested?: bool}, qris_payments?: array{requested?: bool}, rechnung_payments?: array{requested?: bool}, revolut_pay_payments?: array{requested?: bool}, samsung_pay_payments?: array{requested?: bool}, satispay_payments?: array{requested?: bool}, scalapay_payments?: array{requested?: bool}, sepa_bank_transfer_payments?: array{requested?: bool}, sepa_debit_payments?: array{requested?: bool}, sequra_payments?: array{requested?: bool}, shopeepay_payments?: array{requested?: bool}, sofort_payments?: array{requested?: bool}, stripe_balance_payments?: array{requested?: bool}, sunbit_payments?: array{requested?: bool}, swish_payments?: array{requested?: bool}, tax_reporting_us_1099_k?: array{requested?: bool}, tax_reporting_us_1099_misc?: array{requested?: bool}, transfers?: array{requested?: bool}, treasury?: array{requested?: bool}, treasury_evolve?: array{requested?: bool}, treasury_fifth_third?: array{requested?: bool}, treasury_goldman_sachs?: array{requested?: bool}, twint_payments?: array{requested?: bool}, upi_payments?: array{requested?: bool}, us_bank_account_ach_payments?: array{requested?: bool}, us_bank_transfer_payments?: array{requested?: bool}, zip_payments?: array{requested?: bool}}, company?: array{address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, address_kana?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}, address_kanji?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}, administrative_address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, directors_provided?: bool, directorship_declaration?: array{date?: int, ip?: string, user_agent?: string}, executives_provided?: bool, export_license_id?: string, export_purpose_code?: string, name?: string, name_kana?: string, name_kanji?: string, owners_provided?: bool, ownership_declaration?: array{date?: int, ip?: string, user_agent?: string}, ownership_exemption_reason?: null|string, phone?: string, principal_place_of_business?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, registration_date?: null|array{day: int, month: int, year: int}, registration_number?: string, representative_declaration?: array{date?: int, ip?: string, user_agent?: string}, structure?: null|string, tax_id?: string, tax_id_registrar?: string, vat_id?: string, verification?: array{document?: array{back?: string, front?: string}}}, default_currency?: string, documents?: array{bank_account_ownership_verification?: array{files?: string[]}, company_license?: array{files?: string[]}, company_memorandum_of_association?: array{files?: string[]}, company_ministerial_decree?: array{files?: string[]}, company_registration_verification?: array{files?: string[]}, company_tax_id_verification?: array{files?: string[]}, proof_of_address?: array{files?: string[]}, proof_of_registration?: array{files?: string[], signer?: array{person?: string}}, proof_of_ultimate_beneficial_ownership?: array{files?: string[], signer?: array{person?: string}}}, email?: string, expand?: string[], external_account?: null|array{object: string, account_holder_name?: string, account_holder_type?: string, account_number: string, country: string, currency?: string, routing_number?: string}|array{object: string, address_city?: string, address_country?: string, address_line1?: string, address_line2?: string, address_state?: string, address_zip?: string, currency?: string, cvc?: string, default_for_currency?: bool, exp_month: int, exp_year: int, metadata?: array, name?: string, number: string}|array{object: string, currency?: string, token: string}|string, groups?: array{payments_pricing?: null|string}, individual?: array{address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, address_kana?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}, address_kanji?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}, birth_address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, dob?: null|array{day: int, month: int, year: int}, email?: string, first_name?: string, first_name_kana?: string, first_name_kanji?: string, full_name_aliases?: null|string[], gender?: string, id_number?: string, id_number_secondary?: string, last_name?: string, last_name_kana?: string, last_name_kanji?: string, maiden_name?: string, metadata?: null|array, phone?: string, political_exposure?: string, registered_address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, relationship?: array{director?: bool, executive?: bool, owner?: bool, percent_ownership?: null|float, title?: string}, self_reported_income?: array{amount: int, currency: string}, self_reported_monthly_housing_payment?: array{amount: int, currency: string}, ssn_last_4?: string, verification?: array{additional_document?: array{back?: string, front?: string}, document?: array{back?: string, front?: string}}}, metadata?: null|array, risk_controls?: array{charges?: array{pause_requested?: bool}, payouts?: array{pause_requested?: bool}}, settings?: array{bacs_debit_payments?: array{display_name?: string}, bank_bca_onboarding?: array{account_holder_name?: string, business_account_number?: string}, branding?: array{icon?: string, logo?: string, primary_color?: string, secondary_color?: string}, capital?: array{excluded_payout_destinations?: null|string[], payout_destination?: array, payout_destination_selector?: array}, card_issuing?: array{tos_acceptance?: array{date?: int, ip?: string, user_agent?: null|string}}, card_payments?: array{decline_on?: array{avs_failure?: bool, cvc_failure?: bool}, statement_descriptor_prefix?: string, statement_descriptor_prefix_kana?: null|string, statement_descriptor_prefix_kanji?: null|string}, invoices?: array{default_account_tax_ids?: null|string[], hosted_payment_method_save?: string}, payments?: array{email_customers_on_successful_payment?: bool, statement_descriptor?: string, statement_descriptor_kana?: string, statement_descriptor_kanji?: string}, payouts?: array{debit_negative_balances?: bool, schedule?: array{delay_days?: int|string, interval?: string, monthly_anchor?: int, monthly_payout_days?: int[], weekly_anchor?: string, weekly_payout_days?: string[]}, statement_descriptor?: string}, paypay_payments?: array{additional_files?: string[], goods_type?: string, site?: array{accessible?: array{}, in_development?: array{password: string, username?: string}, restricted?: array{payment_flow_file?: string}, type?: string}}, sepa_debit_payments?: array{creditor_id?: string}, smart_disputes?: array{auto_respond?: array{preference?: string}}, tax_forms?: array{consented_to_paperless_delivery?: bool}, treasury?: array{tos_acceptance?: array{date?: int, ip?: string, user_agent?: null|string}}, wechat_pay_payments?: array{mobile_web_domains?: null|string[]}}, tos_acceptance?: array{date?: int, ip?: string, service_agreement?: string, user_agent?: string}} $params + * @param null|array{account_token?: string, business_profile?: array{annual_revenue?: array{amount: int, currency: string, fiscal_year_end: string}, estimated_worker_count?: int, mcc?: string, minority_owned_business_designation?: string[], monthly_estimated_revenue?: array{amount: int, currency: string}, name?: string, product_description?: string, specified_commercial_transactions_act_url?: null|string, support_address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, support_email?: string, support_phone?: string, support_url?: null|string, url?: string}, business_type?: string, capabilities?: array{acss_debit_payments?: array{requested?: bool}, affirm_payments?: array{requested?: bool}, afterpay_clearpay_payments?: array{requested?: bool}, alma_payments?: array{requested?: bool}, amazon_pay_payments?: array{requested?: bool}, app_distribution?: array{requested?: bool}, au_becs_debit_payments?: array{requested?: bool}, automatic_indirect_tax?: array{requested?: bool}, bacs_debit_payments?: array{requested?: bool}, bancontact_payments?: array{requested?: bool}, bank_transfer_payments?: array{requested?: bool}, billie_payments?: array{requested?: bool}, bizum_payments?: array{requested?: bool}, blik_payments?: array{requested?: bool}, blik_recurring_payments?: array{requested?: bool}, boleto_payments?: array{requested?: bool}, card_issuing?: array{requested?: bool}, card_payments?: array{protections?: array{psp_migration: array{requested: bool}}, requested?: bool}, cartes_bancaires_payments?: array{requested?: bool}, cashapp_payments?: array{requested?: bool}, crypto_payments?: array{requested?: bool}, eps_payments?: array{requested?: bool}, fpx_payments?: array{requested?: bool}, gb_bank_transfer_payments?: array{requested?: bool}, giropay_payments?: array{requested?: bool}, gopay_payments?: array{requested?: bool}, grabpay_payments?: array{requested?: bool}, id_bank_transfer_payments?: array{requested?: bool}, id_bank_transfer_payments_bca?: array{requested?: bool}, ideal_payments?: array{requested?: bool}, india_international_payments?: array{requested?: bool}, jcb_payments?: array{requested?: bool}, jp_bank_transfer_payments?: array{requested?: bool}, kakao_pay_payments?: array{requested?: bool}, klarna_payments?: array{requested?: bool}, konbini_payments?: array{requested?: bool}, kr_card_payments?: array{requested?: bool}, legacy_payments?: array{requested?: bool}, link_payments?: array{requested?: bool}, mb_way_payments?: array{requested?: bool}, mobilepay_payments?: array{requested?: bool}, multibanco_payments?: array{requested?: bool}, mx_bank_transfer_payments?: array{requested?: bool}, naver_pay_payments?: array{requested?: bool}, nz_bank_account_becs_debit_payments?: array{requested?: bool}, oxxo_payments?: array{requested?: bool}, p24_payments?: array{requested?: bool}, pay_by_bank_payments?: array{requested?: bool}, payco_payments?: array{requested?: bool}, paynow_payments?: array{requested?: bool}, paypal_payments?: array{requested?: bool}, paypay_payments?: array{requested?: bool}, payto_payments?: array{requested?: bool}, pix_payments?: array{requested?: bool}, promptpay_payments?: array{requested?: bool}, qris_payments?: array{requested?: bool}, rechnung_payments?: array{requested?: bool}, revolut_pay_payments?: array{requested?: bool}, samsung_pay_payments?: array{requested?: bool}, satispay_payments?: array{requested?: bool}, scalapay_payments?: array{requested?: bool}, sepa_bank_transfer_payments?: array{requested?: bool}, sepa_debit_payments?: array{requested?: bool}, sequra_payments?: array{requested?: bool}, shopeepay_payments?: array{requested?: bool}, sofort_payments?: array{requested?: bool}, stripe_balance_payments?: array{requested?: bool}, sunbit_payments?: array{requested?: bool}, swish_payments?: array{requested?: bool}, tax_reporting_us_1099_k?: array{requested?: bool}, tax_reporting_us_1099_misc?: array{requested?: bool}, transfers?: array{requested?: bool}, treasury?: array{requested?: bool}, treasury_evolve?: array{requested?: bool}, treasury_fifth_third?: array{requested?: bool}, treasury_goldman_sachs?: array{requested?: bool}, twint_payments?: array{requested?: bool}, upi_payments?: array{requested?: bool}, us_bank_account_ach_payments?: array{requested?: bool}, us_bank_transfer_payments?: array{requested?: bool}, zip_payments?: array{requested?: bool}}, company?: array{address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, address_kana?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}, address_kanji?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}, administrative_address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, directors_provided?: bool, directorship_declaration?: array{date?: int, ip?: string, user_agent?: string}, executives_provided?: bool, export_license_id?: string, export_purpose_code?: string, name?: string, name_kana?: string, name_kanji?: string, owners_provided?: bool, ownership_declaration?: array{date?: int, ip?: string, user_agent?: string}, ownership_exemption_reason?: null|string, phone?: string, principal_place_of_business?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, registration_date?: null|array{day: int, month: int, year: int}, registration_number?: string, representative_declaration?: array{date?: int, ip?: string, user_agent?: string}, structure?: null|string, tax_id?: string, tax_id_registrar?: string, vat_id?: string, verification?: array{document?: array{back?: string, front?: string}}}, default_currency?: string, documents?: array{bank_account_ownership_verification?: array{files?: string[]}, company_license?: array{files?: string[]}, company_memorandum_of_association?: array{files?: string[]}, company_ministerial_decree?: array{files?: string[]}, company_registration_verification?: array{files?: string[]}, company_tax_id_verification?: array{files?: string[]}, proof_of_address?: array{files?: string[]}, proof_of_registration?: array{files?: string[], signer?: array{person?: string}}, proof_of_ultimate_beneficial_ownership?: array{files?: string[], signer?: array{person?: string}}}, email?: string, expand?: string[], external_account?: null|array{object: string, account_holder_name?: string, account_holder_type?: string, account_number: string, country: string, currency?: string, routing_number?: string}|array{object: string, address_city?: string, address_country?: string, address_line1?: string, address_line2?: string, address_state?: string, address_zip?: string, currency?: string, cvc?: string, default_for_currency?: bool, exp_month: int, exp_year: int, metadata?: array, name?: string, number: string}|array{object: string, currency?: string, token: string}|string, groups?: array{payments_pricing?: null|string}, individual?: array{address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, address_kana?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}, address_kanji?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string, town?: string}, birth_address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, dob?: null|array{day: int, month: int, year: int}, email?: string, first_name?: string, first_name_kana?: string, first_name_kanji?: string, full_name_aliases?: null|string[], gender?: string, id_number?: string, id_number_secondary?: string, last_name?: string, last_name_kana?: string, last_name_kanji?: string, maiden_name?: string, metadata?: null|array, phone?: string, political_exposure?: string, registered_address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, relationship?: array{director?: bool, executive?: bool, owner?: bool, percent_ownership?: null|float, title?: string}, self_reported_income?: array{amount: int, currency: string}, self_reported_monthly_housing_payment?: array{amount: int, currency: string}, ssn_last_4?: string, verification?: array{additional_document?: array{back?: string, front?: string}, document?: array{back?: string, front?: string}}}, metadata?: null|array, risk_controls?: array{charges?: array{pause_requested?: bool}, payouts?: array{pause_requested?: bool}}, settings?: array{bacs_debit_payments?: array{display_name?: string}, bank_bca_onboarding?: array{account_holder_name?: string, business_account_number?: string}, branding?: array{icon?: string, logo?: string, primary_color?: string, secondary_color?: string}, capital?: array{excluded_payout_destinations?: null|string[], payout_destination?: array, payout_destination_selector?: array}, card_issuing?: array{tos_acceptance?: array{date?: int, ip?: string, user_agent?: null|string}}, card_payments?: array{decline_on?: array{avs_failure?: bool, cvc_failure?: bool}, statement_descriptor_prefix?: string, statement_descriptor_prefix_kana?: null|string, statement_descriptor_prefix_kanji?: null|string}, invoices?: array{default_account_tax_ids?: null|string[], hosted_payment_method_save?: string}, payments?: array{email_customers_on_successful_payment?: bool, statement_descriptor?: string, statement_descriptor_kana?: string, statement_descriptor_kanji?: string}, payouts?: array{debit_negative_balances?: bool, schedule?: array{delay_days?: int|string, interval?: string, monthly_anchor?: int, monthly_payout_days?: int[], weekly_anchor?: string, weekly_payout_days?: string[]}, statement_descriptor?: string}, paypay_payments?: array{additional_files?: string[], goods_type?: string, site?: array{accessible?: array{}, in_development?: array{password: string, username?: string}, restricted?: array{payment_flow_file?: string}, type?: string}}, sepa_debit_payments?: array{creditor_id?: string}, smart_disputes?: array{auto_respond?: array{preference?: string}}, tax_forms?: array{consented_to_paperless_delivery?: bool}, treasury?: array{tos_acceptance?: array{date?: int, ip?: string, user_agent?: null|string}}, wechat_pay_mobile_web_payments?: array{domains?: null|string[]}}, tos_acceptance?: array{date?: int, ip?: string, service_agreement?: string, user_agent?: string}} $params * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @return string diff --git a/lib/Service/Checkout/SessionService.php b/lib/Service/Checkout/SessionService.php index c114a5653d..130ff808b6 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, allowed_payment_method_types?: string[], approval_method?: string, automatic_surcharge?: array{calculation_basis?: string, enabled: bool, tax_behavior?: string}, automatic_tax?: array{address_collection_precision?: string, 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{backdate_start_date?: int, 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{current_trial?: array{trial_offer: string}, 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{billing_cycle_anchor?: string, missing_payment_method: string}}}, type: string})[], line_items?: (array{adjustable_quantity?: array{enabled: bool, maximum?: int, minimum?: int}, 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}}, on_behalf_of?: string, 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, verification_method?: string}, bancontact?: array{setup_future_usage?: string}, billie?: array{capture_method?: string}, bizum?: array{mandate_options?: array{}}, blik?: array{mandate_options?: array{expires_at?: 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[], funding_types_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, setup_future_usage?: 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, setup_future_usage?: 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}, sequra?: array{capture_method?: string}, sofort?: array{setup_future_usage?: string}, sunbit?: array{capture_method?: string, 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_settings?: array{application_fee_data?: array{initial_amount?: int, percentage_decimal?: string}, capture_method?: string, description?: string, metadata?: array, setup_future_usage?: string, statement_descriptor?: string, transfer_data?: array{destination: string, transfer_amount?: array{initial_amount?: int, percentage_decimal?: string}}, transfer_group?: 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_preselect?: 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}, tax_rates?: string[]}[], submit_type?: string, subscription_data?: array{application_fee_percent?: float, billing_cycle_anchor?: int, 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}, 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{billing_cycle_anchor?: string, 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, allowed_payment_method_types?: string[], approval_method?: string, automatic_surcharge?: array{calculation_basis?: string, enabled: bool, tax_behavior?: string}, automatic_tax?: array{address_collection_precision?: string, 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{backdate_start_date?: int, 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{current_trial?: array{trial_offer: string}, 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{billing_cycle_anchor?: string, missing_payment_method: string}}}, type: string})[], line_items?: (array{adjustable_quantity?: array{enabled: bool, maximum?: int, minimum?: int}, 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}}, on_behalf_of?: string, 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, verification_method?: string}, bancontact?: array{setup_future_usage?: string}, billie?: array{capture_method?: string}, bizum?: array{mandate_options?: array{}}, blik?: array{mandate_options?: array{expires_at?: 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}, mandate_options?: array{amount?: int, amount_type?: string, currency?: string, description?: string, end_date?: int, interval?: string, interval_count?: int, reference?: string, start_date?: int, supported_types?: string[]}, 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[], funding_types_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, setup_future_usage?: 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, setup_future_usage?: 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}, sequra?: array{capture_method?: string}, sofort?: array{setup_future_usage?: string}, sunbit?: array{capture_method?: string, 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_settings?: array{application_fee_data?: array{initial_amount?: int, percentage_decimal?: string}, capture_method?: string, description?: string, metadata?: array, setup_future_usage?: string, statement_descriptor?: string, transfer_data?: array{destination: string, transfer_amount?: array{initial_amount?: int, percentage_decimal?: string}}, transfer_group?: 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_preselect?: 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}, tax_rates?: string[]}[], submit_type?: string, subscription_data?: array{application_fee_percent?: float, billing_cycle_anchor?: int, 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}, 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{billing_cycle_anchor?: string, 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/PaymentIntentService.php b/lib/Service/PaymentIntentService.php index 2dd26c6ce3..957aae19f2 100644 --- a/lib/Service/PaymentIntentService.php +++ b/lib/Service/PaymentIntentService.php @@ -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, ev_charging?: array{carbon_footprint_avoided_grams_co2?: int, charging_ended_at: int, charging_power_output_capacity_kw: int, charging_started_at: int, connector_type: string, estimated_range_added?: int, estimated_range_left?: int, maximum_power_dispensed_kw: int}, 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_cost_precision?: 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?: 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, tax_items?: 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{tax_items?: 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, tax_items?: 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}, sequra?: array{}, 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}, vipps?: array{}, 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, verification_method?: string}, bancontact?: null|array{preferred_language?: string, setup_future_usage?: null|string}, billie?: null|array{capture_method?: null|string, company_details?: null|array{registered_address?: null|array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, registered_name?: string, registration_number?: string, registration_type?: null|string, vat?: string}, reference?: string}, bizum?: null|array{}, blik?: null|array{code?: string, mandate_options?: array{expires_at?: int}, 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_card_account_update?: 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_credential_usage?: string, 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}, stored_credential_usage?: 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{aade_data?: array{mark_data?: string, mode: string, provider_id?: int, signed_mark?: string, unbound_pos?: string}, capture_by?: string, capture_delay?: array{days?: int, hours?: int}, capture_method?: string, fleet?: null|array{transaction_data?: null|(array{prompt: string, receipt_behavior?: string, value: null|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{amount_reconciliation?: array{type: string}, 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, setup_future_usage?: 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{setup_future_usage?: null|string, subscription_reference?: 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, setup_future_usage?: string}, satispay?: null|array{capture_method?: null|string, setup_future_usage?: 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}, sequra?: null|array{capture_method?: null|string, setup_future_usage?: 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}, sunbit?: null|array{capture_method?: null|string, setup_future_usage?: 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}, vipps?: null|array{capture_method?: null|string, payment_details?: array{money_services?: array{account_funding?: array{digital_asset_category?: string}}}, setup_future_usage?: string}, wechat_pay?: null|array{app_id?: string, buyer_id?: string, client?: string, setup_future_usage?: string}, zip?: null|array{setup_future_usage?: string}}, radar_options?: array{referrer?: null|string, 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, ev_charging?: array{carbon_footprint_avoided_grams_co2?: int, charging_ended_at: int, charging_power_output_capacity_kw: int, charging_started_at: int, connector_type: string, estimated_range_added?: int, estimated_range_left?: int, maximum_power_dispensed_kw: int}, 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_cost_precision?: 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?: 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, tax_items?: 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{tax_items?: 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, tax_items?: 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}, carecredit?: array{}, cashapp?: array{}, crypto?: array{}, customer_balance?: array{}, eps?: array{bank?: string}, fpx?: array{account_holder_type?: string, bank: string}, getflex?: array{}, 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}, rakuten_pay?: array{}, 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}, sequra?: array{}, sezzle?: array{}, 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}, vipps?: array{}, 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, verification_method?: string}, bancontact?: null|array{preferred_language?: string, setup_future_usage?: null|string}, billie?: null|array{capture_method?: null|string, company_details?: null|array{registered_address?: null|array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, registered_name?: string, registration_number?: string, registration_type?: null|string, vat?: string}, reference?: string}, bizum?: null|array{}, blik?: null|array{code?: string, mandate_options?: array{expires_at?: int}, 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_card_account_update?: 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_credential_usage?: string, 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}, stored_credential_usage?: 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{aade_data?: array{mark_data?: string, mode: string, provider_id?: int, signed_mark?: string, unbound_pos?: string}, capture_by?: string, capture_delay?: array{days?: int, hours?: int}, capture_method?: string, fleet?: null|array{transaction_data?: null|(array{prompt: string, receipt_behavior?: string, value: null|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}}, carecredit?: null|array{capture_method?: null|string, setup_future_usage?: null|string}, cashapp?: null|array{capture_method?: null|string, setup_future_usage?: null|string}, crypto?: null|array{amount_reconciliation?: array{type: string}, 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}, getflex?: null|array{capture_method?: null|string, setup_future_usage?: null|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, setup_future_usage?: 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{setup_future_usage?: null|string, subscription_reference?: 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, setup_future_usage?: string}, satispay?: null|array{capture_method?: null|string, setup_future_usage?: 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}, sequra?: null|array{capture_method?: null|string, setup_future_usage?: string}, sezzle?: null|array{capture_method?: null|string, setup_future_usage?: 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}, sunbit?: null|array{capture_method?: null|string, setup_future_usage?: 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}, vipps?: null|array{capture_method?: null|string, payment_details?: array{money_services?: array{account_funding?: array{digital_asset_category?: string}}}, setup_future_usage?: string}, wechat_pay?: null|array{app_id?: string, buyer_id?: string, client?: string, setup_future_usage?: string}, zip?: null|array{setup_future_usage?: string}}, radar_options?: array{referrer?: null|string, 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, ev_charging?: array{carbon_footprint_avoided_grams_co2?: int, charging_ended_at: int, charging_power_output_capacity_kw: int, charging_started_at: int, connector_type: string, estimated_range_added?: int, estimated_range_left?: int, maximum_power_dispensed_kw: int}, 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_cost_precision?: 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?: 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, tax_items?: 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{tax_items?: 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, tax_items?: 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}, sequra?: array{}, 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}, vipps?: array{}, 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, verification_method?: string}, bancontact?: null|array{preferred_language?: string, setup_future_usage?: null|string}, billie?: null|array{capture_method?: null|string, company_details?: null|array{registered_address?: null|array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, registered_name?: string, registration_number?: string, registration_type?: null|string, vat?: string}, reference?: string}, bizum?: null|array{}, blik?: null|array{code?: string, mandate_options?: array{expires_at?: int}, 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_card_account_update?: 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_credential_usage?: string, 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}, stored_credential_usage?: 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{aade_data?: array{mark_data?: string, mode: string, provider_id?: int, signed_mark?: string, unbound_pos?: string}, capture_by?: string, capture_delay?: array{days?: int, hours?: int}, capture_method?: string, fleet?: null|array{transaction_data?: null|(array{prompt: string, receipt_behavior?: string, value: null|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{amount_reconciliation?: array{type: string}, 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, setup_future_usage?: 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{setup_future_usage?: null|string, subscription_reference?: 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, setup_future_usage?: string}, satispay?: null|array{capture_method?: null|string, setup_future_usage?: 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}, sequra?: null|array{capture_method?: null|string, setup_future_usage?: 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}, sunbit?: null|array{capture_method?: null|string, setup_future_usage?: 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}, vipps?: null|array{capture_method?: null|string, payment_details?: array{money_services?: array{account_funding?: array{digital_asset_category?: string}}}, setup_future_usage?: string}, wechat_pay?: null|array{app_id?: string, buyer_id?: string, client?: string, setup_future_usage?: string}, zip?: null|array{setup_future_usage?: string}}, payments_orchestration?: array{enabled: bool, payment_reference?: string}, radar_options?: array{referrer?: null|string, 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, ev_charging?: array{carbon_footprint_avoided_grams_co2?: int, charging_ended_at: int, charging_power_output_capacity_kw: int, charging_started_at: int, connector_type: string, estimated_range_added?: int, estimated_range_left?: int, maximum_power_dispensed_kw: int}, 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_cost_precision?: 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?: 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, tax_items?: 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{tax_items?: 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, tax_items?: 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}, carecredit?: array{}, cashapp?: array{}, crypto?: array{}, customer_balance?: array{}, eps?: array{bank?: string}, fpx?: array{account_holder_type?: string, bank: string}, getflex?: array{}, 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}, rakuten_pay?: array{}, 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}, sequra?: array{}, sezzle?: array{}, 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}, vipps?: array{}, 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, verification_method?: string}, bancontact?: null|array{preferred_language?: string, setup_future_usage?: null|string}, billie?: null|array{capture_method?: null|string, company_details?: null|array{registered_address?: null|array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, registered_name?: string, registration_number?: string, registration_type?: null|string, vat?: string}, reference?: string}, bizum?: null|array{}, blik?: null|array{code?: string, mandate_options?: array{expires_at?: int}, 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_card_account_update?: 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_credential_usage?: string, 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}, stored_credential_usage?: 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{aade_data?: array{mark_data?: string, mode: string, provider_id?: int, signed_mark?: string, unbound_pos?: string}, capture_by?: string, capture_delay?: array{days?: int, hours?: int}, capture_method?: string, fleet?: null|array{transaction_data?: null|(array{prompt: string, receipt_behavior?: string, value: null|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}}, carecredit?: null|array{capture_method?: null|string, setup_future_usage?: null|string}, cashapp?: null|array{capture_method?: null|string, setup_future_usage?: null|string}, crypto?: null|array{amount_reconciliation?: array{type: string}, 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}, getflex?: null|array{capture_method?: null|string, setup_future_usage?: null|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, setup_future_usage?: 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{setup_future_usage?: null|string, subscription_reference?: 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, setup_future_usage?: string}, satispay?: null|array{capture_method?: null|string, setup_future_usage?: 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}, sequra?: null|array{capture_method?: null|string, setup_future_usage?: string}, sezzle?: null|array{capture_method?: null|string, setup_future_usage?: 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}, sunbit?: null|array{capture_method?: null|string, setup_future_usage?: 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}, vipps?: null|array{capture_method?: null|string, payment_details?: array{money_services?: array{account_funding?: array{digital_asset_category?: string}}}, setup_future_usage?: string}, wechat_pay?: null|array{app_id?: string, buyer_id?: string, client?: string, setup_future_usage?: string}, zip?: null|array{setup_future_usage?: string}}, payments_orchestration?: array{enabled: bool, payment_reference?: string}, radar_options?: array{referrer?: null|string, 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 @@ -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, ev_charging?: array{carbon_footprint_avoided_grams_co2?: int, charging_ended_at: int, charging_power_output_capacity_kw: int, charging_started_at: int, connector_type: string, estimated_range_added?: int, estimated_range_left?: int, maximum_power_dispensed_kw: int}, 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_cost_precision?: 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, tax_items?: 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{tax_items?: 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, tax_items?: 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}, sequra?: array{}, 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}, vipps?: array{}, 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, verification_method?: string}, bancontact?: null|array{preferred_language?: string, setup_future_usage?: null|string}, billie?: null|array{capture_method?: null|string, company_details?: null|array{registered_address?: null|array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, registered_name?: string, registration_number?: string, registration_type?: null|string, vat?: string}, reference?: string}, bizum?: null|array{}, blik?: null|array{code?: string, mandate_options?: array{expires_at?: int}, 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_card_account_update?: 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_credential_usage?: string, 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}, stored_credential_usage?: 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{aade_data?: array{mark_data?: string, mode: string, provider_id?: int, signed_mark?: string, unbound_pos?: string}, capture_by?: string, capture_delay?: array{days?: int, hours?: int}, capture_method?: string, fleet?: null|array{transaction_data?: null|(array{prompt: string, receipt_behavior?: string, value: null|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{amount_reconciliation?: array{type: string}, 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, setup_future_usage?: 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{setup_future_usage?: null|string, subscription_reference?: 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, setup_future_usage?: string}, satispay?: null|array{capture_method?: null|string, setup_future_usage?: 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}, sequra?: null|array{capture_method?: null|string, setup_future_usage?: 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}, sunbit?: null|array{capture_method?: null|string, setup_future_usage?: 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}, vipps?: null|array{capture_method?: null|string, payment_details?: array{money_services?: array{account_funding?: array{digital_asset_category?: string}}}, setup_future_usage?: string}, wechat_pay?: null|array{app_id?: string, buyer_id?: string, client?: string, setup_future_usage?: string}, zip?: null|array{setup_future_usage?: 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, ev_charging?: array{carbon_footprint_avoided_grams_co2?: int, charging_ended_at: int, charging_power_output_capacity_kw: int, charging_started_at: int, connector_type: string, estimated_range_added?: int, estimated_range_left?: int, maximum_power_dispensed_kw: int}, 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_cost_precision?: 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, tax_items?: 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{tax_items?: 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, tax_items?: 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}, carecredit?: array{}, cashapp?: array{}, crypto?: array{}, customer_balance?: array{}, eps?: array{bank?: string}, fpx?: array{account_holder_type?: string, bank: string}, getflex?: array{}, 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}, rakuten_pay?: array{}, 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}, sequra?: array{}, sezzle?: array{}, 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}, vipps?: array{}, 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, verification_method?: string}, bancontact?: null|array{preferred_language?: string, setup_future_usage?: null|string}, billie?: null|array{capture_method?: null|string, company_details?: null|array{registered_address?: null|array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, registered_name?: string, registration_number?: string, registration_type?: null|string, vat?: string}, reference?: string}, bizum?: null|array{}, blik?: null|array{code?: string, mandate_options?: array{expires_at?: int}, 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_card_account_update?: 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_credential_usage?: string, 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}, stored_credential_usage?: 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{aade_data?: array{mark_data?: string, mode: string, provider_id?: int, signed_mark?: string, unbound_pos?: string}, capture_by?: string, capture_delay?: array{days?: int, hours?: int}, capture_method?: string, fleet?: null|array{transaction_data?: null|(array{prompt: string, receipt_behavior?: string, value: null|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}}, carecredit?: null|array{capture_method?: null|string, setup_future_usage?: null|string}, cashapp?: null|array{capture_method?: null|string, setup_future_usage?: null|string}, crypto?: null|array{amount_reconciliation?: array{type: string}, 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}, getflex?: null|array{capture_method?: null|string, setup_future_usage?: null|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, setup_future_usage?: 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{setup_future_usage?: null|string, subscription_reference?: 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, setup_future_usage?: string}, satispay?: null|array{capture_method?: null|string, setup_future_usage?: 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}, sequra?: null|array{capture_method?: null|string, setup_future_usage?: string}, sezzle?: null|array{capture_method?: null|string, setup_future_usage?: 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}, sunbit?: null|array{capture_method?: null|string, setup_future_usage?: 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}, vipps?: null|array{capture_method?: null|string, payment_details?: array{money_services?: array{account_funding?: array{digital_asset_category?: string}}}, setup_future_usage?: string}, wechat_pay?: null|array{app_id?: string, buyer_id?: string, client?: string, setup_future_usage?: string}, zip?: null|array{setup_future_usage?: 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 diff --git a/lib/Service/PaymentMethodService.php b/lib/Service/PaymentMethodService.php index a3aed7bb7e..f7c91a279d 100644 --- a/lib/Service/PaymentMethodService.php +++ b/lib/Service/PaymentMethodService.php @@ -86,7 +86,7 @@ public function checkBalance($id, $params = null, $opts = null) * href="/docs/payments/save-and-reuse">SetupIntent API to collect payment * method details ahead of a future payment. * - * @param null|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}, card?: array{cvc?: string, exp_month?: int, exp_year?: int, networks?: array{preferred?: string}, number?: string, token?: string}, cashapp?: array{}, crypto?: array{}, custom?: array{type: string}, customer?: string, customer_balance?: array{}, eps?: array{bank?: string}, expand?: 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{}, payment_method?: string, 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}, sequra?: array{}, 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}, vipps?: array{}, wechat_pay?: array{}, zip?: array{}} $params + * @param null|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}, card?: array{cvc?: string, exp_month?: int, exp_year?: int, networks?: array{preferred?: string}, number?: string, token?: string}, carecredit?: array{}, cashapp?: array{}, crypto?: array{}, custom?: array{type: string}, customer?: string, customer_balance?: array{}, eps?: array{bank?: string}, expand?: string[], fpx?: array{account_holder_type?: string, bank: string}, getflex?: array{}, 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{}, payment_method?: string, 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}, rakuten_pay?: array{}, 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}, sequra?: array{}, sezzle?: array{}, 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}, vipps?: array{}, wechat_pay?: array{}, zip?: array{}} $params * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @return \Stripe\PaymentMethod diff --git a/lib/Service/SetupIntentService.php b/lib/Service/SetupIntentService.php index 1dc395c7ed..e61c188f24 100644 --- a/lib/Service/SetupIntentService.php +++ b/lib/Service/SetupIntentService.php @@ -63,7 +63,7 @@ public function cancel($id, $params = null, $opts = null) * or the canceled status if the confirmation limit is reached. * * @param string $id - * @param null|array{allowed_payment_method_types?: string[], confirmation_token?: string, expand?: string[], mandate_data?: null|array{customer_acceptance?: array{accepted_at?: int, offline?: array{}, online?: array{ip_address?: string, user_agent?: string}, type: string}}, 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}, sequra?: array{}, 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}, vipps?: array{}, wechat_pay?: array{}, zip?: array{}}, 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}, verification_method?: string}, amazon_pay?: array{}, bacs_debit?: array{mandate_options?: array{reference_prefix?: null|string}, verification_method?: string}, bizum?: array{}, blik?: array{code?: string, mandate_options?: array{expires_at?: int}}, card?: array{mandate_options?: array{amount: int, amount_type: string, currency: string, description?: string, end_date?: int, interval: string, interval_count?: int, reference: string, start_date: int, supported_types?: string[]}, moto?: bool, network?: string, request_three_d_secure?: string, setup_credential_usage?: string, three_d_secure?: array{ares_trans_status?: string, cryptogram?: string, electronic_commerce_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?: array{}, klarna?: array{currency?: string, on_demand?: array{average_amount?: int, maximum_amount?: int, minimum_amount?: int, purchase_interval?: string, purchase_interval_count?: int}, preferred_locale?: string, subscriptions?: null|array{interval: string, interval_count?: int, name?: string, next_billing: array{amount: int, date: string}, reference: string}[]}, link?: array{persistent_token?: string}, paypal?: array{billing_agreement_id?: string, currency?: 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}}, pix?: array{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}}, sepa_debit?: array{mandate_options?: array{reference_prefix?: null|string}}, stripe_balance?: array{mandate_options?: array{stripe_balance_debit_agreement?: 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{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[]}, verification_method?: string}}, return_url?: string, setup_details?: array{benefit?: array{fr_meal_voucher?: null|array{enabled?: string, siret?: string}}, location?: string}, use_stripe_sdk?: bool} $params + * @param null|array{allowed_payment_method_types?: string[], confirmation_token?: string, expand?: string[], mandate_data?: null|array{customer_acceptance?: array{accepted_at?: int, offline?: array{}, online?: array{ip_address?: string, user_agent?: string}, type: string}}, 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}, carecredit?: array{}, cashapp?: array{}, crypto?: array{}, customer_balance?: array{}, eps?: array{bank?: string}, fpx?: array{account_holder_type?: string, bank: string}, getflex?: array{}, 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}, rakuten_pay?: array{}, 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}, sequra?: array{}, sezzle?: array{}, 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}, vipps?: array{}, wechat_pay?: array{}, zip?: array{}}, 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}, verification_method?: string}, amazon_pay?: array{}, bacs_debit?: array{mandate_options?: array{reference_prefix?: null|string}, verification_method?: string}, bizum?: array{}, blik?: array{code?: string, mandate_options?: array{expires_at?: int}}, card?: array{mandate_options?: array{amount: int, amount_type: string, currency: string, description?: string, end_date?: int, interval: string, interval_count?: int, reference: string, start_date: int, supported_types?: string[]}, moto?: bool, network?: string, request_three_d_secure?: string, setup_credential_usage?: string, three_d_secure?: array{ares_trans_status?: string, cryptogram?: string, electronic_commerce_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?: array{}, klarna?: array{currency?: string, on_demand?: array{average_amount?: int, maximum_amount?: int, minimum_amount?: int, purchase_interval?: string, purchase_interval_count?: int}, preferred_locale?: string, subscriptions?: null|array{interval: string, interval_count?: int, name?: string, next_billing: array{amount: int, date: string}, reference: string}[]}, link?: array{persistent_token?: string}, paypal?: array{billing_agreement_id?: string, currency?: 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}}, pix?: array{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}}, sepa_debit?: array{mandate_options?: array{reference_prefix?: null|string}}, stripe_balance?: array{mandate_options?: array{stripe_balance_debit_agreement?: 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{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[]}, verification_method?: string}}, return_url?: string, setup_details?: array{benefit?: array{fr_meal_voucher?: null|array{enabled?: string, siret?: string}}, location?: string}, use_stripe_sdk?: bool} $params * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @return \Stripe\SetupIntent @@ -82,7 +82,7 @@ public function confirm($id, $params = null, $opts = null) * href="/docs/api/setup_intents/confirm">confirm it to collect any required * permissions to charge the payment method later. * - * @param null|array{allowed_payment_method_types?: string[], attach_to_self?: bool, automatic_payment_methods?: array{allow_redirects?: string, enabled: bool}, confirm?: bool, confirmation_token?: string, customer?: string, customer_account?: string, description?: string, excluded_payment_method_types?: string[], expand?: string[], flow_directions?: 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, on_behalf_of?: string, 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}, sequra?: array{}, 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}, vipps?: array{}, wechat_pay?: array{}, zip?: array{}}, 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}, verification_method?: string}, amazon_pay?: array{}, bacs_debit?: array{mandate_options?: array{reference_prefix?: null|string}, verification_method?: string}, bizum?: array{}, blik?: array{code?: string, mandate_options?: array{expires_at?: int}}, card?: array{mandate_options?: array{amount: int, amount_type: string, currency: string, description?: string, end_date?: int, interval: string, interval_count?: int, reference: string, start_date: int, supported_types?: string[]}, moto?: bool, network?: string, request_three_d_secure?: string, setup_credential_usage?: string, three_d_secure?: array{ares_trans_status?: string, cryptogram?: string, electronic_commerce_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?: array{}, klarna?: array{currency?: string, on_demand?: array{average_amount?: int, maximum_amount?: int, minimum_amount?: int, purchase_interval?: string, purchase_interval_count?: int}, preferred_locale?: string, subscriptions?: null|array{interval: string, interval_count?: int, name?: string, next_billing: array{amount: int, date: string}, reference: string}[]}, link?: array{persistent_token?: string}, paypal?: array{billing_agreement_id?: string, currency?: 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}}, pix?: array{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}}, sepa_debit?: array{mandate_options?: array{reference_prefix?: null|string}}, stripe_balance?: array{mandate_options?: array{stripe_balance_debit_agreement?: 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{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[]}, verification_method?: string}}, return_url?: string, setup_details?: array{benefit?: array{fr_meal_voucher?: null|array{enabled?: string, siret?: string}}, location?: string}, single_use?: array{amount: int, currency: string}, usage?: string, use_stripe_sdk?: bool} $params + * @param null|array{allowed_payment_method_types?: string[], attach_to_self?: bool, automatic_payment_methods?: array{allow_redirects?: string, enabled: bool}, confirm?: bool, confirmation_token?: string, customer?: string, customer_account?: string, description?: string, excluded_payment_method_types?: string[], expand?: string[], flow_directions?: 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, on_behalf_of?: string, 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}, carecredit?: array{}, cashapp?: array{}, crypto?: array{}, customer_balance?: array{}, eps?: array{bank?: string}, fpx?: array{account_holder_type?: string, bank: string}, getflex?: array{}, 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}, rakuten_pay?: array{}, 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}, sequra?: array{}, sezzle?: array{}, 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}, vipps?: array{}, wechat_pay?: array{}, zip?: array{}}, 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}, verification_method?: string}, amazon_pay?: array{}, bacs_debit?: array{mandate_options?: array{reference_prefix?: null|string}, verification_method?: string}, bizum?: array{}, blik?: array{code?: string, mandate_options?: array{expires_at?: int}}, card?: array{mandate_options?: array{amount: int, amount_type: string, currency: string, description?: string, end_date?: int, interval: string, interval_count?: int, reference: string, start_date: int, supported_types?: string[]}, moto?: bool, network?: string, request_three_d_secure?: string, setup_credential_usage?: string, three_d_secure?: array{ares_trans_status?: string, cryptogram?: string, electronic_commerce_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?: array{}, klarna?: array{currency?: string, on_demand?: array{average_amount?: int, maximum_amount?: int, minimum_amount?: int, purchase_interval?: string, purchase_interval_count?: int}, preferred_locale?: string, subscriptions?: null|array{interval: string, interval_count?: int, name?: string, next_billing: array{amount: int, date: string}, reference: string}[]}, link?: array{persistent_token?: string}, paypal?: array{billing_agreement_id?: string, currency?: 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}}, pix?: array{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}}, sepa_debit?: array{mandate_options?: array{reference_prefix?: null|string}}, stripe_balance?: array{mandate_options?: array{stripe_balance_debit_agreement?: 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{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[]}, verification_method?: string}}, return_url?: string, setup_details?: array{benefit?: array{fr_meal_voucher?: null|array{enabled?: string, siret?: string}}, location?: string}, single_use?: array{amount: int, currency: string}, usage?: string, use_stripe_sdk?: bool} $params * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @return \Stripe\SetupIntent @@ -121,7 +121,7 @@ public function retrieve($id, $params = null, $opts = null) * Updates a SetupIntent object. * * @param string $id - * @param null|array{allowed_payment_method_types?: null|string[], attach_to_self?: bool, customer?: string, customer_account?: string, description?: string, excluded_payment_method_types?: null|string[], expand?: string[], flow_directions?: string[], metadata?: null|array, 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}, sequra?: array{}, 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}, vipps?: array{}, wechat_pay?: array{}, zip?: array{}}, 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}, verification_method?: string}, amazon_pay?: array{}, bacs_debit?: array{mandate_options?: array{reference_prefix?: null|string}, verification_method?: string}, bizum?: array{}, blik?: array{code?: string, mandate_options?: array{expires_at?: int}}, card?: array{mandate_options?: array{amount: int, amount_type: string, currency: string, description?: string, end_date?: int, interval: string, interval_count?: int, reference: string, start_date: int, supported_types?: string[]}, moto?: bool, network?: string, request_three_d_secure?: string, setup_credential_usage?: string, three_d_secure?: array{ares_trans_status?: string, cryptogram?: string, electronic_commerce_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?: array{}, klarna?: array{currency?: string, on_demand?: array{average_amount?: int, maximum_amount?: int, minimum_amount?: int, purchase_interval?: string, purchase_interval_count?: int}, preferred_locale?: string, subscriptions?: null|array{interval: string, interval_count?: int, name?: string, next_billing: array{amount: int, date: string}, reference: string}[]}, link?: array{persistent_token?: string}, paypal?: array{billing_agreement_id?: string, currency?: 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}}, pix?: array{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}}, sepa_debit?: array{mandate_options?: array{reference_prefix?: null|string}}, stripe_balance?: array{mandate_options?: array{stripe_balance_debit_agreement?: 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{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[]}, verification_method?: string}}, setup_details?: array{benefit?: array{fr_meal_voucher?: null|array{enabled?: string, siret?: string}}, location?: string}} $params + * @param null|array{allowed_payment_method_types?: null|string[], attach_to_self?: bool, customer?: string, customer_account?: string, description?: string, excluded_payment_method_types?: null|string[], expand?: string[], flow_directions?: string[], metadata?: null|array, 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}, carecredit?: array{}, cashapp?: array{}, crypto?: array{}, customer_balance?: array{}, eps?: array{bank?: string}, fpx?: array{account_holder_type?: string, bank: string}, getflex?: array{}, 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}, rakuten_pay?: array{}, 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}, sequra?: array{}, sezzle?: array{}, 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}, vipps?: array{}, wechat_pay?: array{}, zip?: array{}}, 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}, verification_method?: string}, amazon_pay?: array{}, bacs_debit?: array{mandate_options?: array{reference_prefix?: null|string}, verification_method?: string}, bizum?: array{}, blik?: array{code?: string, mandate_options?: array{expires_at?: int}}, card?: array{mandate_options?: array{amount: int, amount_type: string, currency: string, description?: string, end_date?: int, interval: string, interval_count?: int, reference: string, start_date: int, supported_types?: string[]}, moto?: bool, network?: string, request_three_d_secure?: string, setup_credential_usage?: string, three_d_secure?: array{ares_trans_status?: string, cryptogram?: string, electronic_commerce_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?: array{}, klarna?: array{currency?: string, on_demand?: array{average_amount?: int, maximum_amount?: int, minimum_amount?: int, purchase_interval?: string, purchase_interval_count?: int}, preferred_locale?: string, subscriptions?: null|array{interval: string, interval_count?: int, name?: string, next_billing: array{amount: int, date: string}, reference: string}[]}, link?: array{persistent_token?: string}, paypal?: array{billing_agreement_id?: string, currency?: 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}}, pix?: array{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}}, sepa_debit?: array{mandate_options?: array{reference_prefix?: null|string}}, stripe_balance?: array{mandate_options?: array{stripe_balance_debit_agreement?: 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{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[]}, verification_method?: string}}, setup_details?: array{benefit?: array{fr_meal_voucher?: null|array{enabled?: string, siret?: string}}, location?: string}} $params * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @return \Stripe\SetupIntent diff --git a/lib/Service/SubscriptionService.php b/lib/Service/SubscriptionService.php index 1e3d5cc80f..ce29004b28 100644 --- a/lib/Service/SubscriptionService.php +++ b/lib/Service/SubscriptionService.php @@ -51,12 +51,14 @@ public function attachCadence($id, $params = null, $opts = null) * immutable. You can still update its metadata and * cancellation_details. * - * Any pending invoice items that you’ve created are still charged at the end of - * the period, unless manually deleted. If - * you’ve set the subscription to cancel at the end of the period, any pending - * prorations are also left in place and collected at the end of the period. But if - * the subscription is set to cancel immediately, pending prorations are removed if - * invoice_now and prorate are both set to false. + * Pending invoice items are included on a final invoice if you generate one. + * Otherwise, they remain pending and can be billed on another invoice for the + * customer. To prevent billing, manually delete them. If you’ve set the subscription + * to cancel at the end of the period, any pending prorations are also left in + * place and collected at the end of the period. But if the subscription is set to + * cancel immediately, pending prorations are removed if invoice_now + * and prorate are both set to false. * * By default, upon subscription cancellation, Stripe stops automatic collection of * all finalized invoices for the customer. This is intended to prevent unexpected diff --git a/lib/Service/TestHelpers/ConfirmationTokenService.php b/lib/Service/TestHelpers/ConfirmationTokenService.php index 771869c38a..d48effa404 100644 --- a/lib/Service/TestHelpers/ConfirmationTokenService.php +++ b/lib/Service/TestHelpers/ConfirmationTokenService.php @@ -14,7 +14,7 @@ class ConfirmationTokenService extends \Stripe\Service\AbstractService /** * Creates a test mode Confirmation Token server side for your integration tests. * - * @param null|array{expand?: string[], 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}, sequra?: array{}, 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}, vipps?: array{}, wechat_pay?: array{}, zip?: array{}}, payment_method_options?: array{card?: array{installments?: array{plan: array{count?: int, interval?: string, type: string}}}}, return_url?: string, setup_future_usage?: string, shipping?: array{address: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, name: string, phone?: null|string}} $params + * @param null|array{expand?: string[], 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}, carecredit?: array{}, cashapp?: array{}, crypto?: array{}, customer_balance?: array{}, eps?: array{bank?: string}, fpx?: array{account_holder_type?: string, bank: string}, getflex?: array{}, 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}, rakuten_pay?: array{}, 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}, sequra?: array{}, sezzle?: array{}, 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}, vipps?: array{}, wechat_pay?: array{}, zip?: array{}}, payment_method_options?: array{card?: array{installments?: array{plan: array{count?: int, interval?: string, type: string}}}}, return_url?: string, setup_future_usage?: string, shipping?: array{address: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, name: string, phone?: null|string}} $params * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @return \Stripe\ConfirmationToken diff --git a/lib/Service/TestHelpers/SharedPayment/GrantedTokenService.php b/lib/Service/TestHelpers/SharedPayment/GrantedTokenService.php index 8f0ffffe87..6fa23abc42 100644 --- a/lib/Service/TestHelpers/SharedPayment/GrantedTokenService.php +++ b/lib/Service/TestHelpers/SharedPayment/GrantedTokenService.php @@ -12,9 +12,8 @@ class GrantedTokenService extends \Stripe\Service\AbstractService { /** - * Creates a new test SharedPaymentGrantedToken object. This endpoint is only - * available in test mode and allows sellers to create SharedPaymentGrantedTokens - * for testing their integration. + * Creates a new test SharedPaymentGrantedToken object. This test helper allows + * sellers to create SharedPaymentGrantedTokens for testing their integration. * * @param null|array{customer?: string, expand?: string[], payment_method: string, shared_metadata?: null|array, usage_limits: array{currency: string, expires_at?: int, max_amount: int, recurring?: array{interval: string, interval_count?: int}, recurring_interval?: string}} $params * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts @@ -29,9 +28,8 @@ public function create($params = null, $opts = null) } /** - * Revokes a test SharedPaymentGrantedToken object. This endpoint is only available - * in test mode and allows sellers to revoke SharedPaymentGrantedTokens for testing - * their integration. + * Revokes a test SharedPaymentGrantedToken object. This test helper allows sellers + * to revoke SharedPaymentGrantedTokens for testing their integration. * * @param string $id * @param null|array{expand?: string[]} $params diff --git a/lib/Service/V2/Core/AccountEvaluationService.php b/lib/Service/V2/Core/AccountEvaluationService.php index 279984a820..c5156baad7 100644 --- a/lib/Service/V2/Core/AccountEvaluationService.php +++ b/lib/Service/V2/Core/AccountEvaluationService.php @@ -15,7 +15,7 @@ class AccountEvaluationService extends \Stripe\Service\AbstractService * Creates a new account evaluation to trigger signal evaluations on an account or * account data. * - * @param null|array{account?: string, account_data?: array{defaults?: array{profile: array{business_url: string, doing_business_as?: string, product_description?: string}}, identity?: array{business_details: array{registered_name?: string}}}, signals: string[]} $params + * @param null|array{account?: string, account_data?: array{contact_email?: string, defaults?: array{profile: array{business_url: string, doing_business_as?: string, product_description?: string}}, identity?: array{business_details: array{registered_name?: string}}}, signals: string[]} $params * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @return \Stripe\V2\Core\AccountEvaluation diff --git a/lib/Service/V2/Core/Vault/GbBankAccountService.php b/lib/Service/V2/Core/Vault/GbBankAccountService.php index 8981d45311..b189580156 100644 --- a/lib/Service/V2/Core/Vault/GbBankAccountService.php +++ b/lib/Service/V2/Core/Vault/GbBankAccountService.php @@ -11,27 +11,6 @@ */ class GbBankAccountService extends \Stripe\Service\AbstractService { - /** - * Confirm that you have received the result of the Confirmation of Payee request, - * and that you are okay with proceeding to pay out to this bank account despite - * the account not matching, partially matching, or the service being unavailable. - * Once you confirm this, you will be able to send OutboundPayments, but this may - * lead to funds being sent to the wrong account, which we might not be able to - * recover. - * - * @param string $id - * @param null|array $params - * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts - * - * @return \Stripe\V2\Core\Vault\GbBankAccount - * - * @throws \Stripe\Exception\ApiErrorException if the request fails - */ - public function acknowledgeConfirmationOfPayee($id, $params = null, $opts = null) - { - return $this->request('post', $this->buildPath('/v2/core/vault/gb_bank_accounts/%s/acknowledge_confirmation_of_payee', $id), $params, $opts); - } - /** * List objects that can be used as destinations for outbound money movement via * OutboundPayment. @@ -84,26 +63,6 @@ public function create($params = null, $opts = null) return $this->request('post', '/v2/core/vault/gb_bank_accounts', $params, $opts); } - /** - * Initiate Confirmation of Payee (CoP) in order to verify that the owner of a UK - * bank account matches who you expect. This must be done on all UK bank accounts - * before sending domestic OutboundPayments. If the result is a partial match or a - * non match, explicit acknowledgement using AcknowledgeConfirmationOfPayee is - * required before sending funds. - * - * @param string $id - * @param null|array{business_type?: string, name?: string} $params - * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts - * - * @return \Stripe\V2\Core\Vault\GbBankAccount - * - * @throws \Stripe\Exception\ApiErrorException if the request fails - */ - public function initiateConfirmationOfPayee($id, $params = null, $opts = null) - { - return $this->request('post', $this->buildPath('/v2/core/vault/gb_bank_accounts/%s/initiate_confirmation_of_payee', $id), $params, $opts); - } - /** * Retrieve a GB bank account. * diff --git a/lib/Service/V2/MoneyManagement/FinancialAccountService.php b/lib/Service/V2/MoneyManagement/FinancialAccountService.php index 98786d44bf..e95eb44493 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. + * Lists FinancialAccounts in this account. * * @param null|array{include?: string[], limit?: int, statuses?: string[], types?: string[]} $params * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts diff --git a/lib/Service/V2/Payments/OffSessionPaymentService.php b/lib/Service/V2/Payments/OffSessionPaymentService.php index e8fd6cf63c..53875f918a 100644 --- a/lib/Service/V2/Payments/OffSessionPaymentService.php +++ b/lib/Service/V2/Payments/OffSessionPaymentService.php @@ -42,26 +42,10 @@ public function cancel($id, $params = null, $opts = null) return $this->request('post', $this->buildPath('/v2/payments/off_session_payments/%s/cancel', $id), $params, $opts); } - /** - * Deprecated. Captures an OffSessionPayment that has previously been created. - * - * @param string $id - * @param null|array{amount_details?: array{discount_amount?: int, enforce_arithmetic_validation?: bool, line_items?: array{discount_amount?: int, product_code?: string, product_name: string, quantity: int, tax?: array{total_tax_amount: int}, unit_cost: int, unit_of_measure?: string}[], shipping?: array{amount?: int, from_postal_code?: string, to_postal_code?: string}, tax?: array{total_tax_amount: int}}, amount_to_capture?: int, application_fee_amount?: \Stripe\StripeObject, metadata?: array, payment_details?: array{customer_reference?: string, order_reference?: string}, statement_descriptor?: string, statement_descriptor_suffix?: string, transfer_data?: array{amount?: int}} $params - * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts - * - * @return \Stripe\V2\Payments\OffSessionPayment - * - * @throws \Stripe\Exception\ApiErrorException if the request fails - */ - public function capture($id, $params = null, $opts = null) - { - return $this->request('post', $this->buildPath('/v2/payments/off_session_payments/%s/capture', $id), $params, $opts); - } - /** * Creates an OffSessionPayment object. * - * @param null|array{amount: \Stripe\StripeObject, amount_details?: array{discount_amount?: int, enforce_arithmetic_validation?: bool, line_items?: array{discount_amount?: int, product_code?: string, product_name: string, quantity: int, tax?: array{total_tax_amount: int}, unit_cost: int, unit_of_measure?: string}[], shipping?: array{amount?: int, from_postal_code?: string, to_postal_code?: string}, tax?: array{total_tax_amount: int}}, application_fee_amount?: \Stripe\StripeObject, cadence: string, capture?: array{capture_method: string}, customer: string, description?: string, include?: string[], metadata?: array, on_behalf_of?: string, payment_details?: array{customer_reference?: string, order_reference?: string}, payment_method?: string, payment_method_data?: array{billing_details?: array{address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, email?: string, name?: string, phone?: string}, card?: array{exp_month: string, exp_year: string, number?: string}, type: string}, payment_method_options?: array{card?: array{mcc?: string, network_transaction_id?: string}}, payments_orchestration?: array{enabled: bool}, retry_details?: array{retry_policy?: string, retry_strategy?: string}, statement_descriptor?: string, statement_descriptor_suffix?: string, target_date?: string, test_clock?: string, transfer_data?: array{amount?: int, destination: string}} $params + * @param null|array{amount: \Stripe\StripeObject, amount_details?: array{discount_amount?: int, enforce_arithmetic_validation?: bool, line_items?: array{discount_amount?: int, product_code?: string, product_name: string, quantity: int, tax?: array{total_tax_amount: int}, unit_cost: int, unit_of_measure?: string}[], shipping?: array{amount?: int, from_postal_code?: string, to_postal_code?: string}, tax?: array{total_tax_amount: int}}, application_fee_amount?: \Stripe\StripeObject, cadence: string, customer: string, description?: string, include?: string[], metadata?: array, on_behalf_of?: string, payment_details?: array{customer_reference?: string, order_reference?: string}, payment_method?: string, payment_method_data?: array{billing_details?: array{address?: array{city?: string, country?: string, line1?: string, line2?: string, postal_code?: string, state?: string}, email?: string, name?: string, phone?: string}, card?: array{exp_month: string, exp_year: string, number?: string}, type: string}, payment_method_options?: array{card?: array{mcc?: string, network_transaction_id?: string}}, payments_orchestration?: array{enabled: bool}, retry_details?: array{retry_policy?: string, retry_strategy?: string}, statement_descriptor?: string, statement_descriptor_suffix?: string, target_date?: string, test_clock?: string, transfer_data?: array{amount?: int, destination: string}} $params * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @return \Stripe\V2\Payments\OffSessionPayment diff --git a/lib/Service/V2/Signals/AccountActivityService.php b/lib/Service/V2/Signals/AccountActivityService.php index 076a934292..2954df7459 100644 --- a/lib/Service/V2/Signals/AccountActivityService.php +++ b/lib/Service/V2/Signals/AccountActivityService.php @@ -15,7 +15,7 @@ class AccountActivityService extends \Stripe\Service\AbstractService * Creates a new account activity to report account registration, login, or * evaluation follow-up activity. * - * @param null|array{account_details?: array{account?: string, customer?: string, data?: array{defaults?: array{profile: array{business_url: string, doing_business_as?: string, product_description?: string}}, identity?: array{business_details: array{registered_name?: string}}}}, account_evaluation?: string, account_restricted?: array{reason: string}, account_reviewed?: array{outcome: string}, account_suspended?: array{reason: string}, login_attempt?: array{client_details: array{data?: array{ip: string, referrer?: string, user_agent?: string}, radar_session?: string}}, login_decision?: array{status: string}, metadata?: array, occurred_at?: string, registration_attempt?: array{client_details: array{data?: array{ip: string, referrer?: string, user_agent?: string}, radar_session?: string}}, registration_decision?: array{status: string}, type: string} $params + * @param null|array{account_details?: array{account?: string, customer?: string, data?: array{contact_email?: string, defaults?: array{profile: array{business_url: string, doing_business_as?: string, product_description?: string}}, identity?: array{business_details: array{registered_name?: string}}}}, account_evaluation?: string, account_restricted?: array{reason: string}, account_reviewed?: array{outcome: string}, account_suspended?: array{reason: string}, login_attempt?: array{client_details: array{data?: array{ip: string, referrer?: string, user_agent?: string}, radar_session?: string}}, login_decision?: array{status: string}, metadata?: array, occurred_at?: string, registration_attempt?: array{client_details: array{data?: array{ip: string, referrer?: string, user_agent?: string}, radar_session?: string}}, registration_decision?: array{status: string}, type: string} $params * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @return \Stripe\V2\Signals\AccountActivity diff --git a/lib/Service/V2/Signals/AccountEvaluationService.php b/lib/Service/V2/Signals/AccountEvaluationService.php index e2f85faced..c695d56a44 100644 --- a/lib/Service/V2/Signals/AccountEvaluationService.php +++ b/lib/Service/V2/Signals/AccountEvaluationService.php @@ -15,7 +15,7 @@ class AccountEvaluationService extends \Stripe\Service\AbstractService * Creates a new account evaluation to request signal evaluations on an account, * customer, or inline account data. * - * @param null|array{account_activity_details?: array{account_activity?: string, data?: array{login_attempt?: array{client_details: array{data?: array{ip: string, referrer?: string, user_agent?: string}, radar_session?: string}}, occurred_at?: string, registration_attempt?: array{client_details: array{data?: array{ip: string, referrer?: string, user_agent?: string}, radar_session?: string}}, type: string}}, account_details: array{account?: string, customer?: string, data?: array{defaults?: array{profile: array{business_url: string, doing_business_as?: string, product_description?: string}}, identity?: array{business_details: array{registered_name?: string}}}}, requested_signals: string[]} $params + * @param null|array{account_activity_details?: array{account_activity?: string, data?: array{login_attempt?: array{client_details: array{data?: array{ip: string, referrer?: string, user_agent?: string}, radar_session?: string}}, occurred_at?: string, registration_attempt?: array{client_details: array{data?: array{ip: string, referrer?: string, user_agent?: string}, radar_session?: string}}, type: string}}, account_details: array{account?: string, customer?: string, data?: array{contact_email?: string, defaults?: array{profile: array{business_url: string, doing_business_as?: string, product_description?: string}}, identity?: array{business_details: array{registered_name?: string}}}}, requested_signals: string[]} $params * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @return \Stripe\V2\Signals\AccountEvaluation @@ -37,6 +37,12 @@ public function create($params = null, $opts = null) 'score' => ['kind' => 'decimal_string'], ], ], + 'user_merchant_fit' => [ + 'kind' => 'object', + 'fields' => [ + 'score' => ['kind' => 'decimal_string'], + ], + ], 'user_multi_accounting' => [ 'kind' => 'object', 'fields' => [ @@ -77,6 +83,12 @@ public function retrieve($id, $params = null, $opts = null) 'score' => ['kind' => 'decimal_string'], ], ], + 'user_merchant_fit' => [ + 'kind' => 'object', + 'fields' => [ + 'score' => ['kind' => 'decimal_string'], + ], + ], 'user_multi_accounting' => [ 'kind' => 'object', 'fields' => [ diff --git a/lib/Service/V2/Signals/AccountSignalService.php b/lib/Service/V2/Signals/AccountSignalService.php index 068215b4a4..a21afd4250 100644 --- a/lib/Service/V2/Signals/AccountSignalService.php +++ b/lib/Service/V2/Signals/AccountSignalService.php @@ -82,6 +82,12 @@ public function all($params = null, $opts = null) 'score' => ['kind' => 'decimal_string'], ], ], + 'user_merchant_fit' => [ + 'kind' => 'object', + 'fields' => [ + 'score' => ['kind' => 'decimal_string'], + ], + ], 'user_multi_accounting' => [ 'kind' => 'object', 'fields' => [ @@ -154,6 +160,10 @@ public function retrieve($id, $params = null, $opts = null) 'kind' => 'object', 'fields' => ['score' => ['kind' => 'decimal_string']], ], + 'user_merchant_fit' => [ + 'kind' => 'object', + 'fields' => ['score' => ['kind' => 'decimal_string']], + ], 'user_multi_accounting' => [ 'kind' => 'object', 'fields' => ['score' => ['kind' => 'decimal_string']], diff --git a/lib/SetupIntent.php b/lib/SetupIntent.php index 0e3c5092c3..e3f1ec7899 100644 --- a/lib/SetupIntent.php +++ b/lib/SetupIntent.php @@ -83,7 +83,7 @@ class SetupIntent extends ApiResource * href="/docs/api/setup_intents/confirm">confirm it to collect any required * permissions to charge the payment method later. * - * @param null|array{allowed_payment_method_types?: string[], attach_to_self?: bool, automatic_payment_methods?: array{allow_redirects?: string, enabled: bool}, confirm?: bool, confirmation_token?: string, customer?: string, customer_account?: string, description?: string, excluded_payment_method_types?: string[], expand?: string[], flow_directions?: 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, on_behalf_of?: string, 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}, sequra?: array{}, 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}, vipps?: array{}, wechat_pay?: array{}, zip?: array{}}, 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}, verification_method?: string}, amazon_pay?: array{}, bacs_debit?: array{mandate_options?: array{reference_prefix?: null|string}, verification_method?: string}, bizum?: array{}, blik?: array{code?: string, mandate_options?: array{expires_at?: int}}, card?: array{mandate_options?: array{amount: int, amount_type: string, currency: string, description?: string, end_date?: int, interval: string, interval_count?: int, reference: string, start_date: int, supported_types?: string[]}, moto?: bool, network?: string, request_three_d_secure?: string, setup_credential_usage?: string, three_d_secure?: array{ares_trans_status?: string, cryptogram?: string, electronic_commerce_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?: array{}, klarna?: array{currency?: string, on_demand?: array{average_amount?: int, maximum_amount?: int, minimum_amount?: int, purchase_interval?: string, purchase_interval_count?: int}, preferred_locale?: string, subscriptions?: null|array{interval: string, interval_count?: int, name?: string, next_billing: array{amount: int, date: string}, reference: string}[]}, link?: array{persistent_token?: string}, paypal?: array{billing_agreement_id?: string, currency?: 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}}, pix?: array{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}}, sepa_debit?: array{mandate_options?: array{reference_prefix?: null|string}}, stripe_balance?: array{mandate_options?: array{stripe_balance_debit_agreement?: 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{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[]}, verification_method?: string}}, return_url?: string, setup_details?: array{benefit?: array{fr_meal_voucher?: null|array{enabled?: string, siret?: string}}, location?: string}, single_use?: array{amount: int, currency: string}, usage?: string, use_stripe_sdk?: bool} $params + * @param null|array{allowed_payment_method_types?: string[], attach_to_self?: bool, automatic_payment_methods?: array{allow_redirects?: string, enabled: bool}, confirm?: bool, confirmation_token?: string, customer?: string, customer_account?: string, description?: string, excluded_payment_method_types?: string[], expand?: string[], flow_directions?: 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, on_behalf_of?: string, 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}, carecredit?: array{}, cashapp?: array{}, crypto?: array{}, customer_balance?: array{}, eps?: array{bank?: string}, fpx?: array{account_holder_type?: string, bank: string}, getflex?: array{}, 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}, rakuten_pay?: array{}, 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}, sequra?: array{}, sezzle?: array{}, 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}, vipps?: array{}, wechat_pay?: array{}, zip?: array{}}, 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}, verification_method?: string}, amazon_pay?: array{}, bacs_debit?: array{mandate_options?: array{reference_prefix?: null|string}, verification_method?: string}, bizum?: array{}, blik?: array{code?: string, mandate_options?: array{expires_at?: int}}, card?: array{mandate_options?: array{amount: int, amount_type: string, currency: string, description?: string, end_date?: int, interval: string, interval_count?: int, reference: string, start_date: int, supported_types?: string[]}, moto?: bool, network?: string, request_three_d_secure?: string, setup_credential_usage?: string, three_d_secure?: array{ares_trans_status?: string, cryptogram?: string, electronic_commerce_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?: array{}, klarna?: array{currency?: string, on_demand?: array{average_amount?: int, maximum_amount?: int, minimum_amount?: int, purchase_interval?: string, purchase_interval_count?: int}, preferred_locale?: string, subscriptions?: null|array{interval: string, interval_count?: int, name?: string, next_billing: array{amount: int, date: string}, reference: string}[]}, link?: array{persistent_token?: string}, paypal?: array{billing_agreement_id?: string, currency?: 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}}, pix?: array{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}}, sepa_debit?: array{mandate_options?: array{reference_prefix?: null|string}}, stripe_balance?: array{mandate_options?: array{stripe_balance_debit_agreement?: 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{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[]}, verification_method?: string}}, return_url?: string, setup_details?: array{benefit?: array{fr_meal_voucher?: null|array{enabled?: string, siret?: string}}, location?: string}, single_use?: array{amount: int, currency: string}, usage?: string, use_stripe_sdk?: bool} $params * @param null|array|string $options * * @return SetupIntent the created resource @@ -149,7 +149,7 @@ public static function retrieve($id, $opts = null) * Updates a SetupIntent object. * * @param string $id the ID of the resource to update - * @param null|array{allowed_payment_method_types?: null|string[], attach_to_self?: bool, customer?: string, customer_account?: string, description?: string, excluded_payment_method_types?: null|string[], expand?: string[], flow_directions?: string[], metadata?: null|array, 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}, sequra?: array{}, 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}, vipps?: array{}, wechat_pay?: array{}, zip?: array{}}, 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}, verification_method?: string}, amazon_pay?: array{}, bacs_debit?: array{mandate_options?: array{reference_prefix?: null|string}, verification_method?: string}, bizum?: array{}, blik?: array{code?: string, mandate_options?: array{expires_at?: int}}, card?: array{mandate_options?: array{amount: int, amount_type: string, currency: string, description?: string, end_date?: int, interval: string, interval_count?: int, reference: string, start_date: int, supported_types?: string[]}, moto?: bool, network?: string, request_three_d_secure?: string, setup_credential_usage?: string, three_d_secure?: array{ares_trans_status?: string, cryptogram?: string, electronic_commerce_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?: array{}, klarna?: array{currency?: string, on_demand?: array{average_amount?: int, maximum_amount?: int, minimum_amount?: int, purchase_interval?: string, purchase_interval_count?: int}, preferred_locale?: string, subscriptions?: null|array{interval: string, interval_count?: int, name?: string, next_billing: array{amount: int, date: string}, reference: string}[]}, link?: array{persistent_token?: string}, paypal?: array{billing_agreement_id?: string, currency?: 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}}, pix?: array{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}}, sepa_debit?: array{mandate_options?: array{reference_prefix?: null|string}}, stripe_balance?: array{mandate_options?: array{stripe_balance_debit_agreement?: 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{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[]}, verification_method?: string}}, setup_details?: array{benefit?: array{fr_meal_voucher?: null|array{enabled?: string, siret?: string}}, location?: string}} $params + * @param null|array{allowed_payment_method_types?: null|string[], attach_to_self?: bool, customer?: string, customer_account?: string, description?: string, excluded_payment_method_types?: null|string[], expand?: string[], flow_directions?: string[], metadata?: null|array, 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}, carecredit?: array{}, cashapp?: array{}, crypto?: array{}, customer_balance?: array{}, eps?: array{bank?: string}, fpx?: array{account_holder_type?: string, bank: string}, getflex?: array{}, 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}, rakuten_pay?: array{}, 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}, sequra?: array{}, sezzle?: array{}, 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}, vipps?: array{}, wechat_pay?: array{}, zip?: array{}}, 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}, verification_method?: string}, amazon_pay?: array{}, bacs_debit?: array{mandate_options?: array{reference_prefix?: null|string}, verification_method?: string}, bizum?: array{}, blik?: array{code?: string, mandate_options?: array{expires_at?: int}}, card?: array{mandate_options?: array{amount: int, amount_type: string, currency: string, description?: string, end_date?: int, interval: string, interval_count?: int, reference: string, start_date: int, supported_types?: string[]}, moto?: bool, network?: string, request_three_d_secure?: string, setup_credential_usage?: string, three_d_secure?: array{ares_trans_status?: string, cryptogram?: string, electronic_commerce_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?: array{}, klarna?: array{currency?: string, on_demand?: array{average_amount?: int, maximum_amount?: int, minimum_amount?: int, purchase_interval?: string, purchase_interval_count?: int}, preferred_locale?: string, subscriptions?: null|array{interval: string, interval_count?: int, name?: string, next_billing: array{amount: int, date: string}, reference: string}[]}, link?: array{persistent_token?: string}, paypal?: array{billing_agreement_id?: string, currency?: 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}}, pix?: array{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}}, sepa_debit?: array{mandate_options?: array{reference_prefix?: null|string}}, stripe_balance?: array{mandate_options?: array{stripe_balance_debit_agreement?: 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{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[]}, verification_method?: string}}, setup_details?: array{benefit?: array{fr_meal_voucher?: null|array{enabled?: string, siret?: string}}, location?: string}} $params * @param null|array|string $opts * * @return SetupIntent the updated resource diff --git a/lib/Util/ApiVersion.php b/lib/Util/ApiVersion.php index b3c0364a9c..e46ee9f87b 100644 --- a/lib/Util/ApiVersion.php +++ b/lib/Util/ApiVersion.php @@ -6,6 +6,6 @@ class ApiVersion { - const CURRENT = '2026-10-07.preview'; + const CURRENT = '2026-10-14.preview'; const CURRENT_MAJOR = ''; } diff --git a/lib/Util/EventNotificationTypes.php b/lib/Util/EventNotificationTypes.php index 80283c1453..ff55edcff3 100644 --- a/lib/Util/EventNotificationTypes.php +++ b/lib/Util/EventNotificationTypes.php @@ -459,7 +459,6 @@ class EventNotificationTypes \Stripe\Events\V2PaymentsOffSessionPaymentCreatedEventNotification::LOOKUP_TYPE => \Stripe\Events\V2PaymentsOffSessionPaymentCreatedEventNotification::class, \Stripe\Events\V2PaymentsOffSessionPaymentFailedEventNotification::LOOKUP_TYPE => \Stripe\Events\V2PaymentsOffSessionPaymentFailedEventNotification::class, \Stripe\Events\V2PaymentsOffSessionPaymentPausedEventNotification::LOOKUP_TYPE => \Stripe\Events\V2PaymentsOffSessionPaymentPausedEventNotification::class, - \Stripe\Events\V2PaymentsOffSessionPaymentRequiresCaptureEventNotification::LOOKUP_TYPE => \Stripe\Events\V2PaymentsOffSessionPaymentRequiresCaptureEventNotification::class, \Stripe\Events\V2PaymentsOffSessionPaymentResumedEventNotification::LOOKUP_TYPE => \Stripe\Events\V2PaymentsOffSessionPaymentResumedEventNotification::class, \Stripe\Events\V2PaymentsOffSessionPaymentSucceededEventNotification::LOOKUP_TYPE => \Stripe\Events\V2PaymentsOffSessionPaymentSucceededEventNotification::class, \Stripe\Events\V2PaymentsSettlementAllocationIntentCanceledEventNotification::LOOKUP_TYPE => \Stripe\Events\V2PaymentsSettlementAllocationIntentCanceledEventNotification::class, diff --git a/lib/Util/EventTypes.php b/lib/Util/EventTypes.php index 7cf6375d08..1af7e9371a 100644 --- a/lib/Util/EventTypes.php +++ b/lib/Util/EventTypes.php @@ -457,7 +457,6 @@ class EventTypes \Stripe\Events\V2PaymentsOffSessionPaymentCreatedEvent::LOOKUP_TYPE => \Stripe\Events\V2PaymentsOffSessionPaymentCreatedEvent::class, \Stripe\Events\V2PaymentsOffSessionPaymentFailedEvent::LOOKUP_TYPE => \Stripe\Events\V2PaymentsOffSessionPaymentFailedEvent::class, \Stripe\Events\V2PaymentsOffSessionPaymentPausedEvent::LOOKUP_TYPE => \Stripe\Events\V2PaymentsOffSessionPaymentPausedEvent::class, - \Stripe\Events\V2PaymentsOffSessionPaymentRequiresCaptureEvent::LOOKUP_TYPE => \Stripe\Events\V2PaymentsOffSessionPaymentRequiresCaptureEvent::class, \Stripe\Events\V2PaymentsOffSessionPaymentResumedEvent::LOOKUP_TYPE => \Stripe\Events\V2PaymentsOffSessionPaymentResumedEvent::class, \Stripe\Events\V2PaymentsOffSessionPaymentSucceededEvent::LOOKUP_TYPE => \Stripe\Events\V2PaymentsOffSessionPaymentSucceededEvent::class, \Stripe\Events\V2PaymentsSettlementAllocationIntentCanceledEvent::LOOKUP_TYPE => \Stripe\Events\V2PaymentsSettlementAllocationIntentCanceledEvent::class, diff --git a/lib/V2/Core/AccountEvaluation.php b/lib/V2/Core/AccountEvaluation.php index c81052dcd6..53d0db5faf 100644 --- a/lib/V2/Core/AccountEvaluation.php +++ b/lib/V2/Core/AccountEvaluation.php @@ -10,7 +10,7 @@ * @property string $id Unique identifier for the account evaluation. * @property string $object String representing the object's type. Objects of the same type share the same value of the object field. * @property null|string $account The account ID if this evaluation is for an existing account. - * @property null|(object{defaults?: (object{profile: (object{business_url: string, doing_business_as?: string, product_description?: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), identity?: (object{business_details: (object{registered_name?: string}&\Stripe\StripeObject)}&\Stripe\StripeObject)}&\Stripe\StripeObject) $account_data Account data if this evaluation is for an account without an existing Stripe entity. + * @property null|(object{contact_email?: string, defaults?: (object{profile: (object{business_url: string, doing_business_as?: string, product_description?: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), identity?: (object{business_details: (object{registered_name?: string}&\Stripe\StripeObject)}&\Stripe\StripeObject)}&\Stripe\StripeObject) $account_data Account data if this evaluation is for an account without an existing Stripe entity. * @property string $created Timestamp at which the evaluation was created. * @property string[] $evaluations_triggered List of signals that were triggered for evaluation. * @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/FinancialAddress.php b/lib/V2/MoneyManagement/FinancialAddress.php index 6021dac51f..d4bb74aed7 100644 --- a/lib/V2/MoneyManagement/FinancialAddress.php +++ b/lib/V2/MoneyManagement/FinancialAddress.php @@ -10,7 +10,7 @@ * @property string $id The ID of the FinancialAddress. * @property string $object String representing the object's type. Objects of the same type share the same value of the object field. * @property null|string $account The ID of the Account that owns this FinancialAddress. - * @property null|(object{aba?: (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), clabe?: (object{account_holder_name: string, clabe: string}&\Stripe\StripeObject), country?: string, cpa?: (object{account_holder_name: string, account_number?: string, bank_name: string, bic?: string, institution_number: string, last4: string, transit_number: string}&\Stripe\StripeObject), currency: string, iban?: (object{account_holder_name: string, bank_name: string, bic: string, country: string, iban?: string, last4: string}&\Stripe\StripeObject), sort_code?: (object{account_holder_name: string, account_number?: string, bic?: string, iban?: string, last4: string, sort_code: string}&\Stripe\StripeObject), type: string}&\Stripe\StripeObject) $bank_account Bank account details for this FinancialAddress. + * @property null|(object{aba?: (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), bre_b?: (object{account_holder_name: string, bre_b_key: string}&\Stripe\StripeObject), clabe?: (object{account_holder_name: string, clabe: string}&\Stripe\StripeObject), country?: string, cpa?: (object{account_holder_name: string, account_number?: string, bank_name: string, bic?: string, institution_number: string, last4: string, transit_number: string}&\Stripe\StripeObject), currency: string, iban?: (object{account_holder_name: string, bank_name: string, bic: string, country: string, iban?: string, last4: string}&\Stripe\StripeObject), nip?: (object{account_holder_name: string, bank_code: string, bank_name: string, nuban: string}&\Stripe\StripeObject), pix?: (object{account_holder_name: string, br_code: string}&\Stripe\StripeObject), sort_code?: (object{account_holder_name: string, account_number?: string, bic?: string, iban?: string, last4: string, sort_code: string}&\Stripe\StripeObject), type: string}&\Stripe\StripeObject) $bank_account Bank account details for this FinancialAddress. * @property string $created The creation timestamp of the FinancialAddress. * @property null|(object{address: string, memo?: string, network: string, supported_network_details: \Stripe\StripeObject}&\Stripe\StripeObject) $crypto_wallet * @property string $financial_account The ID of the FinancialAccount this FinancialAddress corresponds to. diff --git a/lib/V2/MoneyManagement/ReceivedCredit.php b/lib/V2/MoneyManagement/ReceivedCredit.php index 8c21c47bbb..933f84f368 100644 --- a/lib/V2/MoneyManagement/ReceivedCredit.php +++ b/lib/V2/MoneyManagement/ReceivedCredit.php @@ -12,7 +12,7 @@ * @property \Stripe\StripeObject $amount The amount and currency of the ReceivedCredit. * @property \Stripe\StripeObject $amount_received The amount and currency of the ReceivedCredit that was received. * @property null|(object{from_account?: string, outbound_payment?: string, outbound_transfer?: string, payout?: 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), network_details?: (object{ach: (object{addenda?: string, originator_company_entry_description?: string, originator_company_id?: string, originator_company_name?: string, receiver_id_number?: string, receiver_name?: string, standard_entry_class_code?: string, trace_id?: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), originating_bank_account: (object{aba?: (object{account_holder_name?: string, bank_name?: string, bic?: string, last4?: string, network: string, routing_number?: string}&\Stripe\StripeObject), clabe?: (object{account_holder_name?: string, bank_name?: string, bic?: string, last4?: string, network: string}&\Stripe\StripeObject), cpa?: (object{account_holder_name?: string, bank_name?: string, bic?: string, last4?: string, network: string}&\Stripe\StripeObject), iban?: (object{account_holder_name?: string, bank_name?: string, bic?: string, country?: string, iban?: string, network: string}&\Stripe\StripeObject), sort_code?: (object{account_holder_name?: string, bank_name?: string, bic?: string, last4?: string, network: string, sort_code?: string}&\Stripe\StripeObject), type: string}&\Stripe\StripeObject), 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{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), network_details?: (object{ach: (object{addenda?: string, originator_company_entry_description?: string, originator_company_id?: string, originator_company_name?: string, receiver_id_number?: string, receiver_name?: string, standard_entry_class_code?: string, trace_id?: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), originating_bank_account: (object{aba?: (object{account_holder_name?: string, bank_name?: string, bic?: string, last4?: string, network: string, routing_number?: string}&\Stripe\StripeObject), bre_b?: (object{account_holder_name?: string, last4?: string, network: string}&\Stripe\StripeObject), clabe?: (object{account_holder_name?: string, bank_name?: string, bic?: string, last4?: string, network: string}&\Stripe\StripeObject), cpa?: (object{account_holder_name?: string, bank_name?: string, bic?: string, last4?: string, network: string}&\Stripe\StripeObject), iban?: (object{account_holder_name?: string, bank_name?: string, bic?: string, country?: string, iban?: string, network: string}&\Stripe\StripeObject), nip?: (object{account_holder_name?: string, bank_code?: string, bank_name?: string, last4?: string, network: string}&\Stripe\StripeObject), pix?: (object{account_holder_name?: string, bank_name?: string, br_code?: string, network: string}&\Stripe\StripeObject), sort_code?: (object{account_holder_name?: string, bank_name?: string, bic?: string, last4?: string, network: string, sort_code?: string}&\Stripe\StripeObject), type: string}&\Stripe\StripeObject), 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 string $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, originating_crypto_wallet?: (object{address: string, memo: string, network: string}&\Stripe\StripeObject), statement_descriptor?: string, token_currency?: string, transaction_hash?: string, type: 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/Payments/OffSessionPayment.php b/lib/V2/Payments/OffSessionPayment.php index 192b9d3eca..27480c6a71 100644 --- a/lib/V2/Payments/OffSessionPayment.php +++ b/lib/V2/Payments/OffSessionPayment.php @@ -14,13 +14,11 @@ * * @property string $id Unique identifier for the 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|\Stripe\StripeObject $amount_capturable The amount available to be captured. * @property null|(object{discount_amount?: int, error?: (object{code?: string, message?: string}&\Stripe\StripeObject), line_items: (object{discount_amount?: int, product_code?: string, product_name: string, quantity: int, tax?: (object{total_tax_amount?: int}&\Stripe\StripeObject), unit_cost: int, unit_of_measure?: string}&\Stripe\StripeObject)[], shipping?: (object{amount?: int, from_postal_code?: string, to_postal_code?: string}&\Stripe\StripeObject), tax?: (object{total_tax_amount?: int}&\Stripe\StripeObject)}&\Stripe\StripeObject) $amount_details Provides industry-specific information about the amount. * @property \Stripe\StripeObject $amount_requested Amount intended to be collected by this payment. * @property null|string $application The application associated with this OffSessionPayment. * @property null|\Stripe\StripeObject $application_fee_amount_requested The amount of the application fee requested to be applied to the payment. * @property string $cadence The frequency of the underlying payment. - * @property null|(object{capture_before?: string, capture_method: string}&\Stripe\StripeObject) $capture Details about the capture configuration for the OffSessionPayment. * @property string $created Creation time of the OffSessionPayment. Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z. * @property string $customer ID of the Customer to which this OffSessionPayment belongs. * @property null|string $description An arbitrary string attached to the object. Often useful for displaying to users. diff --git a/lib/V2/Signals/AccountActivity.php b/lib/V2/Signals/AccountActivity.php index 4ab7213ae1..7df718a6ef 100644 --- a/lib/V2/Signals/AccountActivity.php +++ b/lib/V2/Signals/AccountActivity.php @@ -9,7 +9,7 @@ * * @property string $id Unique identifier for the account activity. * @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{account?: string, customer?: string, data?: (object{defaults?: (object{profile: (object{business_url: string, doing_business_as?: string, product_description?: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), identity?: (object{business_details: (object{registered_name?: string}&\Stripe\StripeObject)}&\Stripe\StripeObject)}&\Stripe\StripeObject)}&\Stripe\StripeObject) $account_details The account, customer, or inline account data associated with the activity. + * @property null|(object{account?: string, customer?: string, data?: (object{contact_email?: string, defaults?: (object{profile: (object{business_url: string, doing_business_as?: string, product_description?: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), identity?: (object{business_details: (object{registered_name?: string}&\Stripe\StripeObject)}&\Stripe\StripeObject)}&\Stripe\StripeObject)}&\Stripe\StripeObject) $account_details The account, customer, or inline account data associated with the activity. * @property null|string $account_evaluation The account evaluation this activity is associated with, when applicable. * @property null|(object{reason: string}&\Stripe\StripeObject) $account_restricted Details for the account restriction. Present only when type is account_restricted. The activity requires an existing account_details.account or account_details.customer; inline data is unsupported. * @property null|(object{outcome: string}&\Stripe\StripeObject) $account_reviewed Details for the account review. Present only when type is account_reviewed. The activity requires an existing account_details.account or account_details.customer; inline data is unsupported. diff --git a/lib/V2/Signals/AccountEvaluation.php b/lib/V2/Signals/AccountEvaluation.php index 8e82994a76..0dc6d3aebb 100644 --- a/lib/V2/Signals/AccountEvaluation.php +++ b/lib/V2/Signals/AccountEvaluation.php @@ -10,9 +10,9 @@ * @property string $id Unique identifier for the account evaluation. * @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{account_activity?: string}&\Stripe\StripeObject) $account_activity_details Account activity recorded alongside this evaluation, when applicable. - * @property (object{account?: string, customer?: string, data?: (object{defaults?: (object{profile: (object{business_url: string, doing_business_as?: string, product_description?: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), identity?: (object{business_details: (object{registered_name?: string}&\Stripe\StripeObject)}&\Stripe\StripeObject)}&\Stripe\StripeObject)}&\Stripe\StripeObject) $account_details The account, customer, or inline account data being evaluated. + * @property (object{account?: string, customer?: string, data?: (object{contact_email?: string, defaults?: (object{profile: (object{business_url: string, doing_business_as?: string, product_description?: string}&\Stripe\StripeObject)}&\Stripe\StripeObject), identity?: (object{business_details: (object{registered_name?: string}&\Stripe\StripeObject)}&\Stripe\StripeObject)}&\Stripe\StripeObject)}&\Stripe\StripeObject) $account_details The account, customer, or inline account data being evaluated. * @property string $created Timestamp at which the evaluation was created. - * @property null|(object{fraudulent_website?: (object{details?: string, evaluated_at?: string, risk_level: string, signal?: string}&\Stripe\StripeObject), user_account_sharing?: (object{evaluated_at?: string, risk_level: string, score?: string, signal?: string}&\Stripe\StripeObject), user_multi_accounting?: (object{evaluated_at?: string, risk_level: string, score?: string, signal?: string}&\Stripe\StripeObject)}&\Stripe\StripeObject) $evaluated_signals Signal results that are available for the evaluation. + * @property null|(object{fraudulent_website?: (object{details?: string, evaluated_at?: string, risk_level: string, signal?: string}&\Stripe\StripeObject), user_account_sharing?: (object{evaluated_at?: string, risk_level: string, score?: string, signal?: string}&\Stripe\StripeObject), user_merchant_fit?: (object{evaluated_at?: string, fit_level: string, score?: string, signal?: string}&\Stripe\StripeObject), user_multi_accounting?: (object{evaluated_at?: string, risk_level: string, score?: string, signal?: string}&\Stripe\StripeObject)}&\Stripe\StripeObject) $evaluated_signals Signal results that are available for the evaluation. * @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[] $pending_signals List of signals still pending evaluation. * @property string[] $requested_signals List of signals requested for evaluation. @@ -31,6 +31,10 @@ public static function fieldEncodings() 'kind' => 'object', 'fields' => ['score' => ['kind' => 'decimal_string']], ], + 'user_merchant_fit' => [ + 'kind' => 'object', + 'fields' => ['score' => ['kind' => 'decimal_string']], + ], 'user_multi_accounting' => [ 'kind' => 'object', 'fields' => ['score' => ['kind' => 'decimal_string']], diff --git a/lib/V2/Signals/AccountSignal.php b/lib/V2/Signals/AccountSignal.php index 678a9e617f..629c1394ae 100644 --- a/lib/V2/Signals/AccountSignal.php +++ b/lib/V2/Signals/AccountSignal.php @@ -22,6 +22,7 @@ * @property null|(object{additional_details: (object{gross_exposure_amount?: (object{currency: string, value: int}&\Stripe\StripeObject), loss_given_default_in_percentages?: int, predicted_dispute_window_in_days?: int}&\Stripe\StripeObject), exposure_amount: (object{currency: string, value: int}&\Stripe\StripeObject)}&\Stripe\StripeObject) $payment_delinquency_exposure Data for the payment delinquency exposure signal. Present only when type is payment_delinquency_exposure. * @property string $type The type of signal. * @property null|(object{risk_level: string, score?: string}&\Stripe\StripeObject) $user_account_sharing Data for the user account-sharing signal. Present only when type is user_account_sharing. + * @property null|(object{fit_level: string, score?: string}&\Stripe\StripeObject) $user_merchant_fit Data for the user-merchant fit signal. Present only when type is user_merchant_fit. * @property null|(object{risk_level: string, score?: string}&\Stripe\StripeObject) $user_multi_accounting Data for the user multi-accounting signal. Present only when type is user_multi_accounting. */ class AccountSignal extends \Stripe\ApiResource @@ -63,6 +64,10 @@ public static function fieldEncodings() 'kind' => 'object', 'fields' => ['score' => ['kind' => 'decimal_string']], ], + 'user_merchant_fit' => [ + 'kind' => 'object', + 'fields' => ['score' => ['kind' => 'decimal_string']], + ], 'user_multi_accounting' => [ 'kind' => 'object', 'fields' => ['score' => ['kind' => 'decimal_string']], @@ -75,5 +80,6 @@ public static function fieldEncodings() const TYPE_MERCHANT_DELINQUENCY = 'merchant_delinquency'; const TYPE_PAYMENT_DELINQUENCY_EXPOSURE = 'payment_delinquency_exposure'; const TYPE_USER_ACCOUNT_SHARING = 'user_account_sharing'; + const TYPE_USER_MERCHANT_FIT = 'user_merchant_fit'; const TYPE_USER_MULTI_ACCOUNTING = 'user_multi_accounting'; } diff --git a/tests/Stripe/BaseStripeClientTest.php b/tests/Stripe/BaseStripeClientTest.php index 73d7983620..5789b54cdd 100644 --- a/tests/Stripe/BaseStripeClientTest.php +++ b/tests/Stripe/BaseStripeClientTest.php @@ -133,6 +133,56 @@ public function testRequestWithOptsApiKey() self::assertSame('sk_test_opts', $this->optsReflector->getValue($charge)->apiKey); } + public function testClientMaxNetworkRetriesReachCurlClient() + { + $this->curlClientStub->expects(self::once()) + ->method('executeRequestWithRetries') + ->with(self::callback(function ($opts) { + self::assertNotEmpty(\array_filter($opts[\CURLOPT_HTTPHEADER], function ($header) { + return $this->headerStartsWith($header, 'Idempotency-Key: '); + })); + + return true; + }), MOCK_URL . '/v1/charges', 3) + ->willReturn(['{"object": "charge"}', 200, []]) + ; + ApiRequestor::setHttpClient($this->curlClientStub); + $client = new BaseStripeClient([ + 'api_key' => 'test_key', + 'api_base' => MOCK_URL, + 'max_network_retries' => 3, + ]); + + $client->request('post', '/v1/charges', [], []); + } + + public function testClientMaxNetworkRetriesReachStreamingCurlClient() + { + $curlClientStub = $this->getMockBuilder(HttpClient\CurlClient::class) + ->setMethods(['executeStreamingRequestWithRetries']) + ->getMock() + ; + $curlClientStub->expects(self::once()) + ->method('executeStreamingRequestWithRetries') + ->with(self::callback(function ($opts) { + self::assertNotEmpty(\array_filter($opts[\CURLOPT_HTTPHEADER], function ($header) { + return $this->headerStartsWith($header, 'Idempotency-Key: '); + })); + + return true; + }), MOCK_URL . '/v1/charges', self::anything(), 3) + ->willReturn(['', 200, []]) + ; + ApiRequestor::setStreamingHttpClient($curlClientStub); + $client = new BaseStripeClient([ + 'api_key' => 'test_key', + 'api_base' => MOCK_URL, + 'max_network_retries' => 3, + ]); + + $client->requestStream('post', '/v1/charges', static function () {}, [], []); + } + public function testRequestThrowsIfNoApiKeyInClientAndOpts() { $this->expectException(Exception\AuthenticationException::class); diff --git a/tests/Stripe/GeneratedExamplesTest.php b/tests/Stripe/GeneratedExamplesTest.php index d456591e94..1d86d7b3cb 100644 --- a/tests/Stripe/GeneratedExamplesTest.php +++ b/tests/Stripe/GeneratedExamplesTest.php @@ -8931,7 +8931,7 @@ public function testV2CoreAccountEvaluationPost() $this->stubRequest( 'post', '/v2/core/account_evaluations', - ['signals' => ['fraudulent_website']], + ['signals' => ['user_multi_accounting']], [], false, [ @@ -8945,7 +8945,7 @@ public function testV2CoreAccountEvaluationPost() BaseStripeClient::DEFAULT_API_BASE ); $result = $this->v2Client->v2->core->accountEvaluations->create([ - 'signals' => ['fraudulent_website'], + 'signals' => ['user_multi_accounting'], ]); self::assertInstanceOf(V2\Core\AccountEvaluation::class, $result); } @@ -10165,49 +10165,6 @@ public function testV2CoreVaultGbBankAccountGet2() } public function testV2CoreVaultGbBankAccountPost2() - { - $this->stubRequest( - 'post', - '/v2/core/vault/gb_bank_accounts/id_123/acknowledge_confirmation_of_payee', - [], - [], - false, - [ - 'object' => 'v2.core.vault.gb_bank_account', - 'archived' => [], - 'bank_account_type' => 'toza', - 'bank_name' => 'bank_name', - 'confirmation_of_payee' => [ - 'result' => [ - 'created' => '1970-01-12T21:42:34.472Z', - 'match_result' => 'unavailable', - 'matched' => [], - 'message' => 'message', - 'provided' => [ - 'business_type' => 'personal', - 'name' => 'name', - ], - ], - 'status' => 'awaiting_acknowledgement', - ], - 'created' => '1970-01-12T21:42:34.472Z', - 'id' => 'obj_123', - 'last4' => 'last4', - 'livemode' => [], - 'restricted' => [], - 'supported_currencies' => ['0' => 'supported_currencies'], - ], - 200, - BaseStripeClient::DEFAULT_API_BASE - ); - $result = $this->v2Client->v2->core->vault->gbBankAccounts->acknowledgeConfirmationOfPayee( - 'id_123', - [] - ); - self::assertInstanceOf(V2\Core\Vault\GbBankAccount::class, $result); - } - - public function testV2CoreVaultGbBankAccountPost3() { $this->stubRequest( 'post', @@ -10250,49 +10207,6 @@ public function testV2CoreVaultGbBankAccountPost3() self::assertInstanceOf(V2\Core\Vault\GbBankAccount::class, $result); } - public function testV2CoreVaultGbBankAccountPost4() - { - $this->stubRequest( - 'post', - '/v2/core/vault/gb_bank_accounts/id_123/initiate_confirmation_of_payee', - [], - [], - false, - [ - 'object' => 'v2.core.vault.gb_bank_account', - 'archived' => [], - 'bank_account_type' => 'toza', - 'bank_name' => 'bank_name', - 'confirmation_of_payee' => [ - 'result' => [ - 'created' => '1970-01-12T21:42:34.472Z', - 'match_result' => 'unavailable', - 'matched' => [], - 'message' => 'message', - 'provided' => [ - 'business_type' => 'personal', - 'name' => 'name', - ], - ], - 'status' => 'awaiting_acknowledgement', - ], - 'created' => '1970-01-12T21:42:34.472Z', - 'id' => 'obj_123', - 'last4' => 'last4', - 'livemode' => [], - 'restricted' => [], - 'supported_currencies' => ['0' => 'supported_currencies'], - ], - 200, - BaseStripeClient::DEFAULT_API_BASE - ); - $result = $this->v2Client->v2->core->vault->gbBankAccounts->initiateConfirmationOfPayee( - 'id_123', - [] - ); - self::assertInstanceOf(V2\Core\Vault\GbBankAccount::class, $result); - } - public function testV2CoreVaultNetworkTokenPost() { $this->stubRequest( @@ -14355,7 +14269,7 @@ public function testV2MoneyManagementTestHelpersFinancialAddressPost() 'currency' => 'USD', 'value' => 96, ], - 'network' => 'swift', + 'network' => 'ach', ], [], false, @@ -14374,7 +14288,7 @@ public function testV2MoneyManagementTestHelpersFinancialAddressPost() 'currency' => 'USD', 'value' => 96, ], - 'network' => 'swift', + 'network' => 'ach', ] ); self::assertInstanceOf(V2\MoneyManagement\FinancialAddressCreditSimulation::class, $result); @@ -15116,44 +15030,6 @@ public function testV2PaymentsOffSessionPaymentPost2() } public function testV2PaymentsOffSessionPaymentPost3() - { - $this->stubRequest( - 'post', - '/v2/payments/off_session_payments/id_123/capture', - [], - [], - false, - [ - 'object' => 'v2.payments.off_session_payment', - 'amount_requested' => [ - 'currency' => 'USD', - 'value' => [], - ], - 'cadence' => 'unscheduled', - 'created' => '1970-01-12T21:42:34.472Z', - 'customer' => 'customer', - 'id' => 'obj_123', - 'livemode' => [], - 'metadata' => ['key' => 'metadata'], - 'payment_method' => 'payment_method', - 'payments_orchestration' => ['enabled' => []], - 'retry_details' => [ - 'attempts' => [], - 'retry_strategy' => 'scheduled', - ], - 'status' => 'requires_capture', - ], - 200, - BaseStripeClient::DEFAULT_API_BASE - ); - $result = $this->v2Client->v2->payments->offSessionPayments->capture( - 'id_123', - [] - ); - self::assertInstanceOf(V2\Payments\OffSessionPayment::class, $result); - } - - public function testV2PaymentsOffSessionPaymentPost4() { $this->stubRequest( 'post', @@ -15191,7 +15067,7 @@ public function testV2PaymentsOffSessionPaymentPost4() self::assertInstanceOf(V2\Payments\OffSessionPayment::class, $result); } - public function testV2PaymentsOffSessionPaymentPost5() + public function testV2PaymentsOffSessionPaymentPost4() { $this->stubRequest( 'post', @@ -16642,6 +16518,7 @@ public function testV2SignalsAccountEvaluationPost() 'account' => 'account', 'customer' => 'customer', 'data' => [ + 'contact_email' => 'contact_email', 'defaults' => [ 'profile' => [ 'business_url' => 'business_url', @@ -16656,7 +16533,7 @@ public function testV2SignalsAccountEvaluationPost() ], ], ], - 'requested_signals' => ['user_multi_accounting'], + 'requested_signals' => ['user_merchant_fit'], ], [], false, @@ -16666,8 +16543,8 @@ public function testV2SignalsAccountEvaluationPost() 'created' => '1970-01-12T21:42:34.472Z', 'id' => 'obj_123', 'livemode' => [], - 'pending_signals' => ['0' => 'fraudulent_website'], - 'requested_signals' => ['0' => 'user_multi_accounting'], + 'pending_signals' => ['0' => 'user_account_sharing'], + 'requested_signals' => ['0' => 'user_merchant_fit'], ], 200, BaseStripeClient::DEFAULT_API_BASE @@ -16677,6 +16554,7 @@ public function testV2SignalsAccountEvaluationPost() 'account' => 'account', 'customer' => 'customer', 'data' => [ + 'contact_email' => 'contact_email', 'defaults' => [ 'profile' => [ 'business_url' => 'business_url', @@ -16691,7 +16569,7 @@ public function testV2SignalsAccountEvaluationPost() ], ], ], - 'requested_signals' => ['user_multi_accounting'], + 'requested_signals' => ['user_merchant_fit'], ]); self::assertInstanceOf(V2\Signals\AccountEvaluation::class, $result); } @@ -16710,8 +16588,8 @@ public function testV2SignalsAccountEvaluationGet() 'created' => '1970-01-12T21:42:34.472Z', 'id' => 'obj_123', 'livemode' => [], - 'pending_signals' => ['0' => 'fraudulent_website'], - 'requested_signals' => ['0' => 'user_multi_accounting'], + 'pending_signals' => ['0' => 'user_account_sharing'], + 'requested_signals' => ['0' => 'user_merchant_fit'], ], 200, BaseStripeClient::DEFAULT_API_BASE @@ -16728,7 +16606,7 @@ public function testV2SignalsAccountSignalGet() $this->stubRequest( 'get', '/v2/signals/account_signals', - ['type' => ['fraudulent_merchant']], + ['type' => ['payment_delinquency_exposure']], [], false, [ @@ -16738,7 +16616,7 @@ public function testV2SignalsAccountSignalGet() 'created' => '1970-01-12T21:42:34.472Z', 'id' => 'obj_123', 'livemode' => [], - 'type' => 'fraudulent_merchant', + 'type' => 'payment_delinquency_exposure', ], ], 'next_page_url' => null, @@ -16748,7 +16626,7 @@ public function testV2SignalsAccountSignalGet() BaseStripeClient::DEFAULT_API_BASE ); $result = $this->v2Client->v2->signals->accountSignals->all([ - 'type' => ['fraudulent_merchant'], + 'type' => ['payment_delinquency_exposure'], ]); self::assertInstanceOf(V2\Collection::class, $result); self::assertInstanceOf(V2\Signals\AccountSignal::class, $result->data[0]); @@ -16767,7 +16645,7 @@ public function testV2SignalsAccountSignalGet2() 'created' => '1970-01-12T21:42:34.472Z', 'id' => 'obj_123', 'livemode' => [], - 'type' => 'fraudulent_merchant', + 'type' => 'payment_delinquency_exposure', ], 200, BaseStripeClient::DEFAULT_API_BASE diff --git a/tests/Stripe/HttpClient/CurlClientTest.php b/tests/Stripe/HttpClient/CurlClientTest.php index 2ccba9d709..0b76106e3d 100644 --- a/tests/Stripe/HttpClient/CurlClientTest.php +++ b/tests/Stripe/HttpClient/CurlClientTest.php @@ -384,7 +384,7 @@ public function testIdempotencyKeyV2PostRequestsNoRetry() { \Stripe\Stripe::setMaxNetworkRetries(0); $curlClient = new CurlClient(); - $curlOpts = $this->constructCurlOptionsMethod->invoke($curlClient, 'post', '', [], '', [], 'v2'); + $curlOpts = $this->constructCurlOptionsMethod->invoke($curlClient, 'post', '', [], '', [], 'v2', 0); $headers = $curlOpts[\CURLOPT_HTTPHEADER]; self::assertTrue($this->hasHeader($headers, 'Idempotency-Key')); } @@ -393,7 +393,7 @@ public function testIdempotencyKeyV2DeleteRequestsNoRetry() { \Stripe\Stripe::setMaxNetworkRetries(0); $curlClient = new CurlClient(); - $curlOpts = $this->constructCurlOptionsMethod->invoke($curlClient, 'delete', '', [], '', [], 'v2'); + $curlOpts = $this->constructCurlOptionsMethod->invoke($curlClient, 'delete', '', [], '', [], 'v2', 0); $headers = $curlOpts[\CURLOPT_HTTPHEADER]; self::assertTrue($this->hasHeader($headers, 'Idempotency-Key')); } @@ -402,46 +402,77 @@ public function testIdempotencyKeyAllV2RequestsWithRetry() { \Stripe\Stripe::setMaxNetworkRetries(3); $curlClient = new CurlClient(); - $curlOpts = $this->constructCurlOptionsMethod->invoke($curlClient, 'post', '', [], '', [], 'v2'); + $curlOpts = $this->constructCurlOptionsMethod->invoke($curlClient, 'post', '', [], '', [], 'v2', 3); $headers = $curlOpts[\CURLOPT_HTTPHEADER]; self::assertTrue($this->hasHeader($headers, 'Idempotency-Key')); } // we don't want this behavior - write requests should basically always have an IK. But until we fix it, let's test it - public function testNoIdempotencyKeyV1PostRequestsNoRetry() + public function testNoIdempotencyKeyV1PostRequestsWithNoLocalOrGlobalRetries() { \Stripe\Stripe::setMaxNetworkRetries(0); $curlClient = new CurlClient(); - $curlOpts = $this->constructCurlOptionsMethod->invoke($curlClient, 'post', '', [], '', [], 'v1'); + $curlOpts = $this->constructCurlOptionsMethod->invoke($curlClient, 'post', '', [], '', [], 'v1', null); $headers = $curlOpts[\CURLOPT_HTTPHEADER]; self::assertFalse($this->hasHeader($headers, 'Idempotency-Key')); } - public function testNoIdempotencyKeyV1DeleteRequestsNoRetry() + public function testNoIdempotencyKeyV1DeleteRequestsWithLocalRetries() { \Stripe\Stripe::setMaxNetworkRetries(0); $curlClient = new CurlClient(); - $curlOpts = $this->constructCurlOptionsMethod->invoke($curlClient, 'delete', '', [], '', [], 'v1'); + $curlOpts = $this->constructCurlOptionsMethod->invoke($curlClient, 'delete', '', [], '', [], 'v1', 3); $headers = $curlOpts[\CURLOPT_HTTPHEADER]; self::assertFalse($this->hasHeader($headers, 'Idempotency-Key')); } - public function testIdempotencyKeyV1PostRequestsWithRetry() + public function testIdempotencyKeyV1PostRequestsWithLocalRetries() + { + \Stripe\Stripe::setMaxNetworkRetries(0); + $randomGenerator = $this->createMock('\Stripe\Util\RandomGenerator'); + $randomGenerator->expects(self::once())->method('uuid')->willReturn('fixed-idempotency-key'); + $curlClient = new CurlClient(null, $randomGenerator); + $curlOpts = $this->constructCurlOptionsMethod->invoke($curlClient, 'post', '', [], '', [], 'v1', 3); + $headers = $curlOpts[\CURLOPT_HTTPHEADER]; + self::assertContains('Idempotency-Key: fixed-idempotency-key', $headers); + } + + public function testNoIdempotencyKeyV1PostRequestsWhenLocalRetriesOverrideGlobalRetries() { \Stripe\Stripe::setMaxNetworkRetries(3); $curlClient = new CurlClient(); - $curlOpts = $this->constructCurlOptionsMethod->invoke($curlClient, 'post', '', [], '', [], 'v1'); + $curlOpts = $this->constructCurlOptionsMethod->invoke($curlClient, 'post', '', [], '', [], 'v1', 0); $headers = $curlOpts[\CURLOPT_HTTPHEADER]; - self::assertTrue($this->hasHeader($headers, 'Idempotency-Key')); + self::assertFalse($this->hasHeader($headers, 'Idempotency-Key')); } - public function testNoIdempotencyKeyV1DeleteRequestsWithRetry() + public function testIdempotencyKeyV1PostRequestsWithGlobalRetries() { \Stripe\Stripe::setMaxNetworkRetries(3); $curlClient = new CurlClient(); - $curlOpts = $this->constructCurlOptionsMethod->invoke($curlClient, 'delete', '', [], '', [], 'v1'); + $curlOpts = $this->constructCurlOptionsMethod->invoke($curlClient, 'post', '', [], '', [], 'v1', null); $headers = $curlOpts[\CURLOPT_HTTPHEADER]; - self::assertFalse($this->hasHeader($headers, 'Idempotency-Key')); + self::assertTrue($this->hasHeader($headers, 'Idempotency-Key')); + } + + public function testExistingIdempotencyKeyIsPreserved() + { + \Stripe\Stripe::setMaxNetworkRetries(0); + $randomGenerator = $this->createMock('\Stripe\Util\RandomGenerator'); + $randomGenerator->expects(self::never())->method('uuid'); + $curlClient = new CurlClient(null, $randomGenerator); + $curlOpts = $this->constructCurlOptionsMethod->invoke( + $curlClient, + 'post', + '', + ['Idempotency-Key: caller-provided-key'], + '', + [], + 'v1', + 3 + ); + $headers = $curlOpts[\CURLOPT_HTTPHEADER]; + self::assertContains('Idempotency-Key: caller-provided-key', $headers); } public function testResponseHeadersCaseInsensitive()